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 1g5lG7-0001Ld-H6 for pgsql-general@arkaria.postgresql.org; Fri, 28 Sep 2018 05:24:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5lG5-0005zm-RP for pgsql-general@arkaria.postgresql.org; Fri, 28 Sep 2018 05:24:09 +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 1g5lG5-0005zf-GE for pgsql-general@lists.postgresql.org; Fri, 28 Sep 2018 05:24:09 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g5lG2-0004GP-6s for pgsql-general@lists.postgresql.org; Fri, 28 Sep 2018 05:24:08 +0000 Received: from smtp2.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 354F349278; Fri, 28 Sep 2018 07:24:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id CuIW8ECTnHkW; Fri, 28 Sep 2018 07:24:00 +0200 (CEST) Message-ID: Subject: Re: Out of Memory From: Laurenz Albe To: Rob Sargent Cc: Christoph Moench-Tegeder , pgsql-general@lists.postgresql.org Date: Fri, 28 Sep 2018 07:23:59 +0200 In-Reply-To: <704B7535-D731-47EA-9E1E-2055B42CAD7B@gmail.com> References: <1537536021272-0.post@n3.nabble.com> <1537900459605-0.post@n3.nabble.com> <18741.1537906384@sss.pgh.pa.us> <1537909379739-0.post@n3.nabble.com> <1537971881585-0.post@n3.nabble.com> <3321.1537972628@sss.pgh.pa.us> <1537973357976-0.post@n3.nabble.com> <1537979068444-0.post@n3.nabble.com> <1537979569920-0.post@n3.nabble.com> <824208787ca76bb05c1076b72629e394c6ed660b.camel@cybertec.at> <20180927063039.n5ea4xuefxtrbusa@squirrel.exwg.net> <3973cda30071755051a8b63a1aa64727a5a79998.camel@cybertec.at> <704B7535-D731-47EA-9E1E-2055B42CAD7B@gmail.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rob Sargent wrote: > > Christoph Moench-Tegeder wrote: > > > ## Laurenz Albe (laurenz.albe@cybertec.at): > > > > > > > vm.overcommit_memory = 2 > > > > vm_overcommit_ratio = 100 > > > > > > > > Linux commits (swap * overcommit_ratio * RAM / 100), > > > > > > ^ > > > That should be a "+". > > > > Yes; shame on me for careless typing, and thank you for the > > correction. > > Are there any parentheses needed in that formula? No. It is swap space plus a certain percentage of RAM. I don't know how the Linux developers came up with that weird formula. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com