Easy way to compute memory stats? (procfs?)

2001-03-19 Thread sean-freebsd-hackers
Is there an easy way (from script ideally) to get the following stats: free physical mem (avail ram) free swap total avail mem any two of the three would be great. If such a beast doesn't exist, what are the easiest calls to use to get at them so I could write some programs

RE: Easy way to compute memory stats? (procfs?)

2001-03-19 Thread Daniel O'Connor
On 20-Mar-01 [EMAIL PROTECTED] wrote: Is there an easy way (from script ideally) to get the following stats: free physical mem (avail ram) free swap total avail mem any two of the three would be great. If such a beast doesn't exist, what are the easiest calls to

Re: Easy way to compute memory stats? (procfs?)

2001-03-19 Thread David Scheidt
On Mon, 19 Mar 2001 [EMAIL PROTECTED] wrote: : Is there an easy way (from script ideally) to get the following :stats: : :free physical mem (avail ram) This is going to be quite small on any busy machine, or machine that has a reasonable uptime. The VM system will cache things unless

Re: Easy way to compute memory stats? (procfs?)

2001-03-19 Thread sean-freebsd-hackers
: Is there an easy way (from script ideally) to get the following :stats: : :free physical mem (avail ram) This is going to be quite small on any busy machine, or machine that has a reasonable uptime. The VM system will cache things unless there's a demand for memory.

Re: Easy way to compute memory stats? (procfs?)

2001-03-19 Thread Mike Smith
:total avail mem Do you mean physical memory, in which case the value of hw.physmem will tellyou. Phys mem + swap, which I think I can calc pretty easily now that I have swap. -sc That's not actually a useful number either. 8) Bear in mind, for example, that program text