Re: Performance features the 4th
Kurt Roeckx <q@ping.be>
From: Kurt Roeckx <Q@ping.be>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2003-11-05T21:16:11Z
Lists: pgsql-hackers
On Wed, Nov 05, 2003 at 03:49:54PM -0500, Jan Wieck wrote: > Andrew Dunstan wrote: > > >Jan Wieck wrote: > > > >> > >>How portable is getrusage()? Could the postmaster issue that > >>frequently for RUSAGE_CHILDREN and leave the result somewhere in the > >>shared memory for whoever is concerned? > >> > >SVr4, BSD4.3, SUS2 and POSIX1003.1, I believe. > > > >I also believe there is a M$ dll available that gives that functionality > >(psapi.dll). > > Remains the question when it is updated, the manpage doesn't tell. If > the RUSAGE_CHILDREN information is updated only when the child exits, > each backend has to do it. "If the value of the who argument is RUSAGE_CHILDREN, information shall be returned about resources used by the terminated and waited-for children of the current process" Kurt