Results 1 to 2 of 2
I am new to Linux Mem management, and learning...
Normally when a new page is added to radix tree, address_space nrpages is incremented by 1 as well as the global ...
- 06-14-2008 #1
why sum(bdev->bd_inode->i_mapping->nrpages) is not nr_pagecache?
I am new to Linux Mem management, and learning...
Normally when a new page is added to radix tree, address_space nrpages is incremented by 1 as well as the global variable nr_pagecache. Same when a page is removed from the tree.
Then I do not understand why then sum(nr_pages) is much smaller (10 to 20MB) than nr_pagecache (can be x00MB)... I got those numbers from statistics reported in /proc/meminfo,
Can you hint me how to find answer?
Thanks!
- 06-15-2008 #2
I found the answer: meminfo buffers corresponds to pages for block device file system.
On the other hand, nr_pagecache refers to all files. It includes pages for block device, swap disk and regular file file cache.


Reply With Quote
