Re: Thousands of schemas and ANALYZE goes out of memory

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Thousands of schemas and ANALYZE goes out of memory
Date: 2012-10-03 00:14:21
Message-ID: CAPTjJmoi2wR9YfTp+9igv8c=6RvGugLpub9wHh7gWq6n7SWPhw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 3, 2012 at 10:09 AM, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:
> On Tue, Oct 2, 2012 at 10:38 AM, Hugo <Nabble> <hugo(dot)tech(at)gmail(dot)com> wrote:
>>> That might be the problem. I think with 32 bits, you only 2GB of
>>> address space available to any given process, and you just allowed
>>> shared_buffers to grab all of it.
>>
>> The address space for 32 bits is 4Gb.
>
> I had thought the highest bit was not usable, but maybe that was just
> a Windows thing.

Losing the highest bit is common when something treats a number as
signed, but the <4GB memory issue isn't that. It's because other areas
of memory need to be addressable (devices claim certain areas), and
all that has to be factored into the total 4GB addressable space.
Usually you get >3GB, somewhere around the 3.5GB mark.

ChrisA

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ankur Soni 2012-10-03 03:54:50 Indexing JSON type
Previous Message Jeff Janes 2012-10-03 00:09:14 Re: Thousands of schemas and ANALYZE goes out of memory