Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Free , memory usage

Dear everyone.

my platform is NIOS2+Uclinux2.6! and I hae a 16Mbytes SDRAM chip on board,

but when I use "free" command to dispaly the memeory status!, list information is diaolayed.

total used free shared buffers

mem 14616 8836 5780 0 0

total = used+free ,but not 16 Mbytes, I can't understand free command well.

who can tell me why?

Best Regards,

Fei WU

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by feiwu@Apr 12 2006, 11:03 AM

    dear everyone.

    my platform is nios2+uclinux2.6! and i hae a 16mbytes sdram chip on board,

    but when i use "free" command to dispaly the memeory status!, list information is diaolayed.

    total used free shared buffers

    mem 14616 8836 5780 0 0

    total = used+free ,but not 16 mbytes, i can't understand free command well.

    who can tell me why?

    best regards,

    fei wu

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14266)

    --- quote end ---

    --- Quote End ---

    # MemTotal: Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code)# MemFree: Is sum of LowFree+HighFree (overall stat)# MemShared: 0; is here for compat reasons but always zero.# Buffers: Memory in buffer cache. mostly useless as metric nowadays# Cached: Memory in the pagecache (diskcache) minus SwapCache

    read "man free" , "man proc" .

    try some search google, "/proc/meminfo", and you can learn more.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dear hippo,

    Thank you very much for giving me a method!

    Best Regards!

    Fei WU