Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WnTMf-0000Ps-3N for pgsql-performance@arkaria.postgresql.org; Thu, 22 May 2014 13:48:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WnTMe-000388-8t for pgsql-performance@arkaria.postgresql.org; Thu, 22 May 2014 13:48:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WnTMd-000381-Fo for pgsql-performance@postgresql.org; Thu, 22 May 2014 13:48:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WnTMb-0001gB-2L for pgsql-performance@postgresql.org; Thu, 22 May 2014 13:48:54 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s4MDmo4d010601; Thu, 22 May 2014 09:48:51 -0400 From: Tom Lane To: Dimitris Karampinas cc: pgsql-performance@postgresql.org Subject: Re: Profiling PostgreSQL In-reply-to: References: Comments: In-reply-to Dimitris Karampinas message dated "Thu, 22 May 2014 15:27:26 +0200" Date: Thu, 22 May 2014 09:48:52 -0400 Message-ID: <3712.1400766532@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Dimitris Karampinas writes: > Is there any way to get the call stack of a function when profiling > PostgreSQL with perf ? > I configured with --enable-debug, I run a benchmark against the system and > I'm able to identify a bottleneck. > 40% of the time is spent on an spinlock yet I cannot find out the codepath > that gets me there. > Using --call-graph with perf record didn't seem to help. Call graph data usually isn't trustworthy unless you built the program with -fno-omit-frame-pointer ... regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance