Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1BC1E9F9DAD for ; Thu, 30 Nov 2006 10:29:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 99289-06 for ; Thu, 30 Nov 2006 10:28:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 421DD9F9C9E for ; Thu, 30 Nov 2006 10:28:47 -0400 (AST) Received: from alvh.no-ip.org (200-126-100-202.bk7-dsl.surnet.cl [200.126.100.202]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kAUES0pv005992; Thu, 30 Nov 2006 06:28:01 -0800 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 4FE15C2D33D; Thu, 30 Nov 2006 11:27:58 -0300 (CLST) Date: Thu, 30 Nov 2006 11:27:58 -0300 From: Alvaro Herrera To: Geoffrey Cc: John Allgood , pgsql-admin@postgresql.org, Terry Lee Tucker , "J. D. Pearson" Subject: Re: Out of file-descriptors message Message-ID: <20061130142758.GI15105@alvh.no-ip.org> Mail-Followup-To: Geoffrey , John Allgood , pgsql-admin@postgresql.org, Terry Lee Tucker , "J. D. Pearson" 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <456EE6CE.2030106@3times25.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 30 Nov 2006 06:28:01 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/252 X-Sequence-Number: 23779 Geoffrey wrote: > Alvaro Herrera wrote: > >John Allgood wrote: > >>Hey Tom > >> > >> I assume that if it is the kernel running out of descriptors that I > >>would get the messages in dmesg. This message only appears in the log > >>file for that database. > > > >Yeah, the point is that you have the max_files_per_process setting > >higher than what the kernel likes. So decrease it, and Postgres will > >adjust itself to use less file descriptors by closing and reopening > >files as needed. > > I work with the original poster and wanted to make sure the problem here > is clear. Yes, that was understood from the beginning. > The 'out of file descriptors' message is coming from > Postgresql, not the kernel. Thus, it doesn't make sense to me that the > max_files_per_process setting is too high. I would think we need to > increase it so that Postgresql will stop generating these errors. No, you need to lower it so that Postgres doesn't _try_ to use as many file descriptors. Read this again: > > So decrease it, and Postgres will > >adjust itself to use less file descriptors by closing and reopening > >files as needed. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support