Re: Low performance in solaris 9

From: <manuelsspace-listas#yahoo.com>
Date: Fri, 2 May 2008 09:23:19 -0700 (PDT)


> ----- Original Message ----
> From: "manuelsspace-listas"
> To: haproxy#formilux.org
> Sent: Wednesday, April 30, 2008 2:47:48 PM
> Subject: Fw: Low performance in solaris 9
>
> Hello,
> I'm a newbie in haproxy testing this product in Solaris 9. All our results are far from haproxy standard throughput. We are testing 1, 10, 100, 200
> threads for about 200 secs. 44 bytes and 10Kb objects.
>
> Our conclusions are:
> * No more that 100 connections to backend. 100 in + 100 queued from the listener
> * 40%-100% CPU, heavy system cpu usage
> * Too many errors because connection error at client side
> * <3% cpu usage at apache side (the back end)
>
> I've running the same tests with and w/out haproxy. 100% requests satisfies w/out haproxy
>
>
> One stats example
>
> * 200 threads - haproxy stats
> duration: 200s
> count:194
> error_count: 86
> latency: 2.687999963760376
> avg_latency: 0.9720103064763177
> total_latency:188.56999945640564
> total_bytes: 1110348
>
> * 200 threads - direct stats
> duration: 200s
> count:192
> error_count: 0
> latency:1.0619997978210449
> avg_latency: 1.0132760442793369
> total_latency: 194.54900050163269
> total_bytes:1973952
>
> HAProxy was compiled as mentioned in read me files but "perl regular expression" not included
>
>
> Does any body has experience in Solaris 9 or have some advise.
>
>
> P.D: E
> Manuel Soto
> Get Firefox!
>
>

Hello All,

   As fer as I can see in the compilation list no errors or warning was displayed. How can I verify if haproxy is ussing epoll o the best available opcion?  

$ make TARGET=solaris CPU=ultrasparc
gcc

-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" 
\
              
-DBUILD_TARGET='"solaris"' \
              
-DBUILD_CPU='"ultrasparc"' \
              
-DBUILD_CC='"gcc"' \
              

-DBUILD_CFLAGS='"-O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-po               

-DBUILD_OPTIONS='""' \                 -c -o src/haproxy.o src/haproxy.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/sessionhash.o sr
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/base64.o src/bas
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/protocols.o src/
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/uri_auth.o src/u
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/standard.o src/s
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/buffers.o src/bu
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/log.o src/log.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/task.o src/task.
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/time.o src/time.
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer -DFD_ ION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o src/fd.o src/fd.c
gcc

-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/regex.o src/regex.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/cfgparse.o src/cfgparse.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/server.o src/server.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/checks.o src/checks.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/queue.o src/queue.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/client.o src/client.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/proxy.o src/proxy.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/proto_uxst.o src/proto_uxst.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/proto_http.o src/proto_http.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/stream_sock.o src/stream_sock.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/appsession.o src/appsession.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/backend.o src/backend.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/senddata.o src/senddata.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/dumpstats.o src/dumpstats.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/proto_tcp.o src/proto_tcp.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/session.o src/session.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/hdr_idx.o src/hdr_idx.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/ev_select.o src/ev_select.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/acl.o src/acl.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/memory.o src/memory.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/ebtree.o src/ebtree.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/eb32tree.o src/eb32tree.c
gcc
-Iinclude -Wall -O6 -mcpu=v9 -mtune=ultrasparc -g -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT      -DTPROXY -DENABLE_POLL  
-DCONFIG_HAPROXY_VERSION=\"1.3.14.4\" -DCONFIG_HAPROXY_DATE=\"2008/03/20\" -c -o 
src/ev_poll.o src/ev_poll.c
gcc -g -o
haproxy src/haproxy.o src/sessionhash.o src/base64.o src/protocols.o
src/uri_auth.o src/standard.o src/buffers.o src/log.o src/task.o src/time.o 
src/fd.o src/regex.o src/cfgparse.o src/server.o src/checks.o src/queue.o 
src/client.o src/proxy.o src/proto_uxst.o src/proto_http.o src/stream_sock.o 
src/appsession.o src/backend.o src/senddata.o src/dumpstats.o src/proto_tcp.o 
src/session.o src/hdr_idx.o src/ev_select.o src/acl.o src/memory.o src/ebtree.o 
src/eb32tree.o src/ev_poll.o -lnsl -lsocket
root#sunexplor
# ls
CHANGELOG     
digitel.cfg   examples      include       Makefile      Makefile.osx  
ROADMAP       SUBVERS       TODO          VERSION
CONTRIB       
doc           haproxy       LICENSE       Makefile.bsd  README        
src           tests         VERDATE

root#sunexplor
# cd src
root#sunexplor
# ls
acl.c          
buffers.c      cttproxy.c     ebtree.o       fd.c           memory.c       
proto_uxst.c   regex.o        session.o      time.o
acl.o          
buffers.o      dumpstats.c    ev_epoll.c     fd.o           memory.o       
proto_uxst.o   senddata.c     standard.c     
uri_auth.c
appsession.c
cfgparse.c     dumpstats.o    ev_kqueue.c    haproxy.c      protocols.c    
proxy.c        senddata.o     standard.o     
uri_auth.o
appsession.o
cfgparse.o     eb32tree.c     ev_poll.c      haproxy.o      protocols.o    
proxy.o        server.c       stream_sock.c
backend.c      
checks.c       eb32tree.o     ev_poll.o      hdr_idx.c      proto_http.c   
queue.c        server.o       stream_sock.o
backend.o      
checks.o       eb64tree.c     ev_select.c    hdr_idx.o      proto_http.o   
queue.o        session.c      task.c
base64.c       
client.c       ebpttree.c     ev_select.o    log.c          proto_tcp.c    
rbtree.c       sessionhash.c  task.o
base64.o       
client.o       ebtree.c       ev_sepoll.c    log.o          proto_tcp.o    
regex.c        sessionhash.o  time.c

Manuel Soto
Get Firefox! Received on 2008/05/02 18:23

This archive was generated by hypermail 2.2.0 : 2008/05/02 18:30 CEST