From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933032AbbCDRWJ (ORCPT ); Wed, 4 Mar 2015 12:22:09 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:33638 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932976AbbCDRWH (ORCPT ); Wed, 4 Mar 2015 12:22:07 -0500 Message-ID: <54F73F1C.4050601@oracle.com> Date: Wed, 04 Mar 2015 09:21:32 -0800 From: Mike Kravetz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: David Rientjes CC: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Davidlohr Bueso , Aneesh Kumar , Joonsoo Kim Subject: Re: [PATCH 0/4] hugetlbfs: optionally reserve all fs pages at mount time References: <1425432106-17214-1-git-send-email-mike.kravetz@oracle.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/03/2015 09:49 PM, David Rientjes wrote: > On Tue, 3 Mar 2015, Mike Kravetz wrote: >> Add a new hugetlbfs mount option 'reserved' to specify that the number >> of pages associated with the size of the filesystem will be reserved. If >> there are insufficient pages, the mount will fail. The reservation is >> maintained for the duration of the filesystem so that as pages are >> allocated and free'ed a sufficient number of pages remains reserved. >> > > This functionality is somewhat limited because it's not possible to > reserve a subset of the size for a single mount point, it's either all or > nothing. It shouldn't be too difficult to just add a reserved= > option where is <= size. If it's done that way, you should be > able to omit size= entirely for unlimited hugepages but always ensure that > a low watermark of hugepages are reserved for the database. Thanks, I like that suggestion. You are correct in that it should not be too difficult to pass in a size for reserved. I'll work on the modification. -- Mike Kravetz