Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934816Ab3E1QT3 (ORCPT ); Tue, 28 May 2013 12:19:29 -0400 Received: from a9-58.smtp-out.amazonses.com ([54.240.9.58]:47837 "EHLO a9-58.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934660Ab3E1QT1 (ORCPT ); Tue, 28 May 2013 12:19:27 -0400 Date: Tue, 28 May 2013 16:19:25 +0000 From: Christoph Lameter X-X-Sender: cl@gentwo.org To: KOSAKI Motohiro cc: Peter Zijlstra , Al Viro , Vince Weaver , LKML , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , trinity@vger.kernel.org, Andrew Morton , Linus Torvalds , Roland Dreier , infinipath@qlogic.com, "linux-mm@kvack.org" , linux-rdma@vger.kernel.org, Or Gerlitz Subject: Re: [RFC][PATCH] mm: Fix RLIMIT_MEMLOCK In-Reply-To: Message-ID: <0000013eebefddd4-ace0f251-cfba-41cf-b48e-266cb13bcebd-000000@email.amazonses.com> References: <20130523044803.GA25399@ZenIV.linux.org.uk> <20130523104154.GA23650@twins.programming.kicks-ass.net> <0000013ed1b8d0cc-ad2bb878-51bd-430c-8159-629b23ed1b44-000000@email.amazonses.com> <20130523152458.GD23650@twins.programming.kicks-ass.net> <0000013ed2297ba8-467d474a-7068-45b3-9fa3-82641e6aa363-000000@email.amazonses.com> <20130523163901.GG23650@twins.programming.kicks-ass.net> <0000013ed28b638a-066d7dc7-b590-49f8-9423-badb9537b8b6-000000@email.amazonses.com> <20130524140114.GK23650@twins.programming.kicks-ass.net> <0000013ed732b615-748f574f-ccb8-4de7-bbe4-d85d1cbf0c9d-000000@email.amazonses.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SES-Outgoing: 2013.05.28-54.240.9.58 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 19 On Sat, 25 May 2013, KOSAKI Motohiro wrote: > If pinned and mlocked are totally difference intentionally, why IB uses > RLIMIT_MEMLOCK. Why don't IB uses IB specific limit and why only IB raise up > number of pinned pages and other gup users don't. > I can't guess IB folk's intent. True another limit would be better. The reason that IB raises the pinned pages is because IB permanently pins those pages. Other users of gup do that temporarily. If there are other users that pin pages permanently should also account for it. -- 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/