|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
"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.
http://www.cyberciti.biz/faq/freebsd...m-information/ Have fun! Here is what the output looks like on my computer running freeBSD-7.1 prelease using this perl script. [unixdude@ ~]$ free SYSTEM MEMORY INFORMATION: 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 SYSTEM MEMORY SUMMARY: 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. |
Tags |
commands |
Thread Tools | |
Display Modes | |
|
|
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 |