These Things Matter to Me
Saturday, April 29, 2006
  Falling In Love Again. FreeBSD: Not Always Like Linux. Go figure. Lesson 1: Checking For Memory/ RAM
Right now I'm working on a project that involves FreeBSD, a UNIX flavor I'm not so familiar with. I'm finding many of my fave Linux commands... completely useless.

Let's start with looking for memory usage. On Linux, I'd try the ol':
# cat /proc/meminfo
On FreeBSD? Not so much. (note: there are some compatibility packages that can get you pretty close, but let's assume we don't have those, and we want to do it like the natives do it)

What about.... THIS!?!?
#sysctl -a | grep -i memory
Virtual Memory: (Total: 53359K, Active 12614616K)
Real Memory: (Total: 3993828K Active 3084828K)
Shared Virtual Memory: (Total: 228120K Active: 72076K)
Shared Real Memory: (Total: 107012K Active: 32160K)
Free Memory Pages: 265452K
Booyah!...
And that's one way to check memory usage on FreeBSD.
 
Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home
probably a little too much

About
Linux sysadmin. I cry when make fails. And during the Oscars. Every year.
Contact
andy: andiacts [at] gmail.com
Archives
September 2005 / October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 / May 2007 / June 2007 / July 2007 / August 2007 / September 2007 / October 2007 / November 2007 / December 2007 / January 2008 / February 2008 / March 2008 / April 2008 / May 2008 / June 2008 / July 2008 / August 2008 / September 2008 / January 2009 / February 2009 /




Powered by Blogger

Subscribe to
Posts [Atom]