Re: Sudden crazy high CPU usage

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Niels Kristian Schjødt <nielskristian(at)autouncle(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, "pgsql-performance(at)postgresql(dot)org list" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Sudden crazy high CPU usage
Date: 2014-04-03 00:00:09
Message-ID: CAB7nPqSwJk42PzwEsfJpAgheYiO3w5O8koDrCZQK516azvpRqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Apr 2, 2014 at 7:16 AM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> On 2014-03-31 19:16:58 +0200, Niels Kristian Schjødt wrote:
>> Yes, I could install "perf", though I'm not familiar with it. What would i do? :-)
>
> As root:
> perf record -a sleep 5
> perf report > my-nice-perf-report.txt
>
> And then send the my-nice-perf-report.txt file.
>
> Locally it's much nicer to see the output using "perf report" without
> redirect into a file, you'll get an interactive UI.
The Postgres wiki has a page dedicated to perf as well here:
https://wiki.postgresql.org/wiki/Profiling_with_perf

Regards,
--
Michael

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Reza Taheri 2014-04-03 00:38:14 PGSQL, checkpoints, and file system syncs
Previous Message Alexey Klyukin 2014-04-02 09:38:57 Re: Why shared_buffers max is 8GB?