I need one command
Gary W. Swearingen
garys at opusnet.com
Wed Aug 17 23:33:13 GMT 2005
Carstea Catalin <carstea.catalin at gmail.com> writes:
> I run squid on my freebsd box and i need to know the free memory.
> In redhat exist a nice command #free to show the free memory. In
$ top | grep Mem:
Mem: 91M Active, 271M Inact, 91M Wired, 232K Cache, 60M Buf, 45M Free
$ top | awk '/Mem:/ { print $12 }'
45M
$ vmstat
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr ad0 ad2 in sy cs us sy id
2 2 0 207316 46040 47 0 0 0 37 0 0 0 341 485 363 0 0 99
$ vmstat | tail -1 | awk '{ print $5 }'
46040
More information about the freebsd-questions
mailing list