From: Tom Lane <tgl@sss.pgh.pa.us>
To: Geoffrey <esoteric@3times25.net>
Cc: John Allgood <john@turbocorp.com>
Cc: pgsql-admin@postgresql.org, Terry Lee Tucker <terry@leetuckert.net>
Cc: J. D. Pearson <jpearson@turbocorp.com>
Subject: Re: Out of file-descriptors message
Date: Thu, 30 Nov 2006 10:30:27 -0500
Message-ID: <13454.1164900627@sss.pgh.pa.us> (raw)
In-Reply-To: <456EF08C.3000302@3times25.net>
References: <456DF2DE.3060002@turbocorp.com>
<4727.1164835974@sss.pgh.pa.us>
<456E03C9.6070204@the-allgoods.net>
<20061129222523.GI7001@alvh.no-ip.org>
<456EE6CE.2030106@3times25.net>
<20061130142758.GI15105@alvh.no-ip.org>
<456EEECC.1000701@3times25.net>
<20061130145143.GJ15105@alvh.no-ip.org>
<456EF08C.3000302@3times25.net>
Geoffrey <esoteric@3times25.net> writes:
> Alvaro Herrera wrote:
>> Yes. Which is kinda weird, because Postgres actually tests the number
>> when it starts, so that if you set the number too high, it will decrease
>> it according to what the kernel allows.
>>
>> Maybe the test is newer than the version you are running -- what was it,
>> again?
>>
> 7.4.13
Hmph ... 7.4.13 does have the same set_max_safe_fds() logic as HEAD.
So this shouldn't be happening really, no matter what the relative
values of max_files_per_process and ulimit -n are.
Explanations I can think of:
* ulimit -n decreased after process startup (is this even possible?)
* something is leaking file descriptors that are outside fd.c's control,
such that eventually there are more than NUM_RESERVED_FDS of 'em.
Theory B seems a lot more plausible. It'd be interesting to look at
"lsof" output for one of the backend processes that is emitting this
message, to see if we can identify what's getting leaked.
regards, tom lane
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, esoteric@3times25.net, john@turbocorp.com, terry@leetuckert.net, jpearson@turbocorp.com
Subject: Re: Out of file-descriptors message
In-Reply-To: <13454.1164900627@sss.pgh.pa.us>
References: <456DF2DE.3060002@turbocorp.com> <4727.1164835974@sss.pgh.pa.us> <456E03C9.6070204@the-allgoods.net> <20061129222523.GI7001@alvh.no-ip.org> <456EE6CE.2030106@3times25.net> <20061130142758.GI15105@alvh.no-ip.org> <456EEECC.1000701@3times25.net> <20061130145143.GJ15105@alvh.no-ip.org> <456EF08C.3000302@3times25.net> <13454.1164900627@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