🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #19

Limits on number of open file descriptors in ksh and others

#19
From: Larry W. Virden
Date: Thu, 29 Oct 1992 16:05
30 lines
1864 bytes
I am curious why some shells have limits on certain resources.  For instance,
ksh potentially has he following hard and soft limits:

	  The number of blocks of core dump size.
	  The number of bytes of size of the data area.
	  The number of blocks of files written by child processes.
	  The number of bytes of size of physical memory.
	  The number of file descriptors.
	  The number of blocks for pipe buffering.
	  The number of bytes of size of the stack area.
	  The number of seconds to be used by each process.
	  The number of bytes for virtual memory.

I suppose I understand why one would not want any of a core dump written -
though I don't know why one would only want PART of a core dump written.
I assume the limits on data area, physical memory, pipe buffering, stack
area and virtual memory is to keep something from looking with malloc or
skipping garbage collection, etc. and eating up all of memory?  Number
of seconds used by each process would be good to limit to keep a process
from looping till the cows come home.

What benefits are there in limiting the number of file descriptors?  And
what harm would be caused if the soft limit were just automatically set to
the hard limit size?
-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
America Online: lvirden@aol.com
Technical Details
Message-ID: <1992Oct29.161118.12523@cas.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!malgudi.oar.net!chemabs!lwv26

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!malgudi.oar.net!chemabs!lwv26
From: lwv26@cas.org (Larry W. Virden)
Subject: Limits on number of open file descriptors in ksh and others
Message-ID: <1992Oct29.161118.12523@cas.org>
Sender: usenet@cas.org
Reply-To: lvirden@cas.org (Larry W. Virden)
Organization: Nedriv Software and Shoe Shiners, Uninc.
Date: Thu, 29 Oct 1992 16:05:09 GMT
Lines: 30