<div dir="ltr">As by the time, I've learned that Linux works by caching apps by using a lot of RAM and then it reallocates the new stuff by cleaning the old cached pages from memory as compared to other OSs. With 2 gigs of RAM often I see the free memory only as 100-400MB. Using TOP or PS, it doesn't look like any program or process is using excessive memory (the highest process is seen with 1-2% total memory). <b>So, my questions are:</b><br>
<br> what programs are using that much of memory? (or cached memory) <br>Is that really due to a lot of cache in the memory<br><i><b>if yes, then, is there a way to parse the cache to findout what applications are eating up the cache?</b></i><br>
<i><b>how to free the cached memory?</b></i><br><br><br><br><u>Currently, here are the details:</u><br><br>Top two high mem processes only using 2.6% of RAM.<br><br><span style="font-family: courier new,monospace;">[root@Ether ~]# ps aux | sort -nrk4 | head -2</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">abbask    5922  0.0  1.4 364300 28312 ?        S    Aug19   0:00 /usr/bin/python -E /usr/bin/sealert -s</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ntop      4914  0.0  1.2 332752 24760 ?        Ssl  Aug19   0:00 ntop -d -L @/etc/ntop.conf</span><br>
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[root@Ether ~]# head -5 /proc/meminfo</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MemTotal:      1913856 kB</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MemFree:        500612 kB</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Buffers:        169720 kB</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Cached:         751000 kB</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SwapCached:          0 kB</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[root@Ether ~]# free -m</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">             total       used       free     shared    buffers     cached</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Mem:          1869       1380        488          0        165        733</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-/+ buffers/cache:        480       1388</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Swap:         1983          0       1983</span><br style="font-family: courier new,monospace;"><br><br><b style="color: rgb(0, 0, 153);">Total percentage memory for all the processes, being used is 15.5% only.<br>
<br><br></b><span style="color: rgb(0, 0, 153); font-family: courier new,monospace;"><span style="color: rgb(0, 0, 0);">[root@Ether ~]# ps aux | awk '{print $4}' | grep [0-9] | tr -s "\n" "+" |  awk '{print $1 0 }' | bc</span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">15.5</span></span><b style="color: rgb(0, 0, 153);"><br><br></b></div>