On Sat, Jan 12, 2002 at 11:30:27AM -0700, Nate Williams wrote: > Is there a simple sysctl or a command line utility I can use to > determine how much free memory is available in a system? > > I've got an embedded application that has *very* limited memory, and I > was trying to figure out how much memory was available for the userland > applications. > > 'top' has something, as well as 'vmstat'. Unfortunately, because of the > limited amount of disk space available on this box, I don't have access > to either one of those. > > Is there a sysctl I can use to determine how much free memory is > available on the box?
Why not look how top and vmstat calculate it and do that in your code. Kris
msg30933/pgp00000.pgp
Description: PGP signature