home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / admin / 4679 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.8 KB

  1. Xref: sparky comp.unix.admin:4679 comp.unix.questions:10378 comp.unix.shell:3622
  2. Newsgroups: comp.unix.admin,comp.unix.questions,comp.unix.shell
  3. Path: sparky!uunet!munnari.oz.au!manuel!sserve!ccadfa.cc.adfa.oz.au!cjsv
  4. From: Christopher.Vance@adfa.oz.au (Christopher JS Vance)
  5. Subject: Re: How to prevent a large core-dump
  6. Message-ID: <1992Aug26.013800.27174@sserve.cc.adfa.oz.au>
  7. Originator: cjsv@ccadfa.cc.adfa.oz.au
  8. Sender: news@sserve.cc.adfa.oz.au
  9. Organization: Computer Science, University College, UNSW/ADFA, Canberra, Australia
  10. References: <1992Aug25.173056.13401@utwente.nl>
  11. Date: Wed, 26 Aug 1992 01:38:00 GMT
  12. Lines: 24
  13.  
  14. In article <1992Aug25.173056.13401@utwente.nl> soos@math.utwente.nl (Adwin Soos) writes:
  15. | A few weeks or even months ago I have read some discussion about the problem
  16. | of preventing a core-dump. I remember that there were some suggestions on how
  17. | to prevent that a large core-dump will be made. 
  18. | This problem is now occurring at our place where someone is writing a large
  19. | program and in some test-cases there is a core dump for more than 60 Mb.
  20. | This person is not using this core to debug it so maybe we can just stop the
  21. | creation of this core for this person.
  22. | Is there someone who can mail me such suggestions?
  23.  
  24. If you can use csh or tcsh, it may have a builtin 'limit' command.
  25.  
  26. Otherwise, if you're on a system with setrlimit(2) you can use that,
  27. although you may need to write a small program to make things happen.
  28.  
  29. A few years ago, I wrote a small C program I called rlimit which does
  30. this sort of thing because our students' programs were so bad that the
  31. vendor's excellent(?) Pascal compiler kept dumping core and exhausting
  32. their disk quotas.
  33.  
  34. I don't know how more recent Unices do this, since we don't have one I
  35. can check.
  36.  
  37. -- Christopher
  38.