Date: Tue, 28 Nov 2000 13:47:25 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Dan Nelson <dnelson@emsphone.com> Cc: hackers@FreeBSD.org Subject: Re: Fixes to top(1) to use the full width of the screen for p_co Message-ID: <XFMail.001128134725.jhb@FreeBSD.org> In-Reply-To: <20001128153129.A1447@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001128134725.jhb>