From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx186.postini.com [74.125.245.186]) by kanga.kvack.org (Postfix) with SMTP id EF1906B004D for ; Fri, 30 Dec 2011 05:14:23 -0500 (EST) Received: by yhgm50 with SMTP id m50so7974685yhg.14 for ; Fri, 30 Dec 2011 02:14:22 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4EFD8832.6010905@tao.ma> References: <1325226961-4271-1-git-send-email-tm@tao.ma> <4EFD7AE3.8020403@tao.ma> <4EFD8832.6010905@tao.ma> From: KOSAKI Motohiro Date: Fri, 30 Dec 2011 05:14:01 -0500 Message-ID: Subject: Re: [PATCH] mm: do not drain pagevecs for mlock Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Tao Ma Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Rientjes , Minchan Kim , Mel Gorman , Johannes Weiner , Andrew Morton One more thing. >> Because your test program is too artificial. 20sec/100000times = >> 200usec. And your >> program repeat mlock and munlock the exact same address. so, yes, if >> lru_add_drain_all() is removed, it become near no-op. but it's >> worthless comparision. >> none of any practical program does such strange mlock usage. > yes, I should say it is artificial. But mlock did cause the problem in > our product system and perf shows that the mlock uses the system time > much more than others. That's the reason we created this program to test > whether mlock really sucks. And we compared the result with > rhel5(2.6.18) which runs much much faster. rhel5 is faster because it doesn't have proper mlock implementation. then it has a lot of mlock related performance issue. We optimized PAGE_MLOCK thing for typical workload. number of mlock call are rare and number of memory reclaim are a lot. That's the reason why we haven't got any complication of mlock thing. -- 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 internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org