home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16815 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  2.4 KB

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