Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I run a small linux embedded system (2.6.29.6). Kernel loads from Flash into ramdisk (tmpfs). I need to find more ram.

From /proc/meminfo I see I have a 'Cached:' using a lot of memory. My understanding is this is the disk cache. However, I don't have a traditional hard disk. I have a ram disk. So I think, for my situation, this cache is just eating up my valuable memory.

Is there a way to reduce the size of this cache?

thanks in advance!

LB

share|improve this question

closed as off topic by gspr, SWeko, JE SUIS CHARLIE, X.L.Ant, Rikesh Feb 14 '13 at 9:48

Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Linux shows the memory used by the tmpfs contents as 'cached'. So it will a lot of memory if you have a lot of tmpfs data.

Also if you have loaded anything (maybe the data stored to tmpfs later) from any other medium it could got into the 'cached' pool too. But that is no need to worry – that memory will be freed when needed for anything else.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a>                   with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.1.30.2259\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Stack Overflow works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </nos"], "copyright__copyright__copyright": ["se edit the question.\n\n1 Answer 1\n\nLinux shows the memory used by the tmpfs contents as 'cached'. So it will a lot of memory if you have a lot of tmpfs data.\n\nAlso if you have loaded anything (maybe the data stored to tmpfs later) from any other medium it could got into the 'cached' pool too. But that is no need to worry \u2013 that memory will be freed when needed for anything else.\n\nshare|improve this answer\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}