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 1fspwi-00033R-I4 for pgsql-general@arkaria.postgresql.org; Thu, 23 Aug 2018 13:46:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fspwg-0001iE-Bj for pgsql-general@arkaria.postgresql.org; Thu, 23 Aug 2018 13:46:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fspwf-0001gP-Dp for pgsql-general@lists.postgresql.org; Thu, 23 Aug 2018 13:46:42 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fspwY-0000H3-Jz for pgsql-general@lists.postgresql.org; Thu, 23 Aug 2018 13:46:41 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 3BB11281; Thu, 23 Aug 2018 09:46:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 23 Aug 2018 09:46:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=r22RbwDbDoipvQw9c1tF9fwSEKwGbgoGZfV1F9nnWg8=; b=prTdJF8N H8dA4Keahsc9Jr51JSSQ+/usb3Ams8BDmml7vGxD2TtZ6EV9x28Ql9ZU9ApVZzNv YcoeZt5OkcHEpSn2kAKkMHC3ZCe1D57uTIBPoIbyIWQsgFSUV8Hprc5njbBExqNM gQE3hkMOa+ZM9ecYCHelYoXHuYAWd6PVM9D8zUKSfFC7CIuScsBjbF1NrfyF9D5L ZkM03GiJOjHu5CdqUzqvOnwfMKOFaJOEhmAP2iXVJXEwknerGRMro000WqKl1qDO i8dvG64gWmMoPLm1suMaCB2AjMxaekqi3v4RTC8OfyZI4jL9ukmisyke7OehS6l0 XvkuoksIGoD6qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=r22RbwDbDoipvQw9c1tF9fwSEKwGb goGZfV1F9nnWg8=; b=DEAdJ/Quw/FCZFZIswovTZkNiuDESMKt8qjATMSG6s4Un 1T5MA2B223GqoIWvsRyT77cmeL8U9AGjbF6MoiTGuF0F8A5THcMSPSppLEjsCtAh LFJOhYtrTWHvWXIAdEkzsXu4Mo9CeDof3Mj9L12+5rvPXf7I2+YeA6yQrRbwa3I9 oLtd7hhlLxLPaEa+pj2mFB2DVIwF4OSjj+F36Wr/djRs+GVsyRNLgByY1P+j3IIC 0FL6dIcb5Vry+Rdw2l/o3guEmO1xRaC++UrZM4IcgbSC7WHcYlorTFw9CNZQMimU k5hToEqZ6FIcsERIs94pj1AyOrztxMZO8KnBft7jQ== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 3AB7CE4693; Thu, 23 Aug 2018 09:46:30 -0400 (EDT) Date: Thu, 23 Aug 2018 06:46:28 -0700 From: Andres Freund To: Avi Vallarapu Cc: Raghavendra Rao J S V , Avinash Kumar , pgsql-general@lists.postgresql.org Subject: Re: "checkpointer process" is consuming more memory. How to control it? Message-ID: <20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-08-22 11:14:48 -0300, Avi Vallarapu wrote: > Seams like you are with the default or fairly less checkpoint_* settings. > > You need to look at several patterns to understand the best values for > these settings. > > For now, i can say 300 seconds for checkpoint_timeout could be fairly very > less. Try increasing that with a reload. > > See this => > https://www.percona.com/blog/2018/06/15/tuning-postgresql-for-sysbench-tpcc/ > > Please do note that delaying checkpointing could also increase the time for > crash recovery/shutdown, etc......... This seems to have not that much to do with the problem the OP has, no? I suggest just using pmap -d $process_id_of_checkpointer that'll likely show that it doesn't actually use much memory, but that the RSS originates from the shared memory it has touched. - Andres