home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!chx400!ira.uka.de!Sirius.dfn.de!zam103!ibt013!kiehl
- From: kiehl@ibt013.ibt.kfa-juelich.de (Horst Kiehl)
- Newsgroups: comp.os.os2.misc
- Subject: Re: The swapper file
- Keywords: swap
- Message-ID: <379@zam103.zam.kfa-juelich.de>
- Date: 6 Nov 92 15:07:49 GMT
- References: <joiner.720807574@exa> <720863714marten.marten@feki.toppoint.de> <joiner.720927714@exa> <16839@umd5.umd.edu>
- Sender: news@zam103.zam.kfa-juelich.de
- Reply-To: kiehl@ibt013.ibt.kfa-juelich.de (Horst Kiehl)
- Organization: Forschungszentrum Juelich GmbH (KFA), Germany
- Lines: 30
- Nntp-Posting-Host: ibt013
-
- In article <16839@umd5.umd.edu>,
- adhir@cygnus.umd.edu (Alok Dhir) writes:
-
- >Hey all. I just installed the service pack on my IBM PS/2 model 90 at work
- >and have noticed something interesting. On my 486/50 clone at home, my swapper
- >file grows like crazy and rarely ever shrinks. On the PS/2 at work, however,
- >the swapper tends to stay way down around 4096k. If it grows, it'll shrink
- >right back as soon as I quite a few apps.
-
- The OS/2 V2.0 Volume 1 Redbook (I think) describes the method of using
- space in the swap file. I'll try to summarize it.
-
- When a memory page needs to be swapped out for the first time, a space
- in the swap file is dedicated to it (and the page is swapped out). This
- space stays at the same place in the swap file until the page is
- deallocated (discarded). (This implies that there's no need to "clean
- up" the swap file (shifting page spaces, slowing down the system), but
- also implies that there can be times when large areas of the swap file
- are unused.) After the swap file has grown and space in the new part of
- the swap file has been dedicated to at least one page, the swap file
- won't shrink before the last dedicated page space in this part of the
- swap file is free again.
-
- In consequence, different sequences of opening and closing the same set
- of objects can cause different behaviours (growth and shrinkage) of the
- swapfile.
-
- I hope this helps.
-
- Horst
-