On 16.01.2014 18:27, Jaromir Capik wrote: > Hello Jakob. > >> For some reason, the kernel accounts tmpfs memory into both the page >> cache and shared memory ( >> http://lxr.free-electrons.com/source/mm/shmem.c#L301 , at least since >> kernel 3.0 ). The tools just pass it on, so what top and free report as >> "cached" is actually the sum of page cache and tmpfs. > > Thank you for digging into the tmpfs stuff. > The code is intended for use with 2.6.x and 3.x series kernel > and your patch does the subtraction unconditionally. > It would be better to do some research first so that we could > cover all supported kernel versions and not just the 3.x and later. > > Are you able and willing to find the exact kernel version that > brings the change and document that? True, I only traced it to 3.0 - I'll take a look at 2.6 next week. Best regards, Jakob