Re: [HACKERS] Execution time - Mailing list pgsql-hackers

From Mattias Kregert
Subject Re: [HACKERS] Execution time
Date
Msg-id 3503DF13.D2EA652@algonet.se
Whole thread Raw
In response to Re: [HACKERS] Execution time  (Shiby Thomas <sthomas@cise.ufl.edu>)
List pgsql-hackers
Shiby Thomas wrote:
>
> The time command will give the elapsed, user CPU and System CPU times.
> How do I interpret it as CPU/IO time ?
>
> Even the -s option of postgres gives those times. Will it be the same as
> using "time postgres" ? Is the System time a reasonable approximation of the
> I/O time and user time that of CPU time ?


I would say they are reasonable approximations, at least for
user==CPU.
Perhaps you need to look at elapsed time too, and from that make some
assumptions about I/O waiting time. I think system time will be lower
if you use SCSI and higher with IDE.
I would count (elapsed time - CPU time) as I/O time.

/* m */

pgsql-hackers by date:

Previous
From: Mattias Kregert
Date:
Subject: Re: [HACKERS] AUTO_INCREMENT suggestion
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] How to...?