Re: Out of Memory errors are frustrating as heck!

From: Peter <pmc(at)citylink(dot)dinoex(dot)sub(dot)org>
To: raj(at)gusw(dot)net
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Out of Memory errors are frustrating as heck!
Date: 2019-04-15 01:29:55
Message-ID: 20190415012955.GA62410@gate.oper.dinoex.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sun, Apr 14, 2019 at 05:19:11PM -0400, Tom Lane wrote:
! Gunther <raj(at)gusw(dot)net> writes:
! > For weeks now, I am banging my head at an "out of memory" situation.
! > There is only one query I am running on an 8 GB system, whatever I try,
! > I get knocked out on this out of memory. It is extremely impenetrable to
! > understand and fix this error. I guess I could add a swap file, and then
! > I would have to take the penalty of swapping. But how can I actually
! > address an out of memory condition if the system doesn't tell me where
! > it is happening?

Well, esactly with a swap space. No offense intended, but if You
don't have a swap space, You should not complain about unintellegibe
Out-of-memory situations.
Swapspace is not usually used to run applications from (that would
indeed give horrible performance), it is used to not get out-of-memory
errors. With a swapspace, the out-of-memory situation will persist,
and so one has time to take measurements and analyze system
behaviour and from that, one can better understand what is causing
the problem, and decide what actions should be taken, on an informed
base (e.g. correct flaws in the system tuning, fix bad query, buy
more memory, or what may be applicable)

If I remember correctly, I did even see a DTRACE flag in my build,
so what more is to wish? :))

P.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Justin Pryzby 2019-04-15 01:48:11 Re: Out of Memory errors are frustrating as heck!
Previous Message Gunther 2019-04-15 01:05:48 Re: Out of Memory errors are frustrating as heck!