แค่เว็บๆหนึ่ง ! ที่อยากเก็บประสบการณ์
Home
 

ใช้ Command Free บน FreeBSD

บน Linux  คำสั่ง Free จะติดมากับ OS 
วันนี้ อยากดู บน FreeBSD บ้างเลย ลองค้นดู…

เจอ  files ที่ http://www.cyberciti.biz/faq

ก่อนอื่นให้ ดาวโหลดไฟล์มาก่อน
server# fetch http://www.cyberciti.biz/files/scripts/freebsd-memory.pl.txt
server# mv freebsd-memory.pl.txt /usr/local/bin/free
server# chmod +x /usr/local/bin/freeserver
server# rehash
จากนั้นลองเรียกใช้งานดู
server#free

อ่ะแน่… ใช้ได้จิงๆๆ
server# free

SYSTEM MEMORY INFORMATION:
mem_wire:         131362816 (    125MB) [  6%] Wired: disabled for paging out
mem_active:  +     83398656 (     79MB) [  3%] Active: recently referenced
mem_inactive:+    306360320 (    292MB) [ 14%] Inactive: recently not referenced
mem_cache:   +       241664 (      0MB) [  0%] Cached: almost avail. for allocation
mem_free:    +   1573793792 (   1500MB) [ 75%] Free: fully available for allocation
mem_gap_vm:  +       856064 (      0MB) [  0%] Memory gap: UNKNOWN
————– ———— ———– ——
mem_all:     =   2096013312 (   1998MB) [100%] Total real memory managed
mem_gap_sys: +     38072320 (     36MB)        Memory gap: Kernel?!
————– ———— ———–
mem_phys:    =   2134085632 (   2035MB)        Total real memory available
mem_gap_hw:  +     13398016 (     12MB)        Memory gap: Segment Mappings?!
————– ———— ———–
mem_hw:      =   2147483648 (   2048MB)        Total real memory installed

SYSTEM MEMORY SUMMARY:
mem_used:         267087872 (    254MB) [ 12%] Logically used memory
mem_avail:   +   1880395776 (   1793MB) [ 87%] Logically available memory
————– ———— ———– ——
mem_total:   =   2147483648 (   2048MB) [100%] Logically total memory
ที่มา http://www.cyberciti.biz

Off 

February 25, 2012 This post was written by Categories: เรื่องเล่ารายวัน No comments yet


Top