[Bug 405246] Free memory reported by free, vmstat and top is wrong.
http://bugzilla.novell.com/show_bug.cgi?id=405246
User bart.vanassche@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=405246#c12
--- Comment #12 from Bart Van Assche
By the way, 'cached' isn't always reclaimable. mmap()'d memory which is mlock()ed will be listed there, but isn't reclaimable, as are ramfs contents, dentries and inodes. Memory under writeback is 'cached', but not freeable. The dentry for '/' is under SReclaimable, but it isn't reclaimable.
Regarding mlock()ed memory: it is easy to modify the patch I posted such that it takes the amount of mlocked memory into account -- there is a separate field called "Mlocked:" in /proc/meminfo. I know that memory under writeback is not freeable immediately. But it can be freed after the data has been written back. You claim that dentries and inodes are not reclaimable. Does that mean that the following comment from linux-2.6.29.1/mm/nommu.c is wrong ? /* * Any slabs which are created with the * SLAB_RECLAIM_ACCOUNT flag claim to have contents * which are reclaimable, under pressure. The dentry * cache and most inode caches should fall into this */ Regarding the dentry for the root node: sorry, but I consider this as an exception. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com