pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregor Mosheh <stigmata@blackangel.net>
To: pgsql-admin@postgresql.org
Subject: memory strangeness (fwd)
Date: Thu, 4 Jul 2002 18:11:52 -0700 (PDT)
Message-ID: <20020704181141.V44600-100000@osiris.deathkeep.com> (raw)


Hiya. I've installed Postgres 7.2 on a dedicated FreeBSD system with 384
MB RAM. Because the system will be doing nothing except PG, I'd like to
dump as much memory as possible into PG's shared memory.

I rebuilt the kernel with very large limits: 330 MB on the MAXDSIZ and
DFLDSIZ, and 330 MB for SHMMAXPAGES. This gives me:

# sysctl kern.ipc.shmall
kern.ipc.shmall: 42240
# sysctl kern.ipc.shmmax
kern.ipc.shmmax: 346030080

I still cannot set PG's shared_buffers higher than 20000 (160 MB):

IpcMemoryCreate: shmget(key=8971001, size=183017472, 03600) failed: Cannot
allocate memory
This error usually means that PostgreSQL's request for a shared
memory segment exceeded available memory or swap space.
To reduce the request size (currently 183017472 bytes), reduce
PostgreSQL's shared_buffers parameter (currently 22000) and/or
its max_connections parameter (currently 5).


That I'm out of RAM seems fishy, though, since there's very little running
and vmstat reports plenty of free RAM:

 procs      memory      page                    disks     faults      cpu
 r b w     avm    fre  flt  re  pi  po  fr  sr ad0 ad3   in   sy  cs us sy
id
 0 0 0    8484 353908    1   0   0   0   2   0   2   0  231    5   5  0  0
100



Any ideas as to what I missed?








view thread (13+ messages)  latest in thread

Message-ID: <20020704181141.V44600-100000@osiris.deathkeep.com>
Permalink:  ../20020704181141.V44600-100000@osiris.deathkeep.com/
Also on:    postgresql.org/message-id/20020704181141.V44600-100000@osiris.deathkeep.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 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: stigmata@blackangel.net
  Subject: Re: memory strangeness (fwd)
  In-Reply-To: <20020704181141.V44600-100000@osiris.deathkeep.com>
  References: <20020704181141.V44600-100000@osiris.deathkeep.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