pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anders K. Pedersen <akp@cohaesio.com>
To: pgsql-performance@postgresql.org
Subject: Re: Queries sometimes take 1000 times the normal time
Date: Thu, 28 Aug 2003 20:57:02 +0200
Message-ID: <bilj9u$a49$1@harrier.cohaesio.com> (raw)
References: <bijdiq$tor$1@harrier.cohaesio.com>
	<1062033258.71328.2.camel@jester>
	<bilftd$9dh$1@harrier.cohaesio.com>
	<1062095603.79027.205.camel@jester>

Rod Taylor wrote:
>>With regards to other jobs on the server, there is a MySQL server on it 
>>as well, which from time to time has some multi-second queries generated 
>>from a webserver also on this host, but the MySQL is running with nice 
>>10 (PostgreSQL isn't nice'd).
> 
> Do those MySQL queries hit disk hard?

I guess they may be able to do so - the MySQL database is 450 MB, and 
the server has 512 MB RAM, and some of the queries pretty summarizes 
everything in the database.

However, I just cross-referenced the access logs from the webserver with 
the duration logs, and although some of the spikes did happen, while 
there would have been some MySQL activity (I can't tell for sure, if it 
was simple queries or the long ones), other spikes happened without any 
website activity in the surrounding minutes.

> I've never seen PostgreSQL have hicups like you describe when running on
> a machine by itself.  I have experienced similar issues when another
> process (cron job in my case) caused brief swapping to occur.

OK. I may have to try to put the database on a separate server.

Regards,
Anders K. Pedersen




view thread (15+ messages)  latest in thread

Message-ID: <bilj9u$a49$1@harrier.cohaesio.com>
Permalink:  ../bilj9u$a49$1@harrier.cohaesio.com/
Also on:    postgresql.org/message-id/bilj9u$a49$1@harrier.cohaesio.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: akp@cohaesio.com
  Subject: Re: Queries sometimes take 1000 times the normal time
  In-Reply-To: <bilj9u$a49$1@harrier.cohaesio.com>
  References: <bijdiq$tor$1@harrier.cohaesio.com> <1062033258.71328.2.camel@jester> <bilftd$9dh$1@harrier.cohaesio.com> <1062095603.79027.205.camel@jester> <bilj9u$a49$1@harrier.cohaesio.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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