From: CaptainX0r <captainx0r@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: Re: Sun vs. Mac
Date: Tue, 14 Jan 2003 11:38:28 -0800 (PST)
Message-ID: <20030114193828.37133.qmail@web21106.mail.yahoo.com> (raw)
In-Reply-To: <17342.1042568154@sss.pgh.pa.us>
> I believe top's percent-of-CPU numbers for individual
> processes are time
> averages over a minute or so, so the ramping effect is
> unsurprising.
Thanks - this makes much more sense.
> > This doesn't really tell me much, except I'm guessing that
> > PG is CPU bound?
>
> Yup, that seems pretty clear. Next step is to find out what
> the heck
> it's doing. My instinct would be to use gprof. Recompile
> with
> profiling enabled --- if you're using gcc, this should work
> cd postgres-distribution/src/backend
> make clean
> make PROFILE=-pg all
> make install-bin -- may need to stop postmaster
> Next run some sample queries (put them all into one session).
> After quitting the session, find gmon.out in the
> $PGDATA/base/nnn/ subdirectory corresponding to your database,
> and feed it to gprof.
> The results should show where the code hotspot is.
Well if that isn't a fancy bit of info.... Thanks!
gprof says:
Fatal ELF error: can't read ehdr (Request error: class
file/memory mismatch)
I'm guessing that's not what we're expecting... I'm using
/usr/ccs/bin/gprof - maybe there's a better one?
-X
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: captainx0r@yahoo.com
Subject: Re: Sun vs. Mac
In-Reply-To: <20030114193828.37133.qmail@web21106.mail.yahoo.com>
References: <17342.1042568154@sss.pgh.pa.us> <20030114193828.37133.qmail@web21106.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox