Article View: fj.sys.next
Article #3916Re: What's /private/vm/swapfile ???
From: Hironobu Suzuki
Date: Fri, 05 Jun 1992 07:21
Date: Fri, 05 Jun 1992 07:21
35 lines
2431 bytes
2431 bytes
In article <FOISON.92Jun4083821@sun.ips.tytlabs.co.jp> foison@ips.tytlabs.co.jp (Mitsuhiro Araki) writes: |$B6qBNE*$K$O(B /etc/rc $B$N(B mach_swapon $B$ND>A0$K0J2<$N(B - $B$G$O$5$^$l$F$$$k(B1$B9T(B |$B$r2C$($l$PNI$$$H;W$$$^$9(B$B!%(B | |---------------------------------------------------------------------- |cp /dev/null /private/vm/swapfile |---------------------------------------------------------------------- | |$B$A$J$_$K!$(B/etc/swaptab $B$NCf$K(B swapfile $B$N:GBgCM$r;XDj$9$k$3$H$,$G$-$k(B |$B$O$:$G$9$N$G!$(Bswapfile $B$N$?$a$K!$%G%#%9(B$B%/$,$"$U$l$k$3$H$O!$$"$kDxEY2s(B |$BHr$G$-$k$H;W$$$^$9!%(B $B%V!<%H$7$?>l9g!"(Blowat$B$G;XDj$7$?%5%$%:$K(Bswapfile$B$O@_Dj$5$l$k!J$O$:!K$J(B $B$N$G!"$3$N=hM}$O$"$s$^$jI,MW$J$$$N$G$O!)$H;W$&;d$G$9!#(B Swapfile$B$NBg$-$5$K4X(B$B$7$F$O(BNeXT Answer / Sysadmin.569$B$K$3$s$JIw$K=q$$$F(B $B$$$^$9!#!J0JA0!"4_K\$5$s$+$i65$($F$b$i$C$?$G$"$C$?(B$B!#!K(B ---- Q: Will the swapfile get smaller (if above the low water mark) while the system is running, or is it reset only upon reboot? The swapfile works in a stack-oriented manner it will shrink only if the system detects that all pages above a certain address are unallocated. This rarely occurs. Consider launching a 4MB application which is completely paged out followed by one more page owned by some other application in the system. Even if the 4MB is freed the swapfile cannot be truncated until that extra page is freed. What generally happens is that long running applications allocate a few pages at the high addresses, and swapfile apparently never shrinks. ---
Technical Details
Message-ID:
<HIRONOBU.92Jun5162125@ext221.sra.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!ccut!wnoc-tyo-news!sranha!sran265!hironobuReferences:
<2534@enterprise.mtl.t.u-tokyo.ac.jp> <IPPEI.92Jun3194419@draco.jsk.t.u-tokyo.AC.JP> <FOISON.92Jun4083821@sun.ips.tytlabs.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 115a95,a21e421b3116a215 X-Google-Attributes: gid115a95,public X-Google-ArrivalTime: 1992-06-04 23:47:58 PST Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!wnoc-tyo-news!sranha!sran265!hironobu From: hironobu@sra.co.jp (Hironobu Suzuki) Newsgroups: fj.sys.next Subject: Re: What's /private/vm/swapfile ??? Message-ID: <HIRONOBU.92Jun5162125@ext221.sra.co.jp> Date: 5 Jun 92 07:21:10 GMT References: <2534@enterprise.mtl.t.u-tokyo.ac.jp> <IPPEI.92Jun3194419@draco.jsk.t.u-tokyo.AC.JP> <FOISON.92Jun4083821@sun.ips.tytlabs.co.jp> Sender: news@sran265.sra.co.jp Distribution: fj Organization: Software Research Associates, Inc., Japan Lines: 35 In-reply-to: foison@ips.tytlabs.co.jp's message of 3 Jun 92 23:38:06 GMT