home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10060 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.6 KB

  1. Path: sparky!uunet!mcsun!sunic!news.funet.fi!hydra!klaava!torvalds
  2. From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: 0.97 patchlevel 3 available
  5. Message-ID: <1992Sep7.080727.22080@klaava.Helsinki.FI>
  6. Date: 7 Sep 92 08:07:27 GMT
  7. References: <1992Sep5.184606.11361@klaava.Helsinki.FI> <1992Sep6.174044.28957@mo.hobby.nl>
  8. Organization: University of Helsinki
  9. Lines: 26
  10.  
  11. In article <1992Sep6.174044.28957@mo.hobby.nl> hans@mo.hobby.nl (Hans Oey) writes:
  12. >
  13. >Sure, 16 Mb is enough. Jeez, why would people ever need
  14. >more then 640 Kb? Swap partitions give far better
  15. >performance. Should we use up to 128 partitions?
  16. >Please remove this limitation on Linux. Would a beer or
  17. >two help you to find the energy?
  18.  
  19. Actually, beer-drinking doesn't seem to help programming very much :-)
  20.  
  21. And as people have been very concerned about the 16MB limit - don't
  22. panic.  It's not inherent to anything like the DOS 640kB limit, and is
  23. there just because it was a bit easier to code that way - correcting it
  24. later won't break anything.  So while this version and the next may have
  25. this limitation, it will go away (cleanly) - I just have to code some
  26. more. 
  27.  
  28. In case anybody is wondering why there is a 16MB limit in the pl3 code,
  29. it's very simple: I use a character array to store the swap-page-counts,
  30. and that array just happens to be 4096 bytes long, as that's the biggest
  31. easily allocable unit of memory in the current kernel.  So I just
  32. allocate 4096 bytes: 4096 swap-page-counters = 16MB swapspace.  So the
  33. only thing that I have to do to allow bigger swapfiles is to allocate
  34. more memory - SMOP, but irritating and boring. 
  35.  
  36.         Linus
  37.