From owner-freebsd-hackers Tue Nov 28 13:47:20 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 9A4E737B400 for ; Tue, 28 Nov 2000 13:47:18 -0800 (PST) Received: from laptop.baldwin.cx (john@dhcp246.osd.bsdi.com [204.216.28.246]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id eASLlBC91900; Tue, 28 Nov 2000 13:47:11 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20001128153129.A1447@dan.emsphone.com> Date: Tue, 28 Nov 2000 13:47:24 -0800 (PST) From: John Baldwin To: Dan Nelson Subject: Re: Fixes to top(1) to use the full width of the screen for p_co Cc: hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 28-Nov-00 Dan Nelson wrote: > In the last episode (Nov 28), John Baldwin said: >> Hey gang, >> >> One of my favorite tools to use during the SMPng stuff is top(1) as I >> get to see all the Happy Little Processes bouncing around on CPU's >> and getting stuck in SMTX, etc. > > On a related note, here's a little patch to top that digs around and > tells you what mutex a process is waiting on. It replaces "MUTEX" with > "M######", where "######" is the first 6 characters of the mutex name > passed to mtx_init. At the moment all I see is "MGiant" all over the > place, but hopefully that'll change soon :) Hmm, I would probably make it say '*Giant' or some such (i.e., use something other than a letter to differentiate). I really don't like userland programs knowing about mutexes, so I was intending to add a field to proc that pointed to the name of a mutex that was blocked on, but I may go with this anyways. :) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message