Skip site navigation (1) Skip section navigation (2)

Re: postgresql not using enough memory?

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: postgresql not using enough memory?
Date: 2004-05-19 22:21:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Oops! admin(at)usachurch(dot)com was seen spray-painting on a wall:
> Hello list,
> I know this is a complicated issue, but I'll throw it out there...
> Our DB box has 3GB of ram - which is supposed to be used by
> postgres.  Whenever I use top, it only shows about 800MB being
> used with 2.2GB free.  What can I do to tell postgres to use more
> of that memory - maybe 2GB ?

The one change that might be appropriate would be to bump up sort
memory.  Not too much; 40MB is a terrifically large amount unless
you're doing REALLY enormous sorts.

Aside from that, it is quite likely that everything is AOK.
PostgreSQL benefits from having data in the filesystem cache, and if
you up the shared buffer cache, you risk having the commonly-used data
stored twice, once in the buffer cache, and once in the filesystem
cache, which is wasteful.
output = ("cbbrowne" "@" "")
Let me control a planet's oxygen supply and I don't care who makes the

In response to

pgsql-admin by date

Next:From: Christopher BrowneDate: 2004-05-19 22:32:52
Subject: Re: Missing or errooneous pg_hba.conf file
Previous:From: Tom LaneDate: 2004-05-19 21:16:26
Subject: Re: Missing or errooneous pg_hba.conf file

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group