Re: freebsd + postgresql 8.3.3 = 100% of cpu usage on stats collector? - Mailing list pgsql-general

From Bill Moran
Subject Re: freebsd + postgresql 8.3.3 = 100% of cpu usage on stats collector?
Date
Msg-id 20080629171359.737afc57.wmoran@collaborativefusion.com
Whole thread Raw
In response to Re: freebsd + postgresql 8.3.3 = 100% of cpu usage on stats collector?  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: freebsd + postgresql 8.3.3 = 100% of cpu usage on stats collector?
List pgsql-general
On Sat, 28 Jun 2008 11:35:24 +0200
hubert depesz lubaczewski <depesz@depesz.com> wrote:

> On Sat, Jun 28, 2008 at 02:22:26AM -0300, Rodrigo Gonzalez wrote:
> > So, read man page, and at least ktrace -C and read the output at
> > ktrace.out file.
>
> ok, i've read it and didn't understand. it says how to disable tracing
> but it doesn't say anything about enabling tracing.

Use "ktrace -p [pid]" to start tracing.  Then use "ktrace -C" to stop
tracing.  Trace data is dumped in binary format to the file ktrace.out
(unless you use the -f option to specify another file)

Use the kdump utility to convert the ktrace.out file to something usable.
Something like "kdump > ktrace.txt" will probably get you what you want,
assuming your ktrace file is ktrace.out.

--
Bill Moran <wmoran@collaborativefusion.com>

pgsql-general by date:

Previous
From: Greg Smith
Date:
Subject: Re: compiling, performance of PostGreSQL 8.3 on 64-bit processors
Next
From: Alvaro Herrera
Date:
Subject: Re: libpq block allocated before my malloc handler inits?