Re: PostgreSQL and Xeon MP - Mailing list pgsql-performance

From Tom Lane
Subject Re: PostgreSQL and Xeon MP
Date
Msg-id 17483.1142526898@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL and Xeon MP  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Responses Re: PostgreSQL and Xeon MP  ("Guillaume Smet" <guillaume.smet@gmail.com>)
List pgsql-performance
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> You mean strace -p pid with pid on some of the postgres process not on
> the postmaster itself, does you?

Right, pick a couple that are accumulating CPU time.

> Do we need other options?

strace will generate a *whole lot* of output to stderr.  I usually do
something like
    strace -p pid 2>outfile
and then control-C it after a few seconds.

> Which pattern should we expect?

What we want to find out is if there's a lot of select()s and/or
semop()s shown in the result.  Ideally there wouldn't be any, but
I fear that's not what you'll find.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Guillaume Smet"
Date:
Subject: Re: PostgreSQL and Xeon MP
Next
From: Sven Geisler
Date:
Subject: Re: PostgreSQL and Xeon MP