Using OProfile

From: Reydan Cankur <reydan(dot)cankur(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Using OProfile
Date: 2009-09-29 11:07:44
Message-ID: 1C850F4F-1AB2-4713-A378-6DF2255C5EE7@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

I tried to profile postgresql queries with OProfile but I could not do.
OProfile version: 0.9.5
PostgreSQL version: 8.4.0
OS: CentOS 5

I compiled OProfile with "./configure --with-kernel-support", "make"
and "make install"; also I created a user and a group both named as
"oprofile". User oprofile's default group is oprofile.

PostgreSQL was installed, and there is a db named "test". I ran below
commands with "reydan" user;

sudo opcontrol --init
sudo opcontrol --setup --no-vmlinux
mkdir opdeneme (for profile files)
sudo opcontrol --session-dir=/path/to/opdeneme
sudo opcontrol --start
sudo opcontrol --reset
psql -f deneme.sql test
sudo opcontrol --dump
sudo opcontrol --shutdown
opreport --long-filenames | more (after this command I get below error)
error: no sample files found: profile specification too strict ?
And I could not profile with oprofile, what is my fault, please advice..

content of deneme.sql:
"create table deneme1 as
select sid,
md5((sid*10)::text),
((substring(random()::text from 3 for 5))::int+10000) as a
from generate_series(1,1000000) sid;"

Regards,
--Reydan

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Sgarbossa Domenico 2009-09-29 12:44:49 Re: Performance problems with DISTINCT ON
Previous Message Richard Huxton 2009-09-29 08:28:23 Re: Performance problems with DISTINCT ON