Re: Performance question 83 GB Table 150 million rows, distinct select

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Performance question 83 GB Table 150 million rows, distinct select
Дата
Msg-id CAOR=d=2ZHAf=jubZXXOFOHyrwGqf-UUGwZ6TO0sHjbTzDN6_-Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Performance question 83 GB Table 150 million rows, distinct select  ("Tomas Vondra" <tv@fuzzy.cz>)
Ответы Re: Performance question 83 GB Table 150 million rows, distinct select  ("Tomas Vondra" <tv@fuzzy.cz>)
Список pgsql-performance
On Wed, Nov 16, 2011 at 4:59 PM, Tomas Vondra <tv@fuzzy.cz> wrote:

> But you're right - you're not bound by I/O (although I don't know what are
> those 15% - iowait, util or what?). The COUNT(DISTINCT) has to actually
> keep all the distinct values to determine which are actually distinct.

Actually I meant to comment on this, he is IO bound.  Look at % Util,
it's at 99 or 100.

Also, if you have 16 cores and look at something like vmstat you'll
see 6% wait state.  That 6% represents one CPU core waiting for IO,
the other cores will add up the rest to 100%.

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

Предыдущее
От: Tory M Blue
Дата:
Сообщение: Re: Performance question 83 GB Table 150 million rows, distinct select
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Performance question 83 GB Table 150 million rows, distinct select