From: Joshua D. Drake <jd@commandprompt.com>
To: Ben Chobot <bench@silentmedia.com>
To: Ayappan P2 <ayappap2@in.ibm.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Renice on Postgresql process
Date: Wed, 23 May 2018 16:45:29 -0700
Message-ID: <a3f3ad27-0bd1-174c-6156-cf5109623bd2@commandprompt.com> (raw)
In-Reply-To: <4BE5BF0B-0404-4307-BD14-19DD92468262@silentmedia.com>
References: <170D4F8E-77FC-4BAA-9A06-F80F1A564A62@silentmedia.com>
<OFBC0A6033.30CBAB6C-ON00258286.00508092-65258286.005134F4@notes.na.collabserv.com>
<OF439AB107.F97B3191-ON00258287.0024E18F-00258287.00259D51@notes.na.collabserv.com>
<4BE5BF0B-0404-4307-BD14-19DD92468262@silentmedia.com>
On 05/23/2018 04:36 PM, Ben Chobot wrote:
>
>
>> On May 7, 2018, at 11:50 PM, Ayappan P2 <ayappap2@in.ibm.com
>> <mailto:ayappap2@in.ibm.com>> wrote:
>>
>> We are doing "renice" on the main Postgresql process to give higher
>> scheduling priority because other critical operations depends on the
>> database.
>> You are saying that the database processes take longer to relinquish
>> their resources and we won't achieve anything out of renice, So i
>> assume renice of the database processes is not at all required ?
>> Thanks
>> Ayappan P
>
> Yes, if you make a db process nicer than the db takes longer to answer
> your queries. If the goal is to keep the load down on the db, that is
> usually going to be counterproductive.
Correct or in other words, the problem is bad provisioning. You need to
optimize your resources whether that be hardware/vm or code.
JD
--
Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc
*** A fault and talent of mine is to tell it exactly how it is. ***
PostgreSQL centered full stack support, consulting and development.
Advocate: @amplifypostgres || Learn: https://postgresconf.org
***** Unless otherwise stated, opinions are my own. *****
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-general@postgresql.org
Cc: jd@commandprompt.com, bench@silentmedia.com, ayappap2@in.ibm.com
Subject: Re: Renice on Postgresql process
In-Reply-To: <a3f3ad27-0bd1-174c-6156-cf5109623bd2@commandprompt.com>
References: <170D4F8E-77FC-4BAA-9A06-F80F1A564A62@silentmedia.com> <OFBC0A6033.30CBAB6C-ON00258286.00508092-65258286.005134F4@notes.na.collabserv.com> <OF439AB107.F97B3191-ON00258287.0024E18F-00258287.00259D51@notes.na.collabserv.com> <4BE5BF0B-0404-4307-BD14-19DD92468262@silentmedia.com> <a3f3ad27-0bd1-174c-6156-cf5109623bd2@commandprompt.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