pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Chris Gamache <cgg007@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postmaster hogs CPU
Date: Thu, 6 May 2004 09:40:53 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.com> (raw)
In-Reply-To: <40999B90.5080004@bigfoot.com>

On Thu, 6 May 2004, Gaetano Mendola wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Tom Lane wrote:
> 
> | Gaetano Mendola <mendola@bigfoot.com> writes:
> |
> |>You can basically renice the process that is performing the query.
> |
> |
> | However, that's unlikely to do anything very pleasant, since you'll have
> | priority-inversion problems.  "nice" has no idea when the process is
> | holding a lock that someone else wants ...
> 
> That can be true, however in order to have a priority-inversion problem
> I think are necessary 3 different level of priority, you have carefully
> choose the postmaster and good value of nice in order to have it happen.
> 
> I was wandering about do the same work done with vacuum ( the sleep
> trick each n records) in order to slow some expensive but not crucial
> queries:
> 
> test> set query_delay = 10;  <-- 10 ms
> test> select * from <very expensive query >;

I like that idea.  Make it more like a query_priority and let the system 
figure out delays though.




view thread (7+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.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-admin@postgresql.org
  Cc: scott.marlowe@ihs.com, mendola@bigfoot.com, tgl@sss.pgh.pa.us, cgg007@yahoo.com
  Subject: Re: Postmaster hogs CPU
  In-Reply-To: <Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.com>
  References: <40999B90.5080004@bigfoot.com> <Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.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