Re: Sudden crazy high CPU usage

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Niels Kristian Schjødt <nielskristian(at)autouncle(dot)com>
Cc: 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-01 22:16:53
Message-ID: 20140401221653.GI3750@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message bricklen 2014-04-02 00:34:09 Re: Slow Count-Distinct Query
Previous Message Niels Kristian Schjødt 2014-04-01 21:50:59 Re: Sudden crazy high CPU usage