Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2003 17:01:18 -0400
From:      "Kevin A. Pieckiel" <kpieckiel-freebsd-hackers@smartrafficenter.org>
To:        freebsd-hackers@freebsd.org
Subject:   maxfiles, file table, descriptors, etc...
Message-ID:  <20030420210118.GA21255@pacer.dmz.smartrafficenter.org>

next in thread | raw e-mail | index | archive | help

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

First, do open sockets (inet or unix) or pipes (via pipe(2)) count
against kern.maxfiles, kern.maxfilesperproc, and other related limits?

Second, are there sysctl variables that indicate the size or usage
of the file table?  Or is this simply indicated by maxfiles (and
perhaps others)?  Or is there a program that will report this info?

Third, where is the limit for the number of file descriptors that
can be open set?  Or is this the same limit as maxfiles, etc?

Fourth, is there a difference between an open file and an open
descriptor?

These questions were spawned from the errors possibly returned by
pipe(2).  I'm not clear on what the entities and limits are as
they involve such things as the file table, open files, open
descriptors, etc.

Finally, are answers to these questions OS specific, or are they
part of a standard indicating how such things behave?

Thanks,
Kevin


"Beware when the great God lets loose a thinker on this planet."
-- Ralph Waldo Emerson

---
This message was signed by GnuPG.  E-Mail kpieckiel-pgp@smartrafficenter.org
to receive my public key.  You may also get my key from pgpkeys.mit.edu;
my ID is 0xF1604E92 and will expire on 01 January 2004.

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE+owqac3iJbvFgTpIRAgJjAJwMBECbgJ/hCbRMNEOm64lmSCQs8QCfeaIW
pBhDBqf3o5b9Aytj1giJJ00=
=CFnT
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030420210118.GA21255>