home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / misc / 16880 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.8 KB

  1. Path: sparky!uunet!know!cass.ma02.bull.com!think.com!rpi!usc!wupost!sdd.hp.com!sgiblab!munnari.oz.au!uniwa!DIALix!acix!johnv
  2. From: johnv@acix.DIALix.oz.au (John Verhoeven)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: Why doesn't Amiga core-dump? *sigh*
  5. Message-ID: <johnv.03l3@acix.DIALix.oz.au>
  6. Date: 15 Nov 92 21:22:34 GMT
  7. References: <thecure.721711121@munagin>
  8. Organization: ACix - Private UUCP Node, Cloverdale, Western Australia.
  9. Lines: 28
  10. X-Newsreader: TIN [version 1.1 PL6]
  11.  
  12. matthew aardvarkious (thecure@mullian.ee.mu.OZ.AU) wrote:
  13. > tron@uni-paderborn.de (Matthias Scheler) writes:
  14. > >Core-Dumping is not the main point. I suppress core dumping, because I don't
  15. > >like this 8 MB files in my home dir and Unix still crashes. The thing that
  16. >
  17. > Err, when it dumps it has a lot 0 bytes that are compressed. Hence you can have
  18. > an 8 meg file, but only takes 300k or so. If you were to cp it , it would explode,
  19. > but if you mv if, the inodes remain constant, and the so does the file size.
  20.  
  21. This used to puzzle me, you deleted this humungous great core file (> 8
  22. Megs) and free only 300 or 400K.
  23.  
  24. A Unix guru friend of mine enlightened me, It's called sparse files.  A
  25. file with a lot of zeros, the sectors that only contain zero don't take
  26. up any space.  The filesystem marks those sectors as being zero filled
  27. and writes nothing to the disk.
  28.  
  29. His favourite party trick is to open a file, seek to some huge position,
  30. write a single byte there and close the file.  Do a 'ls -l' and your
  31. file is gigabytes in size on a small hard drive.
  32.  
  33. Look Ma, I've stored 2 gigabytes on this 100 megabyte hard disk :-)
  34.  
  35. --
  36.  
  37. John Verhoeven                        johnv@acix.DIALix.oz.au      _--_|\
  38. Treasurer, Amiga Developers           (ALT: johnv@DIALix.oz.au)   /      \
  39. Association of Western Australia      Phone: (+619) 478 1406      *_.--._/
  40.