Date: Fri, 27 May 2011 19:17:58 +0400 From: Sergey Kandaurov <pluknet@gmail.com> To: John Baldwin <jhb@freebsd.org> Cc: current@freebsd.org Subject: Re: [PATCH] Toggle display of the kernel idle process (per-CPU idle threads) in top Message-ID: <BANLkTin5BjXxH-PmzsW%2BnOpyYXEjvqJM0w@mail.gmail.com> In-Reply-To: <201105271046.30379.jhb@freebsd.org> References: <201105271046.30379.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27 May 2011 18:46, John Baldwin <jhb@freebsd.org> wrote: > Some times in top, I don't want to see all the per-CPU idle threads but > instead focus on the non-idle threads that are running. =A0Especially on = a > system with a lot of CPUs, the idle threads can push all the interesting > threads off of the list. =A0This patch adds a new 'z' flag (gratuitously = chosen > letter) and interactive command to toggle the display of the system idle > process. =A0Patch is tested against 8, but should work fine on HEAD too: Works on HEAD as well. I like this idea. Perhaps it could be combined with i key? > @@ -1075,7 +1081,13 @@ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0reset_disp= lay(); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0putchar('\= r'); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0break; > - > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 case CMD_kidletog: > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ps.kidle = =3D !ps.kidle; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new_message= (MT_standout | MT_delayed, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 " %= sisplaying kernel idle process.", > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ps.= idle ? "D" : "Not d"); ^^ typo: s/idle/kidle/ --=20 wbr, pluknet
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTin5BjXxH-PmzsW%2BnOpyYXEjvqJM0w>