Re: How to find if a SELECT is reading from buffer or disk ?

Поиск
Список
Период
Сортировка
От Balkrishna Sharma
Тема Re: How to find if a SELECT is reading from buffer or disk ?
Дата
Msg-id BAY149-w3701A07CB4C59BEAB6CF88F0E80@phx.gbl
обсуждение исходный текст
Ответ на Re: How to find if a SELECT is reading from buffer or disk ?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-admin
I am on Fedora 12 (x86_64). Will eventually be on RHE.

> Date: Tue, 25 May 2010 12:59:16 -0500
> From: Kevin.Grittner@wicourts.gov
> To: b_ki@hotmail.com; pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] How to find if a SELECT is reading from buffer or disk ?
>
> Balkrishna Sharma <b_ki@hotmail.com> wrote:
>
> > I am increasing the shared_buffer size in postgresql.conf and want
> > to measure its effect on READ. In essence I want to know if the
> > SELECT queries I am firing repeatedly is reading from the buffer
> > or going directly to the disk.
>
> There's a third option -- PostgreSQL reads and writes will normally
> go through the OS cache.
>
> > Right now I am just looking at execution time of the SELECTs and
> > trying to conclude. But there should be a direct way to see where
> > the SELECT reads from.
> > How can I accomplish this ?
>
> You didn't mention your OS. There's usually a way to monitor disk
> I/O built in to the OS. I usually start with:
>
> vmstat 1
>
> -Kevin
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin


The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: How to find if a SELECT is reading from buffer or disk ?
Следующее
От: Balkrishna Sharma
Дата:
Сообщение: Relation between RAM / shmmax / shmall / shared_buffers