2 x quad-core system is slower that 2 x dual core on FreeBSD
Alexey Popov
lol at chistydom.ru
Tue Nov 20 09:38:34 PST 2007
Hi.
Ivan Voras wrote:
>> CPU states: 5.9% user, 0.0% nice, 81.3% system, 0.0% interrupt, 12.8% idle
>> CPU states: 82.2% user, 0.0% nice, 13.8% system, 0.0% interrupt, 4.0% idle
> Interesting coincidence: 1 CPU generates almost 8x less "sys time" then 8 CPUs.
> But it seems that you have found something real. Inspired by your
> problem I've done a simple measurement ("ab") on a 4-CPU (2x2 core
> Opterons 2216 HE, PAE) machine I maintain, under these circumstances:
>
> - a "heavy" PHP application
> - FastCGI
> - in this case, load of 4 clients
> - on 6-STABLE
>
> and I'm reporting similar findings:
> CPU states: 38.8% user, 0.0% nice, 48.4% system, 3.2% interrupt, 9.6% idle
> We are not so performance bound as you so I didn't do measurements
> earlier. I cannot "play" with settings on this machine as it is in
> production, but ~~50% sys time (the measurement changes around 45% +/-
> 10%) seems too much.
Thank you for your research. I think you can get more %sys with 4-core
processors. For me 2xquad-core systems are now completely unusable as
PHP backends.
Anyway I'm happy that I'm not alone with this problem. But what can we
do about it?
With best regards,
Alexey Popov
More information about the freebsd-stable
mailing list