Re: "Too many open files in system" error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jonatan Evald Buus <jonatan(dot)buus(at)cellpointmobile(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: "Too many open files in system" error
Date: 2009-08-13 14:59:11
Message-ID: 7232.1250175551@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jonatan Evald Buus <jonatan(dot)buus(at)cellpointmobile(dot)com> writes:
> Also, what would a reasonable setting for "max_files_per_process" based on a
> machine with 2GB RAM running FreeBSD 7.1 be?
> The comments mention that "max_files_per_process may" be set as low as 25
> but what would the implications of this restriction be?

At some point you're going to start losing performance because of too
many close() and open() calls that have to be issued to switch a small
number of file descriptors around to different tables. AFAIK no one
has really tried to measure the issue. Personally I'd be pretty
concerned about setting it to less than 100 or so.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ray Stell 2009-08-13 15:09:10 VACUUM WARNING: skipping
Previous Message th 2009-08-13 14:12:32 Get current_user in statistics