Hi, I'm running HAProxy on a EC2 Xlarge instance together with stud.
I'm having troubles to get HAProxy use all the cores on the machine, HAProxy with nbproc=3 is actually using more cores but the actual performance is not so much better. Running 6k concurrent users doing 3 reqs each gave around 5100 req/s for nbproc=1 and 6200 req/s with nbproc=3. And this is only through http, not https with stud. I have done a lot of tuning on the OS and turned of conntracks which has given me good performance enhancements. I have read this : http://www.mail-archive.com/[email protected]/msg00891.html But can't actually figure out if it really gave the guy so much. He said he bound haproxy to cpu1, how is that done? As you can see below there is a lot of % on the "si". What does that say? With nbproc =3 haproxy utilizes all the cores when checking (top -d 1). top - 20:01:58 up 2 days, 1:13, 1 user, load average: 1.83, 1.48, 0.97 Tasks: 83 total, 4 running, 79 sleeping, 0 stopped, 0 zombie Cpu0 : 12.0%us, 21.0%sy, 0.0%ni, 1.0%id, 0.0%wa, 0.0%hi, 66.0%si, 0.0%st Cpu1 : 4.8%us, 9.7%sy, 0.0%ni, 80.6%id, 0.0%wa, 0.0%hi, 4.8%si, 0.0%st Cpu2 : 11.1%us, 22.2%sy, 0.0%ni, 56.3%id, 0.0%wa, 0.0%hi, 9.6%si, 0.7%st Cpu3 : 4.7%us, 9.4%sy, 0.0%ni, 81.8%id, 0.0%wa, 0.0%hi, 4.1%si, 0.0%st Mem: 15374136k total, 1067816k used, 14306320k free, 37880k buffers Swap: 0k total, 0k used, 0k free, 236184k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1430 haproxy 20 0 72908 31m 656 R 99.3 0.2 4:50.85 haproxy 1431 haproxy 20 0 75648 32m 652 R 64.5 0.2 4:56.19 haproxy 1432 haproxy 20 0 76204 32m 652 R 63.6 0.2 4:58.69 haproxy With nbproc = 1 haproxy is only utilizing one core. top - 20:57:24 up 2 days, 2:08, 1 user, load average: 0.93, 0.65, 0.49 Tasks: 81 total, 2 running, 79 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 0.0%sy, 0.0%ni, 97.6%id, 0.0%wa, 0.0%hi, 0.8%si, 1.6%st Cpu1 : 27.0%us, 49.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 24.0%si, 0.0%st Cpu2 : 0.5%us, 0.0%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 15374136k total, 1147756k used, 14226380k free, 38100k buffers Swap: 0k total, 0k used, 0k free, 236244k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1582 haproxy 20 0 242m 113m 656 R 100.2 0.8 7:17.05 haproxy /E

