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

Re: Configuration settings (shared_buffers, etc) in Linux: puzzled

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Rick Schumeyer <rschumeyer(at)ieee(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Configuration settings (shared_buffers, etc) in Linux: puzzled
Date: 2008-01-24 18:52:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Thu, 24 Jan 2008, Rick Schumeyer wrote:

> On a linux box (Linux db1 #1 SMP Wed May 23 17:21:37 EDT 2007 
> i686 GNU/Linux)
> I edited postgresql.conf and changed:
> shared_buffers = 5000           work_mem = 16384
> max_stack_depth = 4096
> and then restarted postgres.  The puzzling part is that postgres actually 
> started.  When I have done this on other boxes, I had to edit kernel settings 
> to allow for more shared memory.

You can confirm whether the settings are actually taking like this:

$ psql
Welcome to psql 8.2.4, the PostgreSQL interactive terminal.

postgres=# show shared_buffers;
(1 row)

Since your shared_buffers setting should probably be in the hundreds of 
megabytes range if you want good performance, you may need to update your 
kernel settings anyway, but the above will let you see what the server is 
actually starting with.

* Greg Smith gsmith(at)gregsmith(dot)com Baltimore, MD

In response to

pgsql-performance by date

Next:From: Stephen DenneDate: 2008-01-24 23:46:20
Subject: 8.3rc1 Out of memory when performing update
Previous:From: Greg SmithDate: 2008-01-24 18:49:34
Subject: Re: Postgres 8.2 memory weirdness

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