home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!wupost!darwin.sura.net!nntp.msstate.edu!news
- From: fwp@CC.MsState.Edu (Frank Peters)
- Subject: Re: Swap space usage..??
- Message-ID: <1992Aug20.151848.28801@ra.msstate.edu>
- Sender: news@ra.msstate.edu
- Nntp-Posting-Host: jester.cc.msstate.edu
- Organization: Computing Center, Mississippi State University
- References: <1992Aug13.204756.12770@mdd.comm.mot.com> <l9316tINN7g@appserv.Eng.Sun.COM> <27434@sophia.inria.fr>
- Date: Thu, 20 Aug 1992 15:18:48 GMT
- Lines: 52
-
- In article <27434@sophia.inria.fr> rriv@oural.inria.fr (Robert Riviere) says:
- :
- : myhost% pstat -T
- [ ... ]
- : 27060/60972 swap
- :
- : ...~60 Mo of swap...
- :
- : myhost% pstat -s
- : 21312k allocated + 5588k reserved = 26900k used, 34072k available
- : ...still 60 Mo...
-
- These reflect the total swap space available on your system.
-
- : myhost%dmesg|grep sd0b
- : swap on sd0b fstype spec size 40500K
- : dump on sd0b fstype spec size 40488K
-
- This is the size of your initial swap partition. Look in your /etc/fstab
- file for a line like:
-
- /dev/sd1b swap swap rw 0 0
-
- (the sd1b might be a different drive and partition of course). This
- partition is added by the swapon command near the end of the boot
- process. It is presumbably about 20MB in size and combines with
- your 40MB sd0b to make the total swap space reported by pstat.
-
- : myhost%df
- : Filesystem kbytes used avail capacity Mounted on
- : ...
- : swap 36828 952 35876 3% /tmp
- : ...
-
- I'll admit right off that I'm relatively ignorant of the formula used
- to compute tmpfs space. It seems to be total swap - allocated swap -
- some reserve factor. Allocated swap is the first number in a pstat -s
- (21312k in your output above). I have no idea how that extra reserve
- factor is calculated.
-
- As processes on your system use and free up swap the size of your
- tmpfs filesystem changes.
-
- : What is my swap size ? 60 Mo, 40Mo or 36 Mo ...
-
- You have 60MB of swap, 40MB of which is in your initial sd0b swap
- partition and 36MB of which is currently available to your tmpfs
- mounted /tmp filesystem.
-
- --
- Frank Peters - UNIX Systems Programmer - Mississippi State University
- Internet: fwp@CC.MsState.Edu - Phone: (601)325-7030 - FAX: (601)325-8921
-