Re: Too-many-files errors on OS X - Mailing list pgsql-hackers

From abe@purdue.edu (Vic Abell)
Subject Re: Too-many-files errors on OS X
Date
Msg-id 825ee26b.0402240544.46ff0e91@posting.google.com
Whole thread Raw
In response to Too-many-files errors on OS X  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
tgl@sss.pgh.pa.us (Tom Lane) wrote in message (in part)
> ...
> Hmm.  This may be OS-specific.  The shlibs certainly show up in the
> output of lsof in every variant I've checked, but do they count against
> your open-file limit?

From the lsof FAQ:

> 5.2   Why doesn't Apple Darwin lsof report text file information?
>
>       At the first port of lsof to Apple Darwin, revision 4.53,
>       insufficient information was available -- logic and header
>       files -- to permit the installation of VM space scanning
>       for text files.  As of lsof 4.70 it is sill not available.
>       Text file support will be added to Apple Darwin lsof after
>       the necessary information becomes available.

Lsof calls the executable and shared libraries "text files."  The
lsof FAQ may be found at:
 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ

I have developed a hack which will be released at lsof revision
4.71.  A pre-release source distribution of 4.71 only for Darwin is
available at:
 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/lsof_4.71C.darwin.tar.bz2

Note that you must build the lsof executable from that distribution
and building lsof requires that you download the XNU headers from
www.opensource.apple.com/darwinsource/.  Downloading the XNU headers
requires an Apple ID and password.

Vic Abell, lsof author


pgsql-hackers by date:

Previous
From: George Weaver
Date:
Subject: Re: [pgsql-hackers-win32] Win32 regression test status
Next
From: Jon Jensen
Date:
Subject: Re: Avoid MVCC using exclusive lock possible?