Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBJ5mam41949 for ; Wed, 19 Dec 2001 00:48:36 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id fBJ5mOi27039; Wed, 19 Dec 2001 00:48:24 -0500 (EST) To: Daniel Andersen cc: "C. Bensend" , pgsql-admin@postgresql.org Subject: Re: Load problems... In-reply-to: References: Comments: In-reply-to Daniel Andersen message dated "Wed, 19 Dec 2001 15:10:08 +1000" Date: Wed, 19 Dec 2001 00:48:23 -0500 Message-ID: <27036.1008740903@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200112/124 X-Sequence-Number: 2847 Daniel Andersen 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