Re: Renice on Postgresql process - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: Renice on Postgresql process
Date
Msg-id 20180524095814.pj7zpqiqmncpfr6r@hjp.at
Whole thread Raw
In response to Re: Renice on Postgresql process  (Ben Chobot <bench@silentmedia.com>)
List pgsql-general
On 2018-05-07 11:04:31 -0700, Ben Chobot wrote:
> On May 7, 2018, at 7:46 AM, Ayappan P2 <ayappap2@in.ibm.com> wrote:
>     We are using Postgresql in AIX. Unlike some other databases, Postgresql has
>     lot of other process running in the background along with the main process.
>
>     We do "renice" only on the Postgres main process. Is it sufficient to have
>     higher priority only for the main process or we have to do "renice" for all
>     the Postgresql related process ( like wal writer, logger , checkpointer
>     etc.,) ?
>
>
> What do you hope to achieve with your renicing? There is a compelling school of
> thought which holds that nice database processes take longer to relinquish
> their resources, which doesn't end up helping anything at all.

I think you misunderstood Ayappan. He doesn't want to make the database
processes nicer, he wants to make them less nice ("higher priority").

So in theory, they should be able to complete requests faster because
they aren't interrupted by other processes so often.

Whether that is true, depends on whether the processes are cpu or disk
bound and what exactly the "nice value" affects. The best way to find
out is probably to try it.

        hp

--
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>

Attachment

pgsql-general by date:

Previous
From: Maxim Boguk
Date:
Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid
Next
From: "David G. Johnston"
Date:
Subject: Re: Parameter placeholders, $n vs ?