Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 17th November 2008
unixdude unixdude is offline
Real Name: Raul Ruiz, Jr.
New User
Join Date: Jun 2008
Location: Southern California
Posts: 6
Smile "free" command/perl script for freebsd

I have a lot of friends who started out learning about unix concepts using linux. And many of them are now migrating over to freeBSD. They are used to the "free" command to look up ram/memory usage. I found a perl script written for freebsd that sort of mimics this command. I normally just use "top", "sysctl" or "vmstat" command myself. However, this is a pretty cool little perl script and might be handy in someones BSD toolbox out there. Here is the link.


Have fun!

Here is what the output looks like on my computer running freeBSD-7.1 prelease using this perl script.

[unixdude@ ~]$ free
mem_wire: 16265216 ( 15MB) [ 2%] Wired: disabled for paging out
mem_active: + 8024064 ( 7MB) [ 1%] Active: recently referenced
mem_inactive:+ 6471680 ( 6MB) [ 0%] Inactive: recently not referenced
mem_cache: + 16384 ( 0MB) [ 0%] Cached: almost avail. for allocation
mem_free: + 746426368 ( 711MB) [ 95%] Free: fully available for allocation
mem_gap_vm: + 331776 ( 0MB) [ 0%] Memory gap: UNKNOWN
-------------- ------------ ----------- ------
mem_all: = 777535488 ( 741MB) [100%] Total real memory managed
mem_gap_sys: + 14438400 ( 13MB) Memory gap: Kernel?!
-------------- ------------ -----------
mem_phys: = 791973888 ( 755MB) Total real memory available
mem_gap_hw: + 13332480 ( 12MB) Memory gap: Segment Mappings?!
-------------- ------------ -----------
mem_hw: = 805306368 ( 768MB) Total real memory installed

mem_used: 52391936 ( 49MB) [ 6%] Logically used memory
mem_avail: + 752914432 ( 718MB) [ 93%] Logically available memory
-------------- ------------ ----------- ------
mem_total: = 805306368 ( 768MB) [100%] Logically total memory

Last edited by unixdude; 18th November 2008 at 09:14 AM.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
chroot jail FreeBSD "su: who are you?" Dr_Death_UAE FreeBSD Security 0 27th May 2009 07:51 AM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM
Scripted sysinstall fails with "Command 'system' failed" PeterSteele FreeBSD Installation and Upgrading 0 13th November 2008 11:31 PM
FreeBSD and freeze sur "select country" mjj FreeBSD Installation and Upgrading 7 18th June 2008 02:16 AM

All times are GMT. The time now is 08:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick