Re: top for postgresql (ptop?) - Mailing list pgsql-hackers

From Greg Smith
Subject Re: top for postgresql (ptop?)
Date
Msg-id Pine.GSO.4.64.0709252351030.24010@westnet.com
Whole thread Raw
In response to Re: top for postgresql (ptop?)  ("Luke Lonergan" <llonergan@greenplum.com>)
Responses Re: top for postgresql (ptop?)  ("Luke Lonergan" <llonergan@greenplum.com>)
List pgsql-hackers
On Tue, 25 Sep 2007, Luke Lonergan wrote:

> One strategy we've considered is to use the same approach as "pstack" on 
> Solaris - it takes a pid and dumps the stack of a backend, which clearly 
> shows which executor node is being worked on currently.  I think pstack 
> uses dtrace underneath the hood...

pstack has been around since the SunOS days, long before dtrace was in 
Solaris, so it at least used to operate some other way.  I know they added 
some features to Solaris 10 that let pstack look into Java librarites that 
may leverage dtrace, but I don't believe the internals of the main pstack 
tool rely on it when looking at regular processes.

It's also worth noting that there's a similar Linux utility called gstack.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plpgsql TABLE patch
Next
From: Euler Taveira de Oliveira
Date:
Subject: Re: top for postgresql (ptop?)