ps not showing CPU# correctly
Mateusz Guzik
mjguzik at gmail.com
Fri Dec 26 17:51:40 PST 2008
Hi,
On Fri, Dec 26, 2008 at 8:20 PM, Nikola Knežević
<laladelausanne at gmail.com> wrote:
> on my system, I noticed that ps(1) is not showing the CPU# correctly (it
> always displays 0). There was a bug in it, and it was fetching ki_estcpu
> instead of ki_lastcpu.
>
From the man page:
cpu short-term CPU usage factor (for scheduling)
Apparently not last cpu's number. :) You're probably using SCHED_ULE -
this scheduler does not alter td_estcpu and that's why ps -o cpu gives
you only 0.
--
Mateusz Guzik
More information about the freebsd-hackers
mailing list