Re: query slow only after reboot - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: query slow only after reboot
Date
Msg-id 49914246.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to query slow only after reboot  (Wei Yan <weiyan1@gmail.com>)
List pgsql-performance
>>> Wei Yan <weiyan1@gmail.com> wrote:
> Our queries are extremely slow only after db server reboot

> Any suggestion on how to tackle the problem?

Others have addressed how you can try to prime your cache after a
reboot, so I'll mention the 800 pound gorilla sitting in the corner.
I suggest you don't reboot as often, and when you have to do so,
schedule it off-hours, when there is time for the cache to get
populated with minimal pain.

We basically don't reboot our database servers except when we upgrade
the kernel.  Even when we were running Windows as the OS on some
servers we were able to tune it so that reboots could be relatively
infrequent by aggressively disabling services and daemons down to the
bare minimum.

-Kevin

pgsql-performance by date:

Previous
From: Rajesh Kumar Mallah
Date:
Subject: Re: ERROR: Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.8.8/Test/Parser/Dbt2.pm line 521.
Next
From: Tom Lane
Date:
Subject: Re: query becomes fas on 'SET enable_hashjoin TO off;'