From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: High CPU usage / load average after upgrading to Ubuntu 12.04 |
Date: | 2013-02-15 18:52:34 |
Message-ID: | CAOR=d=2cEi=ibGS4DCrFAWq8VtCz6XEYDsMyarBX=evshLWgKg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, Feb 15, 2013 at 11:26 AM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 02/14/2013 08:47 PM, Scott Marlowe wrote:
>> If you run your benchmarks for more than a few minutes I highly
>> recommend enabling sysstat service data collection, then you can look
>> at it after the fact with sar. VERY useful stuff both for
>> benchmarking and post mortem on live servers.
>
> Well, background sar, by default on Linux, only collects every 30min.
> For a benchmark run, you want to generate your own sar file, for example:
On all my machines (debian and ubuntu) it collects every 5.
> sar -o hddrun2.sar -A 10 90 &
>
> which says "collect all stats every 10 seconds and write them to the
> file hddrun2.sar for 15 minutes"
Not a bad idea. esp when benchmarking.
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2013-02-15 21:27:37 | Re: Surprising no use of indexes - low performance |
Previous Message | Josh Berkus | 2013-02-15 18:26:08 | Re: High CPU usage / load average after upgrading to Ubuntu 12.04 |