Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3nk4-0000j0-0H for pgsql-performance@arkaria.postgresql.org; Tue, 12 Mar 2019 20:11:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h3nk2-0004B0-Qj for pgsql-performance@arkaria.postgresql.org; Tue, 12 Mar 2019 20:11:14 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3nk2-0004Al-Eq for pgsql-performance@lists.postgresql.org; Tue, 12 Mar 2019 20:11:14 +0000 Received: from mail-it1-x141.google.com ([2607:f8b0:4864:20::141]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3njv-0000Nm-IW for pgsql-performance@lists.postgresql.org; Tue, 12 Mar 2019 20:11:14 +0000 Received: by mail-it1-x141.google.com with SMTP id k193so6652209ita.3 for ; Tue, 12 Mar 2019 13:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xiVzV9ROuKAuLa0iwKNPsZrsw7n5c0l2CR65X1mMK90=; b=GHogNjTpFSmVfjcS6pvdwp4Fa4svhfVPPYvFLteaXU/Ra62J5VgFhYvJ8rmoqH6StK S3jzMgZgp8m0D6GAEoyds3F6q4738UUj4A7XCQOQKotOqC5GYZFbhd/seLYmkFLJJ9yy XF99xF9xyyCD4fuT4vScmsCNa4EsF3dYogTqEemUpkt4WR7HySZShnM8+JWyA1wy3I3t rbxQ+hnzakJItK4Kt5/pYfXA2QiTn269Szb1Mp1hwtgHyDYkKNBP/4cYYbOhj4SKpknL gJJ5/YhW575Qr74SWVVB36XfVpCm3LzFzd3ybe33tcn6CgVa5uk24mJSztymvBIRd0eP xHWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xiVzV9ROuKAuLa0iwKNPsZrsw7n5c0l2CR65X1mMK90=; b=n/gXkDx+ANQhGgBmyhWjUTWkFAequ0kXnTqvCCAvP4AFF30XRtEXfd0+gSpdV68JEV nkyndnMSqSlX+Hb4RQN9pf3EYdkUj0LjS63pO7/aUhWz8/AnprUzY0ydEvmktpIrvuYR 1sWAMhJheYf+Mkr6ZT5zgYzbo7ja2a47R6Y7NX7v375djKzFTH8bFHDIWQLNfABmU9Ls 73NiV4zVPkRPz45bjJiVMGs044U/I/PlGkog7bvpWai5N4vHDfb1/u+pJi5qJSRdxAsl BAZuZwF6A4eZrDel4sRnv4sYs5WAMFLKgHgQgX/SmdzSnTs1l++80mT4agMXO5JvwFxw eKwQ== X-Gm-Message-State: APjAAAXxerok4HlCh1rpA28uFwCmMq5WvzG1JDfiQ2xQP43pBu7veBAI gGPpffO9Y91fw0scojzA6nNX1w== X-Google-Smtp-Source: APXvYqw+zGtMH9hIIkx1Z6xDgIkS+SLEWiY0PAS78usjMdfc6yMrOi2dJOP3JjyV4CeMXIefX/nFYw== X-Received: by 2002:a24:6ec1:: with SMTP id w184mr3235895itc.113.1552421464712; Tue, 12 Mar 2019 13:11:04 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id m79sm799035itm.25.2019.03.12.13.11.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 13:11:03 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 9E78E800A28; Tue, 12 Mar 2019 15:11:02 -0500 (CDT) Date: Tue, 12 Mar 2019 15:11:02 -0500 From: Justin Pryzby To: MichaelDBA Cc: Michael Lewis , Laurenz Albe , Daulat Ram , "pgsql-performance@lists.postgresql.org" Subject: Re: Shared_buffers Message-ID: <20190312201102.GI23597@telsasoft.com> References: <56099ac31c7cc1a4e8a51963e2674e7fe592b86f.camel@cybertec.at> <5C88107F.7040902@sqlexec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5C88107F.7040902@sqlexec.com> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Mar 12, 2019 at 04:03:11PM -0400, MichaelDBA wrote: > Set shared_buffers more accurately by using pg_buffercache extension and the > related queries during high load times. I've tuned ~40 postgres instances, primarily using log_checkpoints and pg_stat_bgwriter, with custom RRD graphs. pg_buffercache does provide some valuable insights, and I know it's commonly suggested to check histogram of usagecounts, but I've never had any idea how to apply that to tune shared_buffers. Could you elaborate on what procedure you suggest ? Justin