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 1hkn9h-0006GN-EF for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 10:15:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkn9f-0002F3-3J for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 10:15:23 +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 1hkn9e-0002Ej-1B for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 10:15:22 +0000 Received: from stw1.rcdrun.com ([217.170.207.13]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkn9b-0003Xw-GP for pgsql-general@postgresql.org; Tue, 09 Jul 2019 10:15:20 +0000 Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA; Tue, 09 Jul 2019 03:15:15 -0700 id 0000000000020351.000000005D246934.00006361 Received: from localhost (protected.rcdrun.com [local]) by protected.rcdrun.com (OpenSMTPD) with ESMTPA id f1292f28; Tue, 9 Jul 2019 10:15:15 +0000 (UTC) Date: Tue, 9 Jul 2019 12:15:15 +0200 From: Jean Louis To: Konstantin Malanchev Cc: pgsql-general@postgresql.org Subject: Re: PGSQL 11.4: shared_buffers and /dev/shm size Message-ID: <20190709101514.GB10233@protected.rcdrun.com> References: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com> <20190709095344.GK7323@protected.rcdrun.com> <63682227-874F-43A9-8879-DE875DE9BCC3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <63682227-874F-43A9-8879-DE875DE9BCC3@gmail.com> Organization: START YOUR OWN GOLD MINE User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk * Konstantin Malanchev [2019-07-09 12:10]: > Hello Jean, > > I have 8 GB RAM and /dev/shm size is 4GB, and there is no significant memory usage by other system processes. I surprised that Postgres uses more space in /dev/shm than sharred_buffers parameter allows, probably I don't understand what this parameter means. > > I have no opportunity to enlarge total RAM and probably this query requires too much RAM to execute. Should Postgres just use HDD as temporary storage in this case? That I cannot know. I know that /dev/shm could grow as much as available free RAM. Jean