Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2002 23:27:51 -0801
From:      Jos Backus <josb@cncdsl.com>
To:        hackers@freebsd.org
Subject:   Solaris /usr/proc/bin/pstack functionality?
Message-ID:  <20020103072813.GB14656@lizzy.bugworks.com>

next in thread | raw e-mail | index | archive | help
See the post below. Is there a way to get at this information in FreeBSD?

Thanks,
Jos

----- Forwarded message from Justin Erenkrantz <jerenkrantz@ebuilt.com> -----

Date: Wed, 2 Jan 2002 14:02:24 -0800
From: Justin Erenkrantz <jerenkrantz@ebuilt.com>
To: Aaron Bannert <aaron@clove.org>, dev@httpd.apache.org
Subject: Re: 2.0.30-dev load spiking [was: upgrade to FreeBSD 4.5-PRERELEASE]
Reply-To: dev@httpd.apache.org
Mail-Followup-To: Justin Erenkrantz <jerenkrantz@ebuilt.com>,
	Aaron Bannert <aaron@clove.org>, dev@httpd.apache.org

On Wed, Jan 02, 2002 at 12:52:57PM -0800, Aaron Bannert wrote:
> On Wed, Jan 02, 2002 at 12:46:46PM -0800, Brian Pane wrote:
> > Do you have a way to take a snapshot of each httpd process's stack
> > backtrace?  On Solaris, I'd do this by running /usr/proc/bin/pstack
> > on each pid; I don't know if FreeBSD has a similar functionality.
> > This would give us a picture of what all those runnable processes
> > are doing.
> 
> Ooh, if it does I'd love to find out how. Same goes for a truss that
> can follow children, and a ps command to tell me how many threads are
> in a process.</wishlist>

+1.  =)  I've talked to the FreeBSD people and they just laugh
maniacally when I ask for a truss that follows children.  AIUI,
NetBSD has this, so it is possible to port these changes over, 
but it requires an overhaul to procfs from what I've been told.

FreeBSD has a long way to get the stellar debugging capabilities 
of Solaris.  -- justin

----- End forwarded message -----

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
josb@cncdsl.com     _/_/   _/_/_/            use Std::Disclaimer;

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?20020103072813.GB14656>