Re: Postmaster hogs CPU

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Chris Gamache <cgg007(at)yahoo(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postmaster hogs CPU
Date: 2004-05-06 15:40:53
Message-ID: Pine.LNX.4.33.0405060940250.4971-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, 6 May 2004, Gaetano Mendola wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tom Lane wrote:
>
> | Gaetano Mendola <mendola(at)bigfoot(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Gamache 2004-05-06 16:01:33 Re: Postmaster hogs CPU
Previous Message Martin Brommer 2004-05-06 12:46:29 Meta data corruption