Date: Wed, 17 Aug 2005 16:34:00 -0700 From: garys@opusnet.com (Gary W. Swearingen) To: Carstea Catalin <carstea.catalin@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: I need one command Message-ID: <scpssct9xz.ssc@mail.opusnet.com> In-Reply-To: <dc6701ba0508171327681a2fd0@mail.gmail.com> (Carstea Catalin's message of "Wed, 17 Aug 2005 13:27:04 -0700") References: <dc6701ba0508171327681a2fd0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Carstea Catalin <carstea.catalin@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?scpssct9xz.ssc>
