pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <decibel@decibel.org>
To: matt@followers.net
Cc: pgsql-performance@postgresql.org
Subject: Re: Preventing query from hogging server
Date: Mon, 28 Mar 2005 15:05:59 -0600
Message-ID: <20050328210559.GC51784@decibel.org> (raw)
In-Reply-To: <42431001.36c6643c.1b4b.ffffd505@mx.gmail.com>
References: <42431001.36c6643c.1b4b.ffffd505@mx.gmail.com>

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?"



view thread (9+ messages)

Message-ID: <20050328210559.GC51784@decibel.org>
Permalink:  ../20050328210559.GC51784@decibel.org/
Also on:    postgresql.org/message-id/20050328210559.GC51784@decibel.org

 · 

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: decibel@decibel.org, matt@followers.net
  Subject: Re: Preventing query from hogging server
  In-Reply-To: <20050328210559.GC51784@decibel.org>

* 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