Re: Sudden crazy high CPU usage - Mailing list pgsql-performance

From Andres Freund
Subject Re: Sudden crazy high CPU usage
Date
Msg-id 20140401221653.GI3750@awork2.anarazel.de
Whole thread Raw
In response to Re: Sudden crazy high CPU usage  (Niels Kristian Schjødt <nielskristian@autouncle.com>)
Responses Re: Sudden crazy high CPU usage  (Michael Paquier <michael.paquier@gmail.com>)
List 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


pgsql-performance by date:

Previous
From: Niels Kristian Schjødt
Date:
Subject: Re: Sudden crazy high CPU usage
Next
From: bricklen
Date:
Subject: Re: Slow Count-Distinct Query