Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Max Terentiev
al Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Wednesday, November 07, 2012 10:31 PM To: ICS support mailing Subject: Re: [twsocket] Optimal number of TWSocket per thread Max Terentiev wrote: > Hi Angus, > > I perform some te

Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Angus Robertson - Magenta Systems Ltd
> I perform some tests but cannot send fasten than 200 megabit/sec. Which is pretty good performance, presumably you need more because this is running on a hosted server with gigabyte connectivity? > I see RFC 2821 and found what max line length can be 1000 > characters! Not strictly relevant

Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Arno Garrels
Max Terentiev wrote: > Hi Angus, > > I perform some tests but cannot send fasten than 200 megabit/sec. > > On large messages (100kb+) Looks like a bottleneck in > SmtpCli's Data/DataNext function. > > I see the code and found what DataNext send message line by line. You are right, that's indeed

Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Max Terentiev
Hi Angus, I perform some tests but cannot send fasten than 200 megabit/sec. On large messages (100kb+) Looks like a bottleneck in SmtpCli's Data/DataNext function. I see the code and found what DataNext send message line by line. Since typical MIME message contains lines with max 64 characters

Re: [twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Angus Robertson - Magenta Systems Ltd
> How many TSmtpCli(s) should be used inside one TThread ? > I need to send about 4000 messages in parallel, so I need 4000 > TSmtpCli(s). > At this time I try to use 25 TSmtpCli per Thread but see very high > CPU usage and app interface responding this delays.. The 'app interface' could be your

[twsocket] Optimal number of TWSocket per thread

2012-11-07 Thread Max Terentiev
Hi, I need to implement high performance smtp relay. I use TSmtpCli inside threads as smtp workers (SmtpCli->MultiThreaded=true, and my own message loop). How many TSmtpCli(s) should be used inside one TThread ? I need to send about 4000 messages in parallel, so I need 4000 TSmtpCli