pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tobias Brox <tobias@nordicbet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: "nice"/low priority Query
Date: Tue, 02 Aug 2005 17:54:52 +0100
Message-ID: <42EFA55C.3080903@archonet.com> (raw)
In-Reply-To: <11484.1122999570@sss.pgh.pa.us>
References: <20050802160434.GD9278@tobias.lan>
	<11484.1122999570@sss.pgh.pa.us>

Tom Lane wrote:
> Tobias Brox <tobias@nordicbet.com> writes:
> 
>>Is there any ways to give postgresql a hint that a
>>particular SQL call should be run at lower priority?  Since every db
>>connection has a pid, I can manually run "renice" to scheduele it by the OS
>>- but of course I can't do it manually all the time.
> 
> And it won't help you anyway, because renice only affects CPU priority
> not I/O scheduling ... which, by your description, is the real problem.
> 
> I think the only thing that's likely to help much is trying to arrange
> that the "simple" queries only need to touch pages that are already in
> memory.  Some playing around with shared_buffer sizing might help.
> Also, if you're not on PG 8.0.*, an update might help.

Would it be useful to be able to re-use the vacuum_cost_xxx settings in 
8.0 for this sort of thing? I'm thinking a long-running report query 
isn't that different from a vacuum.

--
   Richard Huxton
   Archonet Ltd



view thread (7+ messages)  latest in thread

Message-ID: <42EFA55C.3080903@archonet.com>
Permalink:  ../42EFA55C.3080903@archonet.com/
Also on:    postgresql.org/message-id/42EFA55C.3080903@archonet.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: dev@archonet.com, tgl@sss.pgh.pa.us, tobias@nordicbet.com
  Subject: Re: "nice"/low priority Query
  In-Reply-To: <42EFA55C.3080903@archonet.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