Re: Performance monitor

From: "Gordon A(dot) Runkle" <gar(at)integrated-dynamics(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Performance monitor
Date: 2001-03-10 01:29:29
Message-ID: 98bvv9$13c1$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In article <200103081735(dot)MAA06567(at)candle(dot)pha(dot)pa(dot)us>, "Bruce Momjian"
<pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> The problem I see with the shared memory idea is that some of the
> information needed may be quite large. For example, query strings can
> be very long. Do we just allocate 512 bytes and clip off the rest. And
> as I add more info, I need more shared memory per backend. I just liked
> the file system dump solution because I could modify it pretty easily,
> and because the info only appears when you click on the process, it
> doesn't happen often.
>
> Of course, if we start getting the full display partly from each
> backend, we will have to use shared memory.

Long-term, perhaps a monitor server (like Sybase ASE uses) might
be a reasonable approach. That way, only one process (and a well-
regulated one at that) would be accessing the shared memory, which
should make it safer and have less of an impact performance-wise
if semaphores are needed to regulate access to the various regions
of shared memory.

Then, 1-N clients may access the monitor server to get performance
data w/o impacting the backends.

Gordon.
--
It doesn't get any easier, you just go faster.
-- Greg LeMond

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-03-10 01:30:59 Interesting failure mode for initdb
Previous Message Mark Bixby 2001-03-10 00:20:42 Re: porting question: funky uid names?