From: Aaron Bono <postgresql@aranya.com>
To: Chris Mair <list@1006.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Controlling CPU Usage in PostgreSQL
Date: Wed, 2 Aug 2006 12:43:01 -0500
Message-ID: <bf05e51c0608021043n4bf13f4ch3214ad224937eb31@mail.gmail.com> (raw)
In-Reply-To: <1154469364.3800.2.camel@dell.home.lan>
References: <bf05e51c0607310106w415fe34ep4b5046984cd11341@mail.gmail.com>
<200607311101.36629.mlists@rp-online.de>
<bf05e51c0608011159h74ac3a44wdb98b8ab32803275@mail.gmail.com>
<1154460151.7882.7.camel@state.g2switchworks.com>
<1154469364.3800.2.camel@dell.home.lan>
On 8/1/06, Chris Mair <list@1006.org> wrote:
>
> On Tue, 2006-08-01 at 14:22 -0500, Scott Marlowe wrote:
> > On Tue, 2006-08-01 at 13:59, Aaron Bono wrote:
> > > Is there a way to tell PostgreSQL to change the nice value of a
> > > particular connection? I guess I could use renice but that means a
> > > lot of shell scripting to determine what PID to change - I am not a
> > > shell script expert and would rather not pursue that option.
> >
> > This is one of those things that only seems like a good idea at the
> > time.
> >
> > While nice-ing the whole of a postgresql server is doable, nice-ing
> > individual connections is no advisable.
> >
> > You can reach a bad state caused by "priority inversion". Search the
> > lists (not just admin) for that phrase and you should find out what I
> > mean. This should probably be a FAQ, as it shows up every few months.
>
> I started going down that same road in May... here's the thread from
> then explaining why it's a bad idea after all:
> http://archives.postgresql.org/pgsql-performance/2006-05/msg00462.php
I didn't really have my heart set on doing this, just was wondering if I
could and how.
This has been a good eye opener though. It will definitely have an impact
on my future design of both the database and multi-threaded applications.
Thanks guys!
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
==================================================================
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: postgresql@aranya.com, list@1006.org
Subject: Re: Controlling CPU Usage in PostgreSQL
In-Reply-To: <bf05e51c0608021043n4bf13f4ch3214ad224937eb31@mail.gmail.com>
References: <bf05e51c0607310106w415fe34ep4b5046984cd11341@mail.gmail.com> <200607311101.36629.mlists@rp-online.de> <bf05e51c0608011159h74ac3a44wdb98b8ab32803275@mail.gmail.com> <1154460151.7882.7.camel@state.g2switchworks.com> <1154469364.3800.2.camel@dell.home.lan> <bf05e51c0608021043n4bf13f4ch3214ad224937eb31@mail.gmail.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