home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!sys.toronto.edu!jwang
- Newsgroups: comp.sys.hp
- From: jwang@sys.toronto.edu (Jingwen Wang)
- Subject: Free Swap space on HP-UX
- Message-ID: <1992Dec30.155924.24974@jarvis.csri.toronto.edu>
- Organization: CSRI, University of Toronto
- Date: 30 Dec 92 20:59:24 GMT
- Lines: 33
-
- Sorry to raise this question again. I posted something similar some days
- ago. But I only got one response which does not work.
-
- My question was: how to get the amount of free swap space in the system?
- Since I need this value in my C program, don't suggest me to use the "monitor"
- program from HP company.
-
- Someone suggested me to try the kernel variable swapspc_cnt multiplied
- by swchunk. This obviously under-estimated the value too much: I got
- 92 MB free swap space from "monitor" program, but swapspc_cnt * swchunk
- is only 35MB.
-
- I also tried the minfo structure defined in sysinfo.h for the number
- minfo.freeswap, but I always get 0 from the kernel.
-
- Can someone tell me how to get this value? The program "monitor" can
- certainly help, but the source is not available. HP is very secretive
- in their software, as well as product information.
-
- Thanks.
-
- jwang
-
- --
- {}
- {}(){} -----> Jingwen Wang, Univ. of Toronto (416)-978-1675 (office)
- {} jwang@sys.toronto.edu 1-800-ASK-wang (home)
-
- --
- {}
- {}(){} -----> Jingwen Wang, Univ. of Toronto (416)-978-1675 (office)
- {} jwang@sys.toronto.edu 1-800-ASK-wang (home)
-
-