Re: Slow count(*) again...

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: Slow count(*) again...
Дата
Msg-id 4CB4602A.3040800@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Slow count(*) again...  (Jon Nelson <jnelson+pgsql@jamponi.net>)
Ответы Re: Slow count(*) again...  (Jon Nelson <jnelson+pgsql@jamponi.net>)
Список pgsql-performance
Jon Nelson wrote:
> Is there a command to tell postgresql to drop/clear/reset it's buffer_cache?
>

No.  Usually the sequence used to remove all cached data from RAM before
a benchmark is:

pg_ctl stop
sync
echo 3 > /proc/sys/vm/drop_caches
pg_ctl start

--
Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services and Support  www.2ndQuadrant.us
Author, "PostgreSQL 9.0 High Performance"    Pre-ordering at:
https://www.packtpub.com/postgresql-9-0-high-performance/book


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

Предыдущее
От: Jon Nelson
Дата:
Сообщение: Re: Slow count(*) again...
Следующее
От: Luca Tettamanti
Дата:
Сообщение: Re: Slow count(*) again...