home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!rat!usc!cs.utexas.edu!swrinde!gatech!usenet.ins.cwru.edu!odin!chet
- From: chet@odin.ins.cwru.edu (Chet Ramey)
- Newsgroups: comp.unix.bsd
- Subject: Re: out of mem
- Message-ID: <1id0h3INNl0k@usenet.INS.CWRU.Edu>
- Date: 5 Jan 93 22:02:11 GMT
- References: <C0CtIF.4CK@chinet.chi.il.us> <1ic7grINN318@usenet.INS.CWRU.Edu> <C0E4ME.12L@chinet.chi.il.us>
- Organization: Case Western Reserve University, Cleveland OH (USA)
- Lines: 41
- NNTP-Posting-Host: odin.ins.cwru.edu
-
- In article <C0E4ME.12L@chinet.chi.il.us> randy@chinet.chi.il.us (Randy Suess) writes:
-
- > 'ulimit' is for disk file size and is a sysv thing, not bsd.
-
- Not true. I'm talking about the ksh builtin, not the system call.
- If you're running bash or honest-to-god AT&T ksh, and you've
- configured it correctly, there are options to ulimit that let you
- get or set all of the BSD resource limits. Here's what bash says
- for `help ulimit'; the ksh man page says something similar:
-
- odin(3)$ help ulimit
- ulimit: ulimit [-SHacdmstfpnv [limit]]
- Ulimit provides control over the resources available to processes
- started by the shell, on systems that allow such control. If an
- option is given, it is interpreted as follows:
-
- -S use the `soft' resource limit
- -H use the `hard' resource limit
- -a all current limits are reported
- -c the maximum size of core files created
- -d the maximum size of a process's data segment
- -m the maximum resident set size
- -s the maximum stack size
- -t the maximum amount of cpu time in seconds
- -f the maximum size of files created by the shell
- -p the pipe buffer size
- -n the maximum number of open file descriptors
- -v the size of virtual memory
-
- If LIMIT is given, it is the new value of the specified resource.
- Otherwise, the current value of the specified resource is printed.
- If no option is given, then -f is assumed. Values are in 1k
- increments, except for -t, which is in seconds, and -p, which is in
- increments of 512 bytes.
-
- Chet
- --
- ``The use of history as therapy means the corruption of history as history.''
- -- Arthur Schlesinger
-
- Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
-