On Sun, Dec 02, 2012 at 12:15:03PM +0100, Bertrand P. wrote:
stepping : 3
bogomips : 3999.99
ngx_cacheline_size is set to 64.
I think I can have low performances problems due to the ngx_cacheline_size
of 32 under qemu virtualization. Do you confirm ?
Do you think we have to change ngx_cpuinfo code to give ngx_cacheline_size
64 on qemu env ?
Incorrectly detected cache line size may result in slightly
non-optimal performance in some situations (I wouldn’t suppose 32
vs 64 to result in more than a few percent difference in real word
nginx operation though, even on real hardware). On the other
hand, using virtualization ensures non-optimal performance in all
situations, so one using virtualization probably don’t care
anyway.
(In any case there are no plans to change Intel CPUs cache line
size detection code to support fake emulated qemu CPUs. In
particular because it’s not possible to tell which cache line size
is more effective for a given emulated CPU. It’s up to you to
configure qemu to emulate a CPU with a cache line size most
effective on your hardware if you think you care.)