From owner-freebsd-current@FreeBSD.ORG Fri May 27 17:35:20 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86E9E1065670; Fri, 27 May 2011 17:35:20 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 2A1218FC0C; Fri, 27 May 2011 17:35:19 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p4RGuh3Y029745 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 11:56:43 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.4) with ESMTP id p4RGuhDR097588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 11:56:43 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id p4RGugFq097587; Fri, 27 May 2011 11:56:42 -0500 (CDT) (envelope-from dan) Date: Fri, 27 May 2011 11:56:42 -0500 From: Dan Nelson To: John Baldwin Message-ID: <20110527165641.GB6688@dan.emsphone.com> References: <201105271046.30379.jhb@freebsd.org> <201105271159.28604.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105271159.28604.jhb@freebsd.org> X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Fri, 27 May 2011 11:56:43 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: Sergey Kandaurov , current@freebsd.org Subject: Re: [PATCH] Toggle display of the kernel idle process (per-CPU idle threads) in top X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 17:35:20 -0000 In the last episode (May 27), John Baldwin said: > On Friday, May 27, 2011 11:17:58 am Sergey Kandaurov wrote: > > On 27 May 2011 18:46, John Baldwin 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. > > > Especially on a system with a lot of CPUs, the idle threads can push > > > all the interesting threads off of the list. This patch adds a new > > > 'z' flag (gratuitously chosen letter) and interactive command to > > > toggle the display of the system idle process. Patch 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? > > I couldn't think of a sane way. There are a few times when I want to see > the idle processes, but mostly I don't want to see them and want all the > other settings (idle, system, threads, etc.) to be orthogonal. Top currently maps both "i" and "I" to "toggle idle processes". Maybe map "I" to "toggle system idle processes"? -- Dan Nelson dnelson@allantgroup.com