Hello!
Im using linux with ucarp and haproxy as loadbalancer / ha since a while. Now i test FreeBSD and get bad performance values.
The FreeBSD Setup:
Interface carp0 (renamed intel e1000 NIC) has a public IP to get requests
Interface carp1 (renamed intel e1000 NIC) has a private IP to comunicate with the webservers.
I do the following tuning options:
/etc/sysctl.conf:
/boot/loader.conf:
The FreeBSD machine (Who have 8 XEON 2GHz Cores) can manage arround 30MBytes per second. Then I/O-Errors begin to raise.
The average CPU utilisation (sys) is at ~80%
The same setup with Linux on a 4 CPU machine can handle 33MBytes / second.
Im using linux with ucarp and haproxy as loadbalancer / ha since a while. Now i test FreeBSD and get bad performance values.
The FreeBSD Setup:
Interface carp0 (renamed intel e1000 NIC) has a public IP to get requests
Interface carp1 (renamed intel e1000 NIC) has a private IP to comunicate with the webservers.
I do the following tuning options:
/etc/sysctl.conf:
Code:
net.inet.icmp.icmplim=20000
kern.ipc.maxsockbuf=4000000000
kern.ipc.somaxconn=32768
kern.maxfiles=1000000
/boot/loader.conf:
Code:
kern.maxusers=38400
The FreeBSD machine (Who have 8 XEON 2GHz Cores) can manage arround 30MBytes per second. Then I/O-Errors begin to raise.
netstat -I carp0 1
Code:
input (carp0) output
packets errs bytes packets errs bytes colls
10393 0 2264257 7089 0 5438558 0
15622 0 3406790 10768 0 8724167 0
20562 401 4528858 14125 0 11623182 0
20227 557 4390213 14125 0 11496360 0
20106 545 4226344 14413 0 12472746 0
20051 1584 4268895 14227 0 12574244 0
20136 1375 4233550 14162 0 13361860 0
19749 850 4206581 14186 0 12779683 0
19837 1056 4242046 14132 0 12901977 0
netstat -I carp1 1
Code:
input (carp1) output
packets errs bytes packets errs bytes colls
20548 0 11832097 19819 0 4399361 0
19864 0 10614310 19343 0 4418355 0
20295 0 11123973 19810 0 4449668 0
20153 0 10967781 19496 0 4459658 0
19757 0 10629329 19059 0 4351931 0
20554 0 11343990 19920 0 4532443 0
20590 0 11495033 19800 0 4427276 0
20118 0 10914201 19670 0 4422610 0
20246 0 11046725 19705 0 4405509 0
20316 0 10942016 19634 0 4492243 0
20296 0 10929203 19665 0 4507805 0
20717 0 11812626 19871 0 4503441 0
20470 0 11419763 19723 0 4419329 0
20802 0 11884091 20248 0 4478751 0
19946 0 10584217 19612 0 4442248 0
20126 0 10604589 19551 0 4473400 0
20347 0 10826504 20049 0 4483137 0
20014 0 10718654 19408 0 4479361 0
The average CPU utilisation (sys) is at ~80%
The same setup with Linux on a 4 CPU machine can handle 33MBytes / second.