Date: Thu, 3 Jun 2004 14:11:39 +0100 From: "Steven Hartland" <killing@multiplay.co.uk> To: <freebsd-hackers@freebsd.org> Subject: FreeBSD vs Linux cpu usage measurements Message-ID: <184b01c4496c$4ea3a6a0$7b07000a@int.mediasurface.com>
next in thread | raw e-mail | index | archive | help
I've been trying to do a direct comparison of game server cpu usages across various OS. Our current primary OS is FreeBSD 5.X running a 200HZ kernel. Initial tests on a dual boot opteron showed Linux using 0% CPU for 32 player servers so I got suspicious. >From talking to people it appears that Linux only registers cpu usage on the click tick so if a process was scheduled on the previous tick but yielded before the current tick it would have 0% cpu usage. In and extreme case could mean a process using 90% cpu or more could still be show in top as using 0% This seemed to be extremely noticeable on a 2.4.15 kernel but the values seem to me "more" correct on 2.6.5 but I believe this will be entirely down to the increase from 100Hz in 2.4 -> 1000Hz in 2.6. Anyway that's the background now to the question. Is there a fundamental difference in the way that FreeBSD records process cpu usage as I've seen this behaviour while running FreeBSD ever. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?184b01c4496c$4ea3a6a0$7b07000a>