Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Free , memory usage

Altera_Forum
Honored Contributor II
1,367 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
432 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
432 Views

Dear hippo, 

Thank you very much for giving me a method! 

Best Regards! 

Fei WU
0 Kudos
Reply