Re: Renice on Postgresql process

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Renice on Postgresql process
Date: 2018-05-24 09:58:14
Message-ID: 20180524095814.pj7zpqiqmncpfr6r@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2018-05-07 11:04:31 -0700, Ben Chobot wrote:
> On May 7, 2018, at 7:46 AM, Ayappan P2 <ayappap2(at)in(dot)ibm(dot)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(at)hjp(dot)at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2018-05-24 12:17:52 Re: Parameter placeholders, $n vs ?
Previous Message Maxim Boguk 2018-05-24 09:38:03 Re: found xmin from before relfrozenxid on pg_catalog.pg_authid