high cpu utilization

From: Marc <linux-ha#mbreslow.net>
Date: Tue, 12 Feb 2008 13:01:21 -0500


Hi All,

I'm seeing my haproxy 1.2.17 process using 100% of my CPU (according to top) during peak loads. We have roughly 3100 active HTTP connections - many of them are long running ones with an expected response time of 20s (AJAX polling).

From everything I've read about haproxy and my experience to date, I don't think we should have any issues with CPU. It's a dual-core Pentium @ 1.8GHzwith 2GB RAM. I've attached our config file for haproxy. This is running
on CentOS 4.5. Here's some of the kernel tuning I did:

Linux 2.6.9-55.ELsmp #1 SMP Wed May 2 14:28:44 EDT 2007 i686 i686 i386 GNU/Linux

net.ipv4.tcp_syncookies = 1

# Increase avil file descriptors

fs.file-max = 2097152

# Change the max number of pkts in syn pkts backlog
net.ipv4.tcp_max_syn_backlog = 16384

# Tune the amount of memory made available to TCP
net.core.rmem_max = 8738000
net.core.wmem_max = 6553600

net.ipv4.tcp_rmem = 8192 873800 8738000
net.ipv4.tcp_wmem = 4096 655360 6553600

Received on 2008/02/12 19:01

This archive was generated by hypermail 2.2.0 : 2008/02/12 19:15 CET