Re: Preventing query from hogging server - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: Preventing query from hogging server
Date
Msg-id 20050328210559.GC51784@decibel.org
Whole thread Raw
In response to Preventing query from hogging server  ("Matthew Nuzum" <matt.followers@gmail.com>)
List pgsql-performance
On Thu, Mar 24, 2005 at 01:07:39PM -0600, Matthew Nuzum wrote:
> I've tried `nice psql` in the past and I don't think that had much impact,
> but I haven't tried it on this query.

On linux, nice will only help if the query is CPU-bound. On FreeBSD,
nice affects I/O scheduling, as well as CPU, so it's a more effective
means of limiting the impact of large queries. I don't know how other
OS's handle this.
--
Jim C. Nasby, Database Consultant               decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

pgsql-performance by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: which dual-CPU hardware/OS is fastest for PostgreSQL?
Next
From: Simon Riggs
Date:
Subject: Re: Delete query takes exorbitant amount of time