pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Rob Sargent <robjsargent@gmail.com>
Cc: Christoph Moench-Tegeder <cmt@burggraben.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Out of Memory
Date: Fri, 28 Sep 2018 07:23:59 +0200
Message-ID: <a76a969d353eacf584d2018b3a2272a1143053e9.camel@cybertec.at> (raw)
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>

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





view thread (58+ messages)  latest in thread

Message-ID: <a76a969d353eacf584d2018b3a2272a1143053e9.camel@cybertec.at>
Permalink:  ../a76a969d353eacf584d2018b3a2272a1143053e9.camel@cybertec.at/
Also on:    postgresql.org/message-id/a76a969d353eacf584d2018b3a2272a1143053e9.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, robjsargent@gmail.com, cmt@burggraben.net
  Subject: Re: Out of Memory
  In-Reply-To: <a76a969d353eacf584d2018b3a2272a1143053e9.camel@cybertec.at>
  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> <a76a969d353eacf584d2018b3a2272a1143053e9.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox