Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1AE639FB3DF for ; Tue, 20 Feb 2007 14:39:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 41549-01 for ; Tue, 20 Feb 2007 14:39:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 6177F9FB34D for ; Tue, 20 Feb 2007 14:39:34 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l1KIdXLu013602; Tue, 20 Feb 2007 13:39:33 -0500 (EST) To: "Eamonn Kent" cc: pgsql-admin@postgresql.org Subject: Re: Max files per process.. In-reply-to: <9146E3EBBFBCC94D95F95A1C4065348A01282E11@exch01.xsigo.com> References: <9146E3EBBFBCC94D95F95A1C4065348A01282E11@exch01.xsigo.com> Comments: In-reply-to "Eamonn Kent" message dated "Tue, 20 Feb 2007 10:14:13 -0800" Date: Tue, 20 Feb 2007 13:39:33 -0500 Message-ID: <13601.1171996773@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.063 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/277 X-Sequence-Number: 24742 "Eamonn Kent" writes: > We are using Postgres 8.1.4 for an embedded linux device. I have > max_files_per_process unset - so it should take on the default value of > 1000. However, it appears that at times, postmaster has 1023 files open > (lsof). What are you measuring here? max_files_per_process is intended to count actual files, not (for instance) shared libraries --- but lsof tends to list those too. Also, it's impossible for the code to know about open files that didn't go through fd.c, so you might have some FDs opened by random library code or whatever. You should try breaking down the lsof list to see which are actually database-file FDs. regards, tom lane