Re: [PATCH] Fix ext2 and ext4 buffer-head accounting.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 27 Oct 2010 10:16:37 -0700
Ying Han <yinghan@xxxxxxxxxx> wrote:

> Pages pinned to block group_descriptors in the super_block are non-reclaimable.
> Those pages are showed up as file-backed in meminfo which confuse user program
> issuing too many drop_caches/ttfp when this memory will never be freed.
> 
> The change has us not account for the file system descriptors by taking the pages
> off LRU and decrementing the NR_FILE_PAGES counter. The pages are putting back when
> the filesystem is being unmounted.

Well, it's not just ext2 and ext4.

Is this the simplest way of solving the problem?  This is just pinned
pagecache.  We already have way of handling pinned pagecache (eg,
mlocked pages).  Can we reuse those mechanisms, perhaps after suitable
generalisation?



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]