From owner-freebsd-hackers Tue Nov 28 13:47:30 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 9C53837B401 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 eASLlCC91904; Tue, 28 Nov 2000 13:47:12 -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:25 -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 :) Well, this doesn't work if you have MUTEX_DEBUG on. :-P I'll need to add a field to proc similar to p_wmesg. I prefer this since I don't want userland knowing about the internals of mutexes 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