Re: Slow count(*) again...

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Slow count(*) again...
Дата
Msg-id 4CB43882020000250003681C@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Slow count(*) again...  (Jon Nelson <jnelson+pgsql@jamponi.net>)
Список pgsql-performance
Jon Nelson <jnelson+pgsql@jamponi.net> wrote:
> Greg Smith <greg@2ndquadrant.com> wrote:

>> Usually the sequence used to remove all cached data from RAM
>> before a benchmark is:
>
> All cached data (as cached in postgresql - *not* the Linux system
> caches)..., right?

No.  The stop and start of PostgreSQL causes empty PostgreSQL
caches.  These lines, in between the stop and start, force the Linux
cache to be empty (on recent kernel versions):

sync
echo 3 > /proc/sys/vm/drop_caches

-Kevin

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

Предыдущее
От: bricklen
Дата:
Сообщение: Re: Slow count(*) again...
Следующее
От: Dan Harris
Дата:
Сообщение: Re: Slow count(*) again...