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


> 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.

I set shammax =
[root@data3 /]# cat < /proc/sys/kernel/shmmax
4000000000
shmall =
[root@data3 /]# cat < /proc/sys/kernel/shmall
134217728
Is that ok for 4 Gb. mechine?

> 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.
>
How could I chang this hitting?
Thanks
Amrit
Thailand



view thread (23+ messages)  latest in thread

Message-ID: <1105837366.41e9bd36c7de9@webmail.moph.go.th>
Permalink:  ../1105837366.41e9bd36c7de9@webmail.moph.go.th/
Also on:    postgresql.org/message-id/1105837366.41e9bd36c7de9@webmail.moph.go.th

 · 

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: amrit@health2.moph.go.th, wyu@talisys.com
  Subject: Re: Increasing RAM for more than 4 Gb. using postgresql
  In-Reply-To: <1105837366.41e9bd36c7de9@webmail.moph.go.th>

* 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