pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Andersen <zedar@free2air.com.au>
Cc: C. Bensend <benny@bennyvision.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Load problems...
Date: Wed, 19 Dec 2001 00:48:23 -0500
Message-ID: <27036.1008740903@sss.pgh.pa.us> (raw)
In-Reply-To: <E16GYpW-00020e-00@corky.internettv.net.au>
References: <Pine.BSO.4.33L2.0112182237520.24317-100000@fusion.bennyvision.com>
	<E16GYpW-00020e-00@corky.internettv.net.au>

Daniel Andersen <zedar@free2air.com.au> writes:
> [4059] DEBUG: connection startup failed (fork failure): Resource 
> temporarily unavailable
> [4059] DEBUG: could not launch checkpoint process (fork failure): Resource 
> temporarily unavailable

Hmm ... a fork failure suggests resource exhaustion somewhere in the
kernel.  Do you have enough swap space?  A large enough NFILE (kernel
filetable size) setting?

> there are generally up to 200 copies of postmaster running at any given time,

200 * a few dozen open files per backend is a lot of open files.  I'm
betting on NFILE being the issue, myself.

Linuxen tend to lie through their teeth about the number of open files
they can support per-process (sysconf(_SC_OPEN_MAX)).  In 7.2 you can
compensate for that by setting PG's config variable
max_files_per_process to something sane, maybe 50 to 100.

You'll still need to make sure that the kernel is configured to support
max_files_per_process * max_connections open files, but at least that's
a definable number now.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <27036.1008740903@sss.pgh.pa.us>
Permalink:  ../27036.1008740903@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27036.1008740903@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, zedar@free2air.com.au, benny@bennyvision.com
  Subject: Re: Load problems...
  In-Reply-To: <27036.1008740903@sss.pgh.pa.us>
  References: <Pine.BSO.4.33L2.0112182237520.24317-100000@fusion.bennyvision.com> <E16GYpW-00020e-00@corky.internettv.net.au> <27036.1008740903@sss.pgh.pa.us>

* 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