Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLdRp-00041h-7c for pgsql-general@arkaria.postgresql.org; Wed, 23 May 2018 23:45:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fLdRo-0006Xu-7M for pgsql-general@arkaria.postgresql.org; Wed, 23 May 2018 23:45:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLdRn-0006Xk-Rd for pgsql-general@lists.postgresql.org; Wed, 23 May 2018 23:45:35 +0000 Received: from lists.commandprompt.com ([69.168.55.30]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLdRk-0006cl-1D for pgsql-general@lists.postgresql.org; Wed, 23 May 2018 23:45:34 +0000 Received: from [192.168.50.9] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id F122D885; Wed, 23 May 2018 16:45:29 -0700 (PDT) Received: from c-73-221-208-9.hsd1.wa.comcast.net ([73.221.208.9] helo=[192.168.50.9]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 23 May 2018 16:45:29 -0700 Subject: Re: Renice on Postgresql process To: Ben Chobot , Ayappan P2 Cc: pgsql-general@lists.postgresql.org References: <170D4F8E-77FC-4BAA-9A06-F80F1A564A62@silentmedia.com> <4BE5BF0B-0404-4307-BD14-19DD92468262@silentmedia.com> From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: Date: Wed, 23 May 2018 16:45:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <4BE5BF0B-0404-4307-BD14-19DD92468262@silentmedia.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-19129-11953 X-Assp-Session: 7F8EDC125760 (mail 1) X-Assp-Original-Subject: Re: Renice on Postgresql process X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/23/2018 04:36 PM, Ben Chobot wrote: > > >> On May 7, 2018, at 11:50 PM, Ayappan P2 > > 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. *****