home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / hp / 14431 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.5 KB

  1. Path: sparky!uunet!utcsri!sys.toronto.edu!jwang
  2. Newsgroups: comp.sys.hp
  3. From: jwang@sys.toronto.edu (Jingwen Wang)
  4. Subject: Free Swap space on HP-UX
  5. Message-ID: <1992Dec30.155924.24974@jarvis.csri.toronto.edu>
  6. Organization: CSRI, University of Toronto
  7. Date: 30 Dec 92 20:59:24 GMT
  8. Lines: 33
  9.  
  10.    Sorry to raise this question again. I posted something similar some days
  11. ago. But I only got one response which does not work.
  12.  
  13.    My question was: how to get the amount of free swap space in the system?
  14. Since I need this value in my C program, don't suggest me to use the "monitor"
  15. program from HP company. 
  16.  
  17.    Someone suggested me to try the kernel variable swapspc_cnt multiplied
  18.    by swchunk. This obviously under-estimated the value too much: I got
  19.    92 MB free swap space from "monitor" program, but swapspc_cnt * swchunk
  20.    is only 35MB.
  21.  
  22.    I also tried the minfo structure defined in sysinfo.h for the number
  23.    minfo.freeswap, but I always get 0 from the kernel. 
  24.  
  25.    Can someone tell me how to get this value? The program "monitor" can
  26. certainly help, but the source is not available. HP is very secretive 
  27. in their software, as well as product information.
  28.  
  29. Thanks.
  30.  
  31. jwang
  32.  
  33. -- 
  34.   {}
  35. {}(){} -----> Jingwen Wang, Univ. of Toronto       (416)-978-1675 (office)
  36.   {}          jwang@sys.toronto.edu                1-800-ASK-wang (home)
  37.  
  38. --
  39.   {}
  40. {}(){} -----> Jingwen Wang, Univ. of Toronto       (416)-978-1675 (office)
  41.   {}          jwang@sys.toronto.edu                1-800-ASK-wang (home)
  42.  
  43.