home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10215 < prev    next >
Encoding:
Text File  |  1992-08-20  |  2.2 KB  |  65 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!wupost!darwin.sura.net!nntp.msstate.edu!news
  3. From: fwp@CC.MsState.Edu (Frank Peters)
  4. Subject: Re: Swap space usage..??
  5. Message-ID: <1992Aug20.151848.28801@ra.msstate.edu>
  6. Sender: news@ra.msstate.edu
  7. Nntp-Posting-Host: jester.cc.msstate.edu
  8. Organization: Computing Center, Mississippi State University
  9. References: <1992Aug13.204756.12770@mdd.comm.mot.com> <l9316tINN7g@appserv.Eng.Sun.COM> <27434@sophia.inria.fr>
  10. Date: Thu, 20 Aug 1992 15:18:48 GMT
  11. Lines: 52
  12.  
  13. In article <27434@sophia.inria.fr> rriv@oural.inria.fr (Robert Riviere) says:
  14. : myhost% pstat -T
  15.  [ ... ]
  16. : 27060/60972 swap
  17. : ...~60 Mo of swap...
  18. : myhost% pstat -s
  19. : 21312k allocated + 5588k reserved = 26900k used, 34072k available
  20. : ...still 60 Mo...
  21.  
  22. These reflect the total swap space available on your system.
  23.  
  24. : myhost%dmesg|grep sd0b
  25. : swap on sd0b fstype spec size 40500K
  26. : dump on sd0b fstype spec size 40488K
  27.  
  28. This is the size of your initial swap partition.  Look in your /etc/fstab
  29. file for a line like:
  30.  
  31.         /dev/sd1b  swap   swap rw 0 0
  32.  
  33. (the sd1b might be a different drive and partition of course).  This
  34. partition is added by the swapon command near the end of the boot 
  35. process.  It is presumbably about 20MB in size and combines with 
  36. your 40MB sd0b to make the total swap space reported by pstat.
  37.  
  38. : myhost%df
  39. : Filesystem            kbytes    used   avail capacity  Mounted on
  40. : ...
  41. : swap                   36828     952   35876     3%    /tmp
  42. : ...
  43.  
  44. I'll admit right off that I'm relatively ignorant of the formula used
  45. to compute tmpfs space.  It seems to be total swap - allocated swap -
  46. some reserve factor.  Allocated swap is the first number in a pstat -s
  47. (21312k in your output above).  I have no idea how that extra reserve
  48. factor is calculated.
  49.  
  50. As processes on your system use and free up swap the size of your
  51. tmpfs filesystem changes.
  52.  
  53. : What is my swap size ? 60 Mo, 40Mo or 36 Mo ...
  54.  
  55. You have 60MB of swap, 40MB of which is in your initial sd0b swap
  56. partition and 36MB of which is currently available to your tmpfs
  57. mounted /tmp filesystem.
  58.  
  59. --
  60. Frank Peters  -  UNIX Systems Programmer  -  Mississippi State University
  61. Internet: fwp@CC.MsState.Edu  -  Phone: (601)325-7030  -  FAX: (601)325-8921
  62.