Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754410Ab0KWX6A (ORCPT ); Tue, 23 Nov 2010 18:58:00 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:49421 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754086Ab0KWX57 (ORCPT ); Tue, 23 Nov 2010 18:57:59 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Michel Lespinasse Subject: Re: [RFC] mlock: release mmap_sem every 256 faulted pages Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Nick Piggin , Rik van Riel In-Reply-To: References: <20101122215746.e847742d.akpm@linux-foundation.org> Message-Id: <20101124085451.7BE5.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Wed, 24 Nov 2010 08:57:56 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1045 Lines: 25 > > A more compelling description of why this problem needs addressing > > would help things along. > > Oh my. It's probably not too useful for desktops, where such large > mlocks are hopefully uncommon. > > At google we have many applications that serve data from memory and > don't want to allow for disk latencies. Some of the simpler ones use > mlock (though there are other ways - anon memory running with swap > disabled is a surprisingly popular choice). > > Kosaki is also showing interest in mlock, though I'm not sure what his > use case is. I don't have any solid use case. Usually server app only do mlock anonymous memory. But, I haven't found any negative effect in your proposal, therefore I hope to help your effort as I always do when the proposal don't have negative impact. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/