Date: Mon, 12 May 2003 09:53:29 -0400 From: Don Bowman <don@sandvine.com> To: 'Bruce Evans' <bde@zeta.org.au>, Don Bowman <don@sandvine.com> Cc: freebsd-net@freebsd.org Subject: RE: polling(4) and idle time/cpu usage percentages Message-ID: <FE045D4D9F7AED4CBFF1B3B813C8533701B36630@mail.sandvine.com>
next in thread | raw e-mail | index | archive | help
From: Bruce Evans [mailto:bde@zeta.org.au] > On Sun, 11 May 2003, Don Bowman wrote: > > > From: Bruce Evans [mailto:bde@zeta.org.au] > > > Did you try my hack? > > > > I tried the hack, as below. The other thing that makes idle > > wildly inaccurate is the symmetric multi-threading on the xeon > > (aka hyperthreading). > > The variable needs to be per-cpu for the SMP case. Perhaps there > are other complications for SMP (from having to forward clock > interrupts). > Hyperthreading might increase them. Anyway, get the !SMP case working > first. ... Thanks very much for the feedback. As you say, I had neglected to put a call in to poll in the smp idle loop. This is slightly more complicated. I'll work on getting the idle poll called in the smp case and make the changes you suggested and see where that gets me. thanks again! --don
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C8533701B36630>