pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: William Yu <wyu@talisys.com>
To: pgsql-performance@postgresql.org
Subject: Re: Increasing RAM for more than 4 Gb. using postgresql
Date: Thu, 13 Jan 2005 08:32:49 -0800
Message-ID: <cs67u3$kp7$1@news.hub.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0501122343160.6728@linuxworld.com.au>
References: <1105501768.41e49e484d779@webmail.moph.go.th>
	<Pine.LNX.4.58.0501122343160.6728@linuxworld.com.au>

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.



view thread (23+ messages)  latest in thread

Message-ID: <cs67u3$kp7$1@news.hub.org>
Permalink:  ../cs67u3$kp7$1@news.hub.org/
Also on:    postgresql.org/message-id/cs67u3$kp7$1@news.hub.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: wyu@talisys.com
  Subject: Re: Increasing RAM for more than 4 Gb. using postgresql
  In-Reply-To: <cs67u3$kp7$1@news.hub.org>

* 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