Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! bababobo's Avatar
    Join Date
    May 2008
    Location
    Bangkok, Thailand
    Posts
    6

    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!

  2. #2
    Just Joined! bababobo's Avatar
    Join Date
    May 2008
    Location
    Bangkok, Thailand
    Posts
    6
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •