pavement

Talk:Df

From FreeBSDwiki
Jump to: navigation, search

I'd like to see a link here to "Memory free". Does anybody know of a quick and simply was to get a df-style memory listing (something like the free command under Linux or the mem command under DOS)?

I know I can use top, but that shows me a whole lot of stuff I don't wanna see, and not everything I want to see (for instance the total amount of physical memory).

I know I can type

[light@splat ~]$ sysctl -n hw.physmem

to get the amount of physical memory. I can also get a whole bunch of info from vmstat.

If I have the Linux emulation layer installed and the Linux proc system mounted I can type

[light@splat ~]$ cat /usr/compat/linux/proc/meminfo

This gives me almost exactly what I, or in fact what any person first logging into a server and worrying about memory usage, would want to know.

So, is there a simple answer, one that doesn't require anything installed except the basic system? ;)

- Light



Have you looked at muse?

http://www.freebsdsoftware.org/ports.php?c=sysutils&n=muse

--Jimbo 04:08, 11 Sep 2004 (GMT)


only thing i can think of is to make a script that runs those commands and maybe pull them together and output 'em to STOUT. Ideally, a bourne shell script so you could port it to other unixes. I did find that annoying the first time I tried "free" on a BSD CLI.

--Dave

although looking at muse in action, it's pretty nice.

-d.



ahahahaha I just noticed this in the man page for muse (which has a nice description of what each of the various memory allocation types returned are, btw):

BUGS
     muse is a hack. -k and -m switches are corny.

Chuckle. It's in brighted text, no less. --Jimbo 11:56, 27 Jul 2005 (EDT)



Personal tools