home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5892 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: columba.udac.uu.se!sabik!t92etr
  2. From: t92etr@sabik.tdb.uu.se (Erik Trulsson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Want to boot FAAAST?
  5. Date: 21 Mar 1996 13:19:19 GMT
  6. Organization: Uppsala University
  7. Message-ID: <4irl0n$1dng@columba.udac.uu.se>
  8. References: <68771929@0humpty.tomate.tng.oche.de> <1280.6645T903T2008@mailbox.swipnet.se> <4ipc7i$6n@sun1000.pwr.wroc.pl>
  9. NNTP-Posting-Host: sabik.tdb.uu.se
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Robert Wojcik (wojcikr@alpha.ok.ae.wroc.pl) wrote:
  13.  
  14. : This is strange wondering, regarding one block of Ram Disk takes 1024 bytes.
  15. : Anyway another 1024 for file header ...and it sucks like hell.
  16.  
  17. That is a very common (and natural) misconception.
  18. The 1024 bytes block size reported bt RAM: is a lie from the filesystem.
  19. The ram disk doesn't use fixed blocks to hold the files, it only uses the
  20. amount of memory that is actually needed (plus some small overhead most likely)
  21. If you want to test this you can do what I did, namely create something like
  22. 2000 small files in RAM: and check the amount of free memory before and after.
  23. When I did this the amount of free memory only decreased by a couple of hundred K.
  24. If RAM: had actually used 1024 byte blocks like a normal disk, free memory should
  25. have decreased by 4 Megabytes, but it didn't.
  26. To sum it up: putting a large amount of small files in RAM: does not use up
  27. much more memory than the actual size of those files. (plus some memory
  28. for storing the names and sizes of the files and that kind of stuff)
  29.  
  30.  
  31.