home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
- From: probreak@matt.ksu.ksu.edu (James Michael Chacon)
- Newsgroups: comp.os.linux
- Subject: Re: Limiting Core dumps
- Date: 19 Nov 1992 22:38:21 -0600
- Organization: Kansas State University
- Lines: 52
- Message-ID: <1ehq3tINNnh5@matt.ksu.ksu.edu>
- References: <Nov.19.14.50.39.1992.190@remus.rutgers.edu>
- NNTP-Posting-Host: matt.ksu.ksu.edu
-
- glenw@remus.rutgers.edu (Glenn Wasserman) writes:
-
- >Does anyone know how to limit or eliminate core dump sizes?
- >I know with the C shell at school there's a variable:
-
- > set limitcoredumpsize=0
-
- >I would like to do the same for my system. I believe that when the drive fills
- >up, (Usually during a really nasty core dump - ~ 2meg or more) the system
- >halts and dies. I figure if I can keep these core dumps from happening, then
- >maybe the system won't crash entirely.
-
- >-Glenn
-
- Under bash there is a useful feature known as help. It will do pattern
- matching if you don't know the exact command you are looking for.
- Here is the output from help *limit*
-
-
- Shell commands matching keyword `*limit*'
-
- ulimit: ulimit [-SHacdmstfpn [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
-
- 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.
-
- So to set your limit on coredumping to zero you would just do a
-
- ulimit -c 0;
-
- Hope this helps
-
- James
-
-