Thread (22 messages) 22 messages, 4 authors, 2011-02-16

Re: [PATCH 3/3] Provide control over unmapped pages (v4)

From: Balbir Singh <hidden>
Date: 2011-01-28 12:02:53
Also in: kvm, lkml

* KAMEZAWA Hiroyuki [off-list ref] [2011-01-28 17:17:44]:
On Fri, 28 Jan 2011 13:49:28 +0530
Balbir Singh [off-list ref] wrote:
quoted
* KAMEZAWA Hiroyuki [off-list ref] [2011-01-28 16:56:05]:
quoted
quoted
BTW, it seems this doesn't work when some apps use huge shmem.
How to handle the issue ?
Could you elaborate further? 
==
static inline unsigned long zone_unmapped_file_pages(struct zone *zone)
{
        unsigned long file_mapped = zone_page_state(zone, NR_FILE_MAPPED);
        unsigned long file_lru = zone_page_state(zone, NR_INACTIVE_FILE) +
                zone_page_state(zone, NR_ACTIVE_FILE);

        /*
         * It's possible for there to be more file mapped pages than
         * accounted for by the pages on the file LRU lists because
         * tmpfs pages accounted for as ANON can also be FILE_MAPPED
         */
        return (file_lru > file_mapped) ? (file_lru - file_mapped) : 0;
}
Yes, I did :) The word huge confused me. I am not sure if there is an
easy accounting fix for this one, though given the approximate nature
of the control, I am not sure it would matter very much. But you do
have a very good point.

-- 
	Three Cheers,
	Balbir

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help