From owner-freebsd-hackers Wed Jan 2 23:27:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id 970CC37B419 for ; Wed, 2 Jan 2002 23:27:52 -0800 (PST) Received: (qmail 19624 invoked by uid 1000); 3 Jan 2002 07:28:13 -0000 Date: Wed, 2 Jan 2002 23:27:51 -0801 From: Jos Backus To: hackers@freebsd.org Subject: Solaris /usr/proc/bin/pstack functionality? Message-ID: <20020103072813.GB14656@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG See the post below. Is there a way to get at this information in FreeBSD? Thanks, Jos ----- Forwarded message from Justin Erenkrantz ----- Date: Wed, 2 Jan 2002 14:02:24 -0800 From: Justin Erenkrantz To: Aaron Bannert , 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 , Aaron Bannert , 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. +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