Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2008 18:33:09 +0100
From:      Stefan Ehmann <shoesoft@gmx.net>
To:        freebsd-stable@freebsd.org
Subject:   CPU utilization calculation broken with SCHED_ULE and dummynet
Message-ID:  <200810311833.09951.shoesoft@gmx.net>

next in thread | raw e-mail | index | archive | help
Already posted this earlier this month and filed as kern/128177.

Short summary: top/ps displays 0% instead of 100% CPU usage for CPU-intensive 
processes. single-threaded process on single-CPU i386 machine.

I think this also negatively effects scheduling decisions but haven't found a 
good way to test this.


I did some more investigations today:

The problem only occurs when the dummynet module is loaded. If I unload the 
module everything seems fine. It's enough if the module is loaded, no rules 
involving dummynet are needed.

If I revert 1.214.2.7 (SVN rev 183294) the problem is gone.

Already noted earlier:
I don't see the problem in CURRENT on the same machine. This might be due to 
different configurations though.

If I run the process with idletime priority, I don't see the problem either.

SCHED_4BSD is not affected.


Hope these findings help fixing the problem.

Thanks,
Stefan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810311833.09951.shoesoft>