Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 13:47:24 -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.001128134724.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 :)

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 <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.001128134724.jhb>