Re: [HACKERS] Execution time

Поиск
Список
Период
Сортировка
От Mattias Kregert
Тема Re: [HACKERS] Execution time
Дата
Msg-id 3503DF13.D2EA652@algonet.se
обсуждение исходный текст
Ответ на Re: [HACKERS] Execution time  (Shiby Thomas <sthomas@cise.ufl.edu>)
Список 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 по дате отправления:

Предыдущее
От: Mattias Kregert
Дата:
Сообщение: Re: [HACKERS] AUTO_INCREMENT suggestion
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] How to...?