home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 10936 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  2.3 KB

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