home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
- Newsgroups: comp.os.linux
- Subject: Re: Swap files (was: Re: .97 kernel and root disk/probs with swapping)
- Message-ID: <1992Sep1.153412.18136@klaava.Helsinki.FI>
- Date: 1 Sep 92 15:34:12 GMT
- References: <1992Aug31.194716.16232@klaava.Helsinki.FI> <bjl.715328078@freyr> <1992Sep1.083154.5064@klaava.Helsinki.FI>
- Organization: University of Helsinki
- Lines: 22
-
- In article <1992Sep1.083154.5064@klaava.Helsinki.FI> torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) writes:
- >In article <bjl.715328078@freyr> B.J.Lippolt@research.ptt.nl writes:
- >>
- >>On the subject of swapping.
- >>
- >>Would it be possible to implement a scheme (a la SunOS) where you can
- >>'add' swap files to the swap space? E.g. I have a 8Mb swap partition, and
- >>when I need more (which happens once in a while) I just create a swap
- >>file and add it to my 8 Mb swap space. Would this be a minor (i.e. I
- >>can do it myself) or a major change?
- >
- >It wouldn't be too hard: right now swap-map numbers are 31-bit entities,
- [ explanation on how to implement it deleted ]
-
- Ok, don't implement this: I already did it, and the (minor, as promised)
- changes will be in the next patch. I'm currently running linux with two
- different swapfiles, and it accepts up to 8 different files (and up to
- 128 after changing a single #define and recompiling). I haven't
- implemented "swapoff()" yet, but I guess that too will be implemented
- today.
-
- Linus
-