From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Process priority. |
Date: | 2005-03-18 00:06:01 |
Message-ID: | 28823.1111104361@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au> writes:
> I wrote a C program that can be called through postgres via stored
> procedures. It allows you to change the current postmaster process priority.
You are aware that that's widely considered either useless or
counterproductive? Renice-ing one backend seldom gives helpful results,
because (a) what usually matters more than CPU usage is I/O, and renice
doesn't change I/O priorities; (b) priority inversion results in
higher-priority backends blocking behind the low-priority one whenever
it's managed to acquire a lock.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Theo Galanakis | 2005-03-18 00:32:41 | Re: Process priority. |
Previous Message | Andrew Hammond | 2005-03-17 23:35:39 | Re: Consecutive row count query |