pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Eamonn Kent <ekent@xsigo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Max files per process..
Date: Tue, 20 Feb 2007 13:39:33 -0500
Message-ID: <13601.1171996773@sss.pgh.pa.us> (raw)
In-Reply-To: <9146E3EBBFBCC94D95F95A1C4065348A01282E11@exch01.xsigo.com>
References: <9146E3EBBFBCC94D95F95A1C4065348A01282E11@exch01.xsigo.com>

"Eamonn Kent" <ekent@xsigo.com> 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



view thread (2+ messages)

Message-ID: <13601.1171996773@sss.pgh.pa.us>
Permalink:  ../13601.1171996773@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13601.1171996773@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ekent@xsigo.com
  Subject: Re: Max files per process..
  In-Reply-To: <13601.1171996773@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