how to find the sql using most of the i/o in an oltp system

Поиск
Список
Период
Сортировка
От Uwe Bartels
Тема how to find the sql using most of the i/o in an oltp system
Дата
Msg-id 48551DB0.8050507@gmail.com
обсуждение исходный текст
Список pgsql-performance
Hi,

I read a lot about postgres tuning and did some of it. But one of the
things, when you start tuning a system that is completely new to you, is
checking which sql statement(s) cost most of the resources.

cpu instensive sql seems easy to find.
But how do I find i/o intensive sql as fast as possible?

Tuning a sql statements I'm familiar with. Finding a sql statement which
takes too long due to i/o is probably easy as well. But how about
statements that take about 100 ms, that read a lot and that are executed
several times per second?

To ask the same question just different - Is there a possibility to
check how many pages/kB a sql reads from shared buffer and how many
pages/kB from disk?
Is there a possibility to read or create historical records about how
often, how fast one sql is run and how many reads it used from shared
buffers, from disk an so on.


Best regards,
Uwe

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

Предыдущее
От: Josh Rovero
Дата:
Сообщение: Re: 8.3.1 vs 8.2.X on HP-UX PA-RISC 11.11/11.23
Следующее
От: "Uwe Bartels"
Дата:
Сообщение: Re: how to find the sql using most of the i/o in an oltp system