pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Schmitz <a.schmitz@cityweb.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: dbsize
Date: Mon, 30 Dec 2002 10:42:52 +0100
Message-ID: <200212301042.52134.a.schmitz@cityweb.de> (raw)
In-Reply-To: <25655.1041013585@sss.pgh.pa.us>
References: <200212271537.19622.a.schmitz@cityweb.de>
	<25655.1041013585@sss.pgh.pa.us>

Hi,

> Hm.  I cannot see anything wrong with the source code for database_size.
> I notice though that it depends on vsnprintf, which is known to be buggy
> in some releases of Solaris.  Did you use the patch suggested in the
> last entry of doc/FAQ_Solaris?
>


I can't find any infos about patches in the FAQ

bash-2.03# grep -i patch FAQ_Solaris


> > This started to happen when I increased memory sizes in the
> > postgresql.conf.
>
> From what, to what?
>
> 			regards, tom lane

ok. first of all. here are the entries from /etc/system

set shmsys:shminfo_shmmax=1073741824
set semsys:seminfo_semmap=64
set semsys:seminfo_semmni=4096
set semsys:seminfo_semmns=4096
set semsys:seminfo_semmnu=4096
set semsys:seminfo_semume=64
set semsys:seminfo_semmsl=100
set shmsys:shminfo_shmmin=100
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=100

and the entries from postgresql.conf. values where changed from default.

shared_buffers = 1024           # 2*max_connections, min 16, typically 8KB 
each
max_fsm_relations = 100 # min 10, fsm is free space map, ~40 bytes
max_fsm_pages = 10000           # min 1000, fsm is free space map, ~6 bytes
max_locks_per_transaction = 128 # min 10
wal_buffers = 64                # min 4, typically 8KB each

sort_mem = 65536                # min 64, size in KB
vacuum_mem = 65536              # min 1024, size in KB

checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
checkpoint_timeout = 300        # range 30-3600, in seconds
#
commit_delay = 0                # range 0-100000, in microseconds
commit_siblings = 5             # range 1-1000
#
fsync = true
wal_sync_method = fsync # the default varies across platforms:
#                               # fsync, fdatasync, open_sync, or 
open_datasync
wal_debug = 0                   # range 0-16


regards

-andreas


-- 
Andreas Schmitz - Phone +49 201 8501 318
Cityweb-Technik-Service-Gesellschaft mbH
Friedrichstr. 12 - Fax +49 201 8501 104
45128 Essen - email a.schmitz@cityweb.de




view thread (4+ messages)

Message-ID: <200212301042.52134.a.schmitz@cityweb.de>
Permalink:  ../200212301042.52134.a.schmitz@cityweb.de/
Also on:    postgresql.org/message-id/200212301042.52134.a.schmitz@cityweb.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: a.schmitz@cityweb.de, tgl@sss.pgh.pa.us
  Subject: Re: dbsize
  In-Reply-To: <200212301042.52134.a.schmitz@cityweb.de>
  References: <200212271537.19622.a.schmitz@cityweb.de> <25655.1041013585@sss.pgh.pa.us> <200212301042.52134.a.schmitz@cityweb.de>

* 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