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 1goScI-0001hm-G7 for pgsql-performance@arkaria.postgresql.org; Tue, 29 Jan 2019 12:35:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goScH-0005bI-2W for pgsql-performance@arkaria.postgresql.org; Tue, 29 Jan 2019 12:35:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goScG-0005at-Nc for pgsql-performance@lists.postgresql.org; Tue, 29 Jan 2019 12:35:48 +0000 Received: from intern.proventis.net ([217.111.101.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goScD-0001tl-KJ for pgsql-performance@lists.postgresql.org; Tue, 29 Jan 2019 12:35:47 +0000 Received: from mail.proventis.net (unknown [192.168.22.239]) by intern.proventis.net (Postfix) with ESMTP id 6FA3820AA1 for ; Tue, 29 Jan 2019 13:35:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.proventis.net (Postfix) with ESMTP id 688F7679993 for ; Tue, 29 Jan 2019 13:35:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.proventis.net Received: from mail.proventis.net ([127.0.0.1]) by localhost (mail.proventis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4XUSHswMwkw for ; Tue, 29 Jan 2019 13:35:42 +0100 (CET) Received: from [192.168.22.130] (tmarkus.proventis.net [192.168.22.130]) by mail.proventis.net (Postfix) with ESMTP id 398A76BA888 for ; Tue, 29 Jan 2019 13:35:42 +0100 (CET) Subject: Re: Interpreting shared_buffers setting To: pgsql-performance@lists.postgresql.org References: From: Thomas Markus Organization: proventis GmbH Message-ID: <746a1925-c653-d805-dd83-560198f91523@proventis.net> Date: Tue, 29 Jan 2019 13:35:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, check for blocksize (8k) as factor. 8k*131072=1G regards Thomas Am 29.01.19 um 13:32 schrieb Bob Jolliffe: > Excuse me if this is a silly question. I am trying to fiddle with > shared_buffers setting on postgresql 10.6 on ubuntu 18.04 server. > > I have this at bottom of my config file: > shared_buffers = 1GB > > Yet when I check the setting from pg_setting I see something quite different: > > postgres=# SELECT name, setting FROM pg_settings where name = 'shared_buffers'; > name | setting > ----------------+--------- > shared_buffers | 131072 > > Is this a question of units? It looks like 128M. Note when I change > the setting to 2GB in conf file I see 262144 from pg_setting. I am > now unsure what the actual shared_buffers allocation is. I cant see > anything in the docs which tells me how to interpret the integer. > > Any clarification welcome. > > Regards > Bob >