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