home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!olivea!sgigate!odin!twilight!zuni!anchor!olson
- From: olson@anchor.esd.sgi.com (Dave Olson)
- Newsgroups: comp.sys.sgi
- Subject: Re: Limit core dump size
- Message-ID: <sobq4g0@zuni.esd.sgi.com>
- Date: 24 Nov 92 02:48:41 GMT
- References: <1992Nov24.001133.23442@eng.umd.edu>
- Sender: news@zuni.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Lines: 52
-
- In <1992Nov24.001133.23442@eng.umd.edu> ashish@eng.umd.edu (Ashish Nedungadi) writes:
-
-
- | Hello,
- | Maybe someone form SGI can answer this question for me. There are times
- | when I run an application and it bombs. When it bombs the disk goes berserk and then
- | writes out huge (appr. 200Mbytes) core file. Is there any way to limit the size of a
- | core dump. Like maybe
- |
- | limitcoredumpsize
-
- Very close! For both /bin/sh and /bin/csh, see the limit command.
- With no options, you get this:
- cputime unlimited
- filesize unlimited
- datasize 60000 kbytes
- stacksize 16000 kbytes
- coredumpsize unlimited
- memoryuse 12000 kbytes
-
- limit coredumpsize 100k would limit it to 100 kbytes. Unlike some
- OS's (Sun) you can't prevent the creation of the core file altogether,
- but limit coredumpsize 0 will only create an empty file.
-
- | - When you log out, you get a window asking asking you
- | whether you are sure you want to log out. The question
- | is, can you avoid this window from coming up ie when you
- | choose logout, you get logged out w/o any questions. I was
- | thinking that maybe you could put some statement in your
- | .Xdefaults file.
-
- See the uses of 'endsession' (found in /usr/bin/X11) in /usr/lib/X11/system.*
- Yes, this can be changed (either there, or in your own private copies
- in your home directory).
-
- | - If in the unforeseen circumstance you have to reboot the
- | machine w/o going through proper channels is it better to
- | - hit the reset button on the CPU box
-
- This really resets the system. You chance losing any files that
- have not been flushed to disk.
-
- | OR
- | - press <Ctrl>,<Shift>,<F12>,and the </> on the keypad
- | Which is safer and recommended more?
-
- This only terminates the X server (and therefore any programs running
- on the graphics tube).
- --
- Let no one tell me that silence gives consent, | Dave Olson
- because whoever is silent dissents. | Silicon Graphics, Inc.
- Maria Isabel Barreno | olson@sgi.com
-