Re: Increasing RAM for more than 4 Gb. using postgresql

From: William Yu <wyu(at)talisys(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Increasing RAM for more than 4 Gb. using postgresql
Date: 2005-01-13 16:32:49
Message-ID: cs67u3$kp7$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Gavin Sherry wrote:
> There is no problem with free Linux distros handling > 4 GB of memory. The
> problem is that 32 hardware must make use of some less than efficient
> mechanisms to be able to address the memory.

The theshold for using PAE is actually far lower than 4GB. 4GB is the
total memory address space -- split that in half for 2GB for userspace,
2GB for kernel. The OS cache resides in kernel space -- after you take
alway the memory allocation for devices, you're left with a window of
roughly 900MB.

Since the optimal state is to allocate a small amount of memory to
Postgres and leave a huge chunk to the OS cache, this means you are
already hitting the PAE penalty at 1.5GB of memory.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alex Turner 2005-01-13 18:43:30 Re: PostgreSQL vs. Oracle vs. Microsoft
Previous Message Tom Lane 2005-01-13 15:24:11 Re: Postgres Optimizer is not smart enough?