I'm sorry for my english, there have a typo: multi threads single thread -> multi threads single proc. Pardon me.
On Wed, 10 Apr 2019 at 14:44, Kevin Zhu <[email protected]> wrote: > > > ---------- Forwarded message --------- > From: Kevin Zhu <[email protected]> > Date: Wed, 10 Apr 2019 at 14:25 > Subject: Re: haproxy1.9, SPOA: too many open files > To: Christopher Faulet <[email protected]> > > > Thinks reply. > > OS: CentOS Linux release 7.4 > HW: platform: KVM; CPU: Intel Xeon E3-12xx v2 (Ivy Bridge) * 1; mem: > 2048M > > HAProxy Make: make TARGET=linxu2628 USE_THREAD=1 > SPOA: 1:cd contrib/spoa_example ; > 2: set async and pipelining and fragmentation = true in souces > file spoa.c > 3: make > 4:./spoa > > Benchmark: see abtest.sh > Configurations files: is attached in this mail > > I'm testing results(result value l is approximately): > HAProxy-1.8.16: > multi procs single thread: > CPU: HAProxy: 10% * 8; spoa: 4% - 7% > TCP HAProxy and spoa(netstat -anpt | grep 12345 | grep EST > | wc -l): 150 - 400 > Time taken for tests: 67 seconds > > multi threads single thread: > CPU: HAProxy: 85% - 90%; spoa: 3% - 5% > TCP HAProxy and spoa(netstat -anpt | grep 12345 | grep EST > | wc -l): 100 - 200 > Time taken for tests: 53 seconds > > HAProxy-1.9.6: > multi procs single thread: > CPU: HAProxy: 9% * 8; spoa: 24% - 27% > TCP HAProxy and spoa(netstat -anpt | grep 12345 | grep EST > | wc -l):8050 > Time taken for tests: 99 seconds > > multi threads single thread: > CPU: HAProxy: 80%; spoa: 9% - 13% > TCP HAProxy and spoa(netstat -anpt | grep 12345 | grep EST > | wc -l): 7500 - 10200 > Time taken for tests: 65 seconds > > By the way, exec "ulimit -n 102400" will fix err "Too many open file" . > Regards > > On Tue, 9 Apr 2019 at 17:25, Christopher Faulet <[email protected]> > wrote: > >> Le 09/04/2019 à 07:43, Kevin Zhu a écrit : >> > Use haproxy-1.9 and 2.0, SPOA will occure error "too many open file" >> > when benchmark testing, spoa_example have this error too, even enable >> > the async and pipelining. >> > But haproxy 1.8 have no this kind error. >> > >> >> Hi Kevin, >> >> I need more information before investigating. Could you provide more >> information on the way you perform your benchmark. I also need to take a >> look on your HAProxy and spoe configurations. And finally, let me known >> how you start the agent. >> >> Regards, >> -- >> Christopher Faulet >> >

