Hi Willy,

I have done concurrent test for both haproxy 1.5-dev7 and 1.5-dev17.The
amount of connections decreases in haproxy-1.5-dev17 compared to
haproxy-1.5-dev7 under the the same condition and the same configuration
file.

I have gathered the memory usage by "free" command during test, and the
statistics is as follow:

Conncurrent    Mem/dev7   Mem/dev17
25,000         0.55GB     0.7GB
50,000         1.1GB      1.4GB
100,000        2.2GB      2.8GB

Yes, the memory usage in dev17 is more than that in dev7. But I have
compared memory usage for each session allocated by memory pool between
these two versions, and dev17 is slightly less than dev7.

It seems that dev17 may use some additional memory allocated and freed
besides pool. Any suggestions will be much appreciate. Since there are
new features such as SSL and http compression in dev17, I have not
compile them into haproxy.

There is some key information in my system:
kernel: 2.6.38.8 x86_64
CPU: Intel(R) Celeron(R) CPU G540 @ 2.50GHz, two cores
Mem: 4G, 3.4G freed

Two instances of haproxy with the same configuration but wiht different
bind IP:
global
        node http-vlan601.0
        pidfile xxx
        stats socket xxx
        maxconn 200000
        tune.bufsize 8030
        tune.maxrewrite 1024
        daemon
        quiet

defaults
        mode http
        option http-server-close
        option abortonclose
        option http-pretend-keepalive
        timeout http-keep-alive 500s
        timeout http-request 500s
        option splice-auto
        timeout client 500s
        timeout server 500s
        timeout connect 500s
        timeout queue 500s
        retries 0

frontend fe
        bind 10.61.106.1:80
        maxconn 200000
        use_backend be unless

backend be
        balance roundrobin
        hash-type consistent
        srv1...
        srv2...
        [40 servers]


Best Regards,
Godbach

Reply via email to