Re: ERROR: out of memory DETAIL: Failed on request of size ???

From: "Tomas Vondra" <tv(at)fuzzy(dot)cz>
To: "Edson Richter" <edsonrichter(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: out of memory DETAIL: Failed on request of size ???
Date: 2013-11-23 09:09:18
Message-ID: 1e2e6b63947528f693dc54d38a2d0ca9.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On 22 Listopad 2013, 20:09, Edson Richter wrote:
>
> Excuse me (or just ignore me) if it is a stupid question, but have you
> configured sysctl.conf accordingly?
> For instance, to use larget memory settings, I had to configure my EL as
> follows:
>
> # Controls the maximum shared segment size, in bytes
> kernel.shmmax = 68719476736
>
> # Controls the maximum number of shared memory segments, in pages
> kernel.shmall = 4294967296

This only influences shared memory, which is used for shared buffers (not
for memory allocated during query execution, as that's translated to plain
malloc). With sysctl.conf misconfigured, the database would not start at
all and you'd get a reasonable error message in the log, suggesting pretty
clearly where/how to fix it.

Tomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vik Fearing 2013-11-23 10:20:34 Re: Getting non_NULL right-side values on a non-matching join?
Previous Message Michael Paquier 2013-11-23 09:00:08 Re: "shared_buffers" and "temp_buffers" why manual and code are different?