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 19:59:09 +0200
Message-ID: <bilftd$9dh$1@harrier.cohaesio.com> (raw)
References: <bijdiq$tor$1@harrier.cohaesio.com>
	<1062033258.71328.2.camel@jester>

Rod Taylor wrote:
>>Currently there's only a few users in the database for testing purposes, 
>>and most of the time the user lookup's take 2-3 ms (I have syslog'ing of 
>>queries and duration turned on), but several times per hour the duration 
>>for one of the queries is 2-3 seconds (1000 times larger), while the 
>>surrounding lookups take the usual 2-3 ms.
> 
> Are there any other jobs running at the time of these excessive queries?

I don't know if you're referring to jobs inside the PostgreSQL database 
or just jobs on the server, but I'm pretty sure that nothing major is 
going on inside the database - the only other job using it is doing an 
insert whenever one of our game admins executes an administrative 
command (like ban or kick), but this doesn't happen all that often, and 
according the PostgreSQL log isn't happening at the same times as the 
long queries.

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).

Someone else asked about vmstat results, and I've been running this for 
a while now, and I will report the results shortly.

Regards,
Anders K. Pedersen




view thread (15+ messages)  latest in thread

Message-ID: <bilftd$9dh$1@harrier.cohaesio.com>
Permalink:  ../bilftd$9dh$1@harrier.cohaesio.com/
Also on:    postgresql.org/message-id/bilftd$9dh$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: <bilftd$9dh$1@harrier.cohaesio.com>
  References: <bijdiq$tor$1@harrier.cohaesio.com> <1062033258.71328.2.camel@jester> <bilftd$9dh$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