pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sven Willenberger <sven@dmv.com>
To: Claus Guttesen <kometen@gmail.com>
Cc: Jon Brisbin <jon.brisbin@npcinternational.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance on SUSE w/ reiserfs
Date: Tue, 11 Oct 2005 09:52:30 -0400
Message-ID: <1129038750.1975.13.camel@lanshark.dmv.com> (raw)
In-Reply-To: <b41c75520510110041j4b3d4017y@mail.gmail.com>
References: <434ADD46.5060206@npcinternational.com>
	<b41c75520510101445jd8a9f06k@mail.gmail.com>
	<434AE7A1.3050700@npcinternational.com>
	<b41c75520510110041j4b3d4017y@mail.gmail.com>

On Tue, 2005-10-11 at 09:41 +0200, Claus Guttesen wrote:
> I have a postgresql 7.4.8-server with 4 GB ram.

<snip>
> 
> > #effective_cache_size = 1000    # typically 8KB each
> 
> This is computed by sysctl -n vfs.hibufspace / 8192 (on FreeBSD). So I
> changed it to:
> 
> effective_cache_size = 27462    # typically 8KB each

Apparently this formula is no longer relevant on the FreeBSD systems as
it can cache up to almost all the available RAM. With 4GB of RAM, one
could specify most of the RAM as being available for caching, assuming
that nothing but PostgreSQL runs on the server -- certainly 1/2 the RAM
would be a reasonable value to tell the planner.

(This was verified by using dd: 
dd if=/dev/zero of=/usr/local/pgsql/iotest bs=128k count=16384 to create
a 2G file then
dd if=/usr/local/pgsql/iotest of=/dev/null

If you run systat -vmstat 2 you will see 0% diskaccess during the read
of the 2G file indicating that it has, in fact, been cached)


Sven




view thread (15+ messages)  latest in thread

Message-ID: <1129038750.1975.13.camel@lanshark.dmv.com>
Permalink:  ../1129038750.1975.13.camel@lanshark.dmv.com/
Also on:    postgresql.org/message-id/1129038750.1975.13.camel@lanshark.dmv.com

 · 

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: sven@dmv.com, kometen@gmail.com, jon.brisbin@npcinternational.com
  Subject: Re: Performance on SUSE w/ reiserfs
  In-Reply-To: <1129038750.1975.13.camel@lanshark.dmv.com>

* 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