pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedSlow in morning hours
5+ messages / 5 participants
[nested] [flat]
* Slow in morning hours
@ 2004-02-20 09:16 vathakar@banas.guj.nic.in
2004-02-20 12:19 ` Re: Slow in morning hours Andrew Sullivan <ajs@crankycanuck.ca>
2004-02-20 13:48 ` Re: Slow in morning hours Bill Moran <wmoran@potentialtech.com>
2004-02-20 14:51 ` Re: Slow in morning hours ohp@pyrenet.fr
2004-06-05 20:54 ` Re: Slow in morning hours Harald Fuchs <hf517@protecting.net>
0 siblings, 4 replies; 5+ messages in thread
From: vathakar@banas.guj.nic.in @ 2004-02-20 09:16 UTC (permalink / raw)
To: pgsql-performance; +Cc: vathakar@banas.guj.nic.in
Hi All,
I am using Linux 7.2 and postgresql 7.2.
Our Office hours are over at 6pm but we use to keep our server
running 24 hours a day. On the second day morning, Our PGSQL
Server becomes very slow.
After continuous usage of one hour, It gradually starts responding
faster ! This has become every day routine !
do u have any idea related to this !!!! Is there any other reason that I
need to check up?
Please any any idea to get relief daily morning problem !!
Thanxs,
Vishal
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Slow in morning hours
2004-02-20 09:16 Slow in morning hours vathakar@banas.guj.nic.in
@ 2004-02-20 12:19 ` Andrew Sullivan <ajs@crankycanuck.ca>
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Sullivan @ 2004-02-20 12:19 UTC (permalink / raw)
To: pgsql-performance
On Fri, Feb 20, 2004 at 02:46:15PM +0530, vathakar@banas.guj.nic.in wrote:
>
> After continuous usage of one hour, It gradually starts responding
> faster ! This has become every day routine !
>
> do u have any idea related to this !!!! Is there any other reason that I
> need to check up?
What's running on the machine during those hours? Maybe VACUUM is
sucking up all your bandwidth. Or your backups. Or some other
cron job.
Note that 7.2 is pretty old. There are several performance
improvements in subsequent versions.
A
--
Andrew Sullivan
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Slow in morning hours
2004-02-20 09:16 Slow in morning hours vathakar@banas.guj.nic.in
@ 2004-02-20 13:48 ` Bill Moran <wmoran@potentialtech.com>
3 siblings, 0 replies; 5+ messages in thread
From: Bill Moran @ 2004-02-20 13:48 UTC (permalink / raw)
To: vathakar@banas.guj.nic.in; +Cc: pgsql-performance
vathakar@banas.guj.nic.in wrote:
> Hi All,
>
> I am using Linux 7.2 and postgresql 7.2.
>
> Our Office hours are over at 6pm but we use to keep our server
> running 24 hours a day. On the second day morning, Our PGSQL
> Server becomes very slow.
>
> After continuous usage of one hour, It gradually starts responding
> faster ! This has become every day routine !
>
> do u have any idea related to this !!!! Is there any other reason that I
> need to check up?
>
> Please any any idea to get relief daily morning problem !!
I've seen this happen, and not just with PostgreSQL. The reasons are many
an varied, but here's my experience on the most common.
1) As someone else suggested, there may be some daily maintenance process
(i.e. backup) that's still running when you come in. Check this, and
reschedule if necessary.
2) Even if these nightly maintenance processes are finished when you first
come in, they've probably completely rearranged the contents of RAM.
Meaning, data that Linux had cached that made Postgres fast now needs
to be fetched from disk again. There are some things you can do, such
as adding RAM or getting faster disks, but this is a difficult problem
to solve. Some of the nightly processes could be safely disabled,
possibly, such as rebuilding the located database (if you don't use
locate) Possibly (I'm guessing here) if you scheduled pg_dump to be
the last process to run at night, it might put the cache back in a
better state?
3) First thing AM load. It's quite common for load to be higher at certain
times of the day, and first thing in the morning is a common time for
load to be higher than usual (especially for email servers). Check the
load on the machine with tools like top and see if it isn't just busier
in the morning than other times during the day. There might even be one
or two particular queries that people only run first thing that bog the
machine down. Depending on what you find, you may be able to optomise
some queries. Possibly some fine-tuning could correct the problem. Or
you might be forced to upgrade hardware if you want the machine to handle
the higher morning load faster. First thing to determine, though, is
whether or not the load is higher or the same.
Without more detail on the load, setting, etc of your system, these are all
guesses. Hopefully the information is helpful, though.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Slow in morning hours
2004-02-20 09:16 Slow in morning hours vathakar@banas.guj.nic.in
@ 2004-02-20 14:51 ` ohp@pyrenet.fr
3 siblings, 0 replies; 5+ messages in thread
From: ohp@pyrenet.fr @ 2004-02-20 14:51 UTC (permalink / raw)
To: vathakar@banas.guj.nic.in; +Cc: pgsql-performance
Have you tried VACUUM ANALYZE at least one a day?
Regards
On Fri, 20 Feb 2004 vathakar@banas.guj.nic.in wrote:
> Date: Fri, 20 Feb 2004 14:46:15 +0530
> From: vathakar@banas.guj.nic.in
> To: pgsql-performance@postgresql.org
> Cc: vathakar@banas.guj.nic.in
> Subject: [PERFORM] Slow in morning hours
>
> Hi All,
>
> I am using Linux 7.2 and postgresql 7.2.
>
> Our Office hours are over at 6pm but we use to keep our server
> running 24 hours a day. On the second day morning, Our PGSQL
> Server becomes very slow.
>
> After continuous usage of one hour, It gradually starts responding
> faster ! This has become every day routine !
>
> do u have any idea related to this !!!! Is there any other reason that I
> need to check up?
>
> Please any any idea to get relief daily morning problem !!
>
> Thanxs,
> Vishal
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Slow in morning hours
2004-02-20 09:16 Slow in morning hours vathakar@banas.guj.nic.in
@ 2004-06-05 20:54 ` Harald Fuchs <hf517@protecting.net>
3 siblings, 0 replies; 5+ messages in thread
From: Harald Fuchs @ 2004-06-05 20:54 UTC (permalink / raw)
To: pgsql-performance
In article <40361DBE.3636.10FEBF@localhost>,
<vathakar@banas.guj.nic.in> writes:
> Hi All,
> I am using Linux 7.2 and postgresql 7.2.
> Our Office hours are over at 6pm but we use to keep our server
> running 24 hours a day. On the second day morning, Our PGSQL
> Server becomes very slow.
> After continuous usage of one hour, It gradually starts responding
> faster ! This has become every day routine !
> do u have any idea related to this !!!! Is there any other reason that I
> need to check up?
> Please any any idea to get relief daily morning problem !!
I guess you're doing a VACUUM at night which invalidates the buffer
cache. If that's what happens, it's easy to fix: run some dummy
queries after the VACUUM which cause the buffer cache to get filled.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2004-06-05 20:54 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 09:16 Slow in morning hours vathakar@banas.guj.nic.in
2004-02-20 12:19 ` Andrew Sullivan <ajs@crankycanuck.ca>
2004-02-20 13:48 ` Bill Moran <wmoran@potentialtech.com>
2004-02-20 14:51 ` ohp@pyrenet.fr
2004-06-05 20:54 ` Harald Fuchs <hf517@protecting.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox