On Mon, Jan 20, 2003 at 10:39:05AM +0200, Michael Sternberg wrote: > > Hello. > >From time to time I notice in output of /usr/bin/top that my system CPU > time jumps to nearly 90%. How can I know which task kernel performs ? > I'm looking for some kind of "top" for kernel.. Maybe some file in /proc > directory ?
Without patching anything in particular, you can use Magic-SysRq-t (IIRC) to get a stack trace of where in kernel space each process is spending its time. Also, ps should have an option to show where each task is waiting now. This will give you a rough indication, but what you really want is probably something like oprofile (http://oprofile.sf.net) (now in kernel 2.5), or the Linux Trace Toolkit (http://www.opersys.com/LTT/), for kernel profiling. -- Muli Ben-Yehuda http://www.mulix.org ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]