pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Niels Kristian Schjødt <nielskristian@autouncle.com>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-performance@postgresql.org list <pgsql-performance@postgresql.org>
Subject: Re: Sudden crazy high CPU usage
Date: Wed, 2 Apr 2014 00:16:53 +0200
Message-ID: <20140401221653.GI3750@awork2.anarazel.de> (raw)
In-Reply-To: <C9C416B5-747E-4C69-BEA3-3E4695B196DF@autouncle.com>
References: <24BBD031-7384-4FFF-848B-90F5664C0063@autouncle.com>
	<CAHyXU0y9hviyKWvQZxX5UWfH9M2LYvwvAOPQ_DUPva2b71t12g@mail.gmail.com>
	<2ABC90E9-8312-45A4-96E0-CFE202CCD9CE@autouncle.com>
	<CAHyXU0w8_3+-7icXLS2nXWij78+SPEVDwjZ1c8gXg0KjZi1oPw@mail.gmail.com>
	<C9C416B5-747E-4C69-BEA3-3E4695B196DF@autouncle.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (12+ messages)  latest in thread

Message-ID: <20140401221653.GI3750@awork2.anarazel.de>
Permalink:  ../20140401221653.GI3750@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20140401221653.GI3750@awork2.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andres@2ndquadrant.com, nielskristian@autouncle.com, mmoncure@gmail.com
  Subject: Re: Sudden crazy high CPU usage
  In-Reply-To: <20140401221653.GI3750@awork2.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox