Re: Re: [PORTS] pgmonitor and Solaris

From: Mathijs Brands <mathijs(at)ilse(dot)nl>
To: Pete Forman <pete(dot)forman(at)westerngeco(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Larry Rosenman <ler(at)lerctr(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [PORTS] pgmonitor and Solaris
Date: 2001-03-30 10:17:01
Message-ID: 20010330121701.B72236@ilse.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-ports

On Fri, Mar 30, 2001 at 11:07:25AM +0100, Pete Forman allegedly wrote:
> I've done a quick survey of the Suns available to me to see whether
> sendmail updates the ps display. The summary is:
>
> 1) Require "/usr/ucb/ps w" at least. /usr/bin/ps has no options
> that I can find to display the status of sendmail.
>
> 2) Older versions of sendmail do not update the status. 8.6 does
> not update, 8.8.8 does.
>
> 3) Solaris 2.5 and 2.5.1 have sendmail 8.6, 7 has 8.9.1, 8 has
> 8.9.3. Some 2.6 have 8.6, others have 8.8.8. Presumably
> patches have beed applied.
>
> On other OSs, AIX 4.1, 4.2, 4.3 have sendmail 8.8.4, 8.8.6, 8.8.8 or
> 8.9.3. They all display the status in both SysV and BSD modes.
> On AIX there is one ps command which handles both styles.
>
> IRIX 6.2 and 6.5.4m through 6.5.10m have sendmail 8.8.8, 8.9.1, 8.9.3.
> No status is available. There do not appear to be any BSD-ish ps
> options.

The way /usr/ucb/ps in Solaris extracts the status for a process requires
root rights and is (in my opinion) pretty gross. What it does is read the
pseudo-file /proc/<pid/as, which is actually the memory used by the
program. /usr/bin/ps only accesses /proc/<pid>/psinfo, which contains the
real parameters supplied to the program and not the clobbered version.

Regards,

Mathijs
--
It's not that perl programmers are idiots, it's that the language
rewards idiotic behavior in a way that no other language or tool has
ever done.
Erik Naggum

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message bryan 2001-03-30 10:21:46 Urgent!Can't start postmaster after rebooting
Previous Message Pete Forman 2001-03-30 10:07:25 Re: Re: [PORTS] pgmonitor and Solaris

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2001-03-30 13:13:14 AW: Re: [SQL] possible row locking bug in 7.0.3 & 7.1
Previous Message Hiroshi Inoue 2001-03-30 10:15:22 Re: [HACKERS] Re: possible row locking bug in 7.0.3 & 7.1

Browse pgsql-ports by date

  From Date Subject
Next Message Jason Tishler 2001-03-30 14:25:47 Re: Cygwin PostgreSQL Regression Test Problems (Revisited)
Previous Message Pete Forman 2001-03-30 10:07:25 Re: Re: [PORTS] pgmonitor and Solaris