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 1g4uVs-0007c2-UM for pgsql-general@arkaria.postgresql.org; Tue, 25 Sep 2018 21:04:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4uVq-0008FQ-ED for pgsql-general@arkaria.postgresql.org; Tue, 25 Sep 2018 21:04:54 +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 1g4uVq-0008FJ-2i for pgsql-general@lists.postgresql.org; Tue, 25 Sep 2018 21:04:54 +0000 Received: from virtual1.potentialtech.com ([69.25.178.43] helo=mail.potentialtech.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4uVn-0004tG-M5 for pgsql-general@postgresql.org; Tue, 25 Sep 2018 21:04:52 +0000 Received: from beezelbub (c-67-171-70-156.hsd1.pa.comcast.net [67.171.70.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 77BD724BEBB; Tue, 25 Sep 2018 17:04:50 -0400 (EDT) Date: Tue, 25 Sep 2018 17:04:49 -0400 From: PT To: greigwise Cc: pgsql-general@postgresql.org Subject: Re: Out of Memory Message-Id: <20180925170449.0afefaf0a352439cd10d3588@potentialtech.com> In-Reply-To: <1537900459605-0.post@n3.nabble.com> References: <1537481492525-0.post@n3.nabble.com> <16504.1537483871@sss.pgh.pa.us> <1537536021272-0.post@n3.nabble.com> <1537900459605-0.post@n3.nabble.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 25 Sep 2018 11:34:19 -0700 (MST) greigwise wrote: > Well, I've been unsuccessful so far on creating a standalone test. > > I have put some scripting in place to capture some additional information on > the server with the out of memory issues. I have a script which just > periodically dumps the output of free -m to a text file. > > So, the output of free -m immediately before and after the out of memory > error looks like this: > > Just before: > total used free shared buff/cache > available > Mem: 14877 2978 132 3553 11766 > 7943 > Swap: 0 0 0 > > Just after: > total used free shared buff/cache > available > Mem: 14877 2946 649 3548 11280 > 7982 > Swap: 0 0 0 > > If I have nearly 8 GB of memory left, why am I getting out of memory errors? Doesn't the default NUMA setup mean that it can't actually allocate all the available memory to a single NUMA zone (or whatever it's called)? Or am I talking ancient Linux history with that? -- Bill Moran