Skip site navigation (1) Skip section navigation (2)

Re: Max files per process..

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Eamonn Kent" <ekent(at)xsigo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Max files per process..
Date: 2007-02-20 18:39:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
"Eamonn Kent" <ekent(at)xsigo(dot)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

In response to

pgsql-admin by date

Next:From: Ron MayerDate: 2007-02-20 23:19:06
Subject: Re: Priorities for users or queries?
Previous:From: Eamonn KentDate: 2007-02-20 18:14:13
Subject: Max files per process..

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group