From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx184.postini.com [74.125.245.184]) by kanga.kvack.org (Postfix) with SMTP id 0F1DB6B0002 for ; Thu, 31 Jan 2013 03:23:12 -0500 (EST) Received: by mail-pa0-f49.google.com with SMTP id bi1so1617182pad.36 for ; Thu, 31 Jan 2013 00:23:12 -0800 (PST) Message-ID: <1359620590.1391.5.camel@kernel> Subject: Support variable-sized huge pages From: Ric Mason Date: Thu, 31 Jan 2013 02:23:10 -0600 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Andi Kleen , Hillf Danton Hi all, It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. Where is 1GB huge pages? Regards, Ric -- 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/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx134.postini.com [74.125.245.134]) by kanga.kvack.org (Postfix) with SMTP id DF27C6B0007 for ; Thu, 31 Jan 2013 03:58:03 -0500 (EST) Message-ID: <510A31F7.8030005@huawei.com> Date: Thu, 31 Jan 2013 16:57:27 +0800 From: Jianguo Wu MIME-Version: 1.0 Subject: Re: Support variable-sized huge pages References: <1359620590.1391.5.camel@kernel> In-Reply-To: <1359620590.1391.5.camel@kernel> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Ric Mason Cc: linux-mm@kvack.org, Andi Kleen , Hillf Danton On 2013/1/31 16:23, Ric Mason wrote: > Hi all, > > It seems that Andi's "Support more pagesizes for > MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the > patch, x86 will support 2MB and 1GB huge pages. But I just see > hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. > Where is 1GB huge pages? Hi Ric, By default only has 2M huge pages, you can specify "hugepagesz=1G hugepages=xx" in boot option, then you can see: /sys/kernel/mm/hugepages/hugepages-1048576kB. Thanks, Jianguo Wu > > Regards, > Ric > > -- > 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/ . > Don't email: email@kvack.org > > -- 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/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx123.postini.com [74.125.245.123]) by kanga.kvack.org (Postfix) with SMTP id 909DB6B0008 for ; Thu, 31 Jan 2013 05:52:29 -0500 (EST) Date: Thu, 31 Jan 2013 11:52:27 +0100 From: Andi Kleen Subject: Re: Support variable-sized huge pages Message-ID: <20130131105227.GI30577@one.firstfloor.org> References: <1359620590.1391.5.camel@kernel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1359620590.1391.5.camel@kernel> Sender: owner-linux-mm@kvack.org List-ID: To: Ric Mason Cc: linux-mm@kvack.org, Andi Kleen , Hillf Danton On Thu, Jan 31, 2013 at 02:23:10AM -0600, Ric Mason wrote: > Hi all, > > It seems that Andi's "Support more pagesizes for > MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the > patch, x86 will support 2MB and 1GB huge pages. But I just see > hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. > Where is 1GB huge pages? 1GB pages are only supported under 64bit kernels, and also only if you allocate them explicitely with boot options. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx161.postini.com [74.125.245.161]) by kanga.kvack.org (Postfix) with SMTP id CF8686B00E4 for ; Tue, 5 Feb 2013 00:48:47 -0500 (EST) Received: by mail-ie0-f182.google.com with SMTP id k14so6842944iea.27 for ; Mon, 04 Feb 2013 21:48:47 -0800 (PST) Message-ID: <1360043326.2403.2.camel@kernel.cn.ibm.com> Subject: Re: Support variable-sized huge pages From: Ric Mason Date: Mon, 04 Feb 2013 23:48:46 -0600 In-Reply-To: <20130131105227.GI30577@one.firstfloor.org> References: <1359620590.1391.5.camel@kernel> <20130131105227.GI30577@one.firstfloor.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andi Kleen Cc: linux-mm@kvack.org, Hillf Danton Hi Andi, On Thu, 2013-01-31 at 11:52 +0100, Andi Kleen wrote: > On Thu, Jan 31, 2013 at 02:23:10AM -0600, Ric Mason wrote: > > Hi all, > > > > It seems that Andi's "Support more pagesizes for > > MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the > > patch, x86 will support 2MB and 1GB huge pages. But I just see > > hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. > > Where is 1GB huge pages? > > 1GB pages are only supported under 64bit kernels, and also > only if you allocate them explicitely with boot options. I am curious about how can buddy system alloc 1GB huge pages? the most order buddy system supports is 10. Could you explain to me? > > -Andi -- 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/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx182.postini.com [74.125.245.182]) by kanga.kvack.org (Postfix) with SMTP id 3FF596B0011 for ; Tue, 5 Feb 2013 04:51:35 -0500 (EST) Date: Tue, 5 Feb 2013 10:51:32 +0100 From: Michal Hocko Subject: Re: Support variable-sized huge pages Message-ID: <20130205095120.GA22808@dhcp22.suse.cz> References: <1359620590.1391.5.camel@kernel> <20130131105227.GI30577@one.firstfloor.org> <1360043326.2403.2.camel@kernel.cn.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1360043326.2403.2.camel@kernel.cn.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Ric Mason Cc: Andi Kleen , linux-mm@kvack.org, Hillf Danton On Mon 04-02-13 23:48:46, Ric Mason wrote: > Hi Andi, > On Thu, 2013-01-31 at 11:52 +0100, Andi Kleen wrote: > > On Thu, Jan 31, 2013 at 02:23:10AM -0600, Ric Mason wrote: > > > Hi all, > > > > > > It seems that Andi's "Support more pagesizes for > > > MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the > > > patch, x86 will support 2MB and 1GB huge pages. But I just see > > > hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. > > > Where is 1GB huge pages? > > > > 1GB pages are only supported under 64bit kernels, and also > > only if you allocate them explicitely with boot options. > > I am curious about how can buddy system alloc 1GB huge pages? the most > order buddy system supports is 10. Could you explain to me? Have a look at setup_hugepagesz & hugetlb_nrpages_setup (in x86 arch code). A short answer is. Bootmem is used for allocation > MAX_ORDER. -- Michal Hocko SUSE Labs -- 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/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx194.postini.com [74.125.245.194]) by kanga.kvack.org (Postfix) with SMTP id 299F86B0002 for ; Tue, 5 Feb 2013 09:08:55 -0500 (EST) Date: Tue, 5 Feb 2013 15:08:52 +0100 From: Andi Kleen Subject: Re: Support variable-sized huge pages Message-ID: <20130205140852.GU30577@one.firstfloor.org> References: <1359620590.1391.5.camel@kernel> <20130131105227.GI30577@one.firstfloor.org> <1360043326.2403.2.camel@kernel.cn.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1360043326.2403.2.camel@kernel.cn.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Ric Mason Cc: Andi Kleen , linux-mm@kvack.org, Hillf Danton On Mon, Feb 04, 2013 at 11:48:46PM -0600, Ric Mason wrote: > Hi Andi, > On Thu, 2013-01-31 at 11:52 +0100, Andi Kleen wrote: > > On Thu, Jan 31, 2013 at 02:23:10AM -0600, Ric Mason wrote: > > > Hi all, > > > > > > It seems that Andi's "Support more pagesizes for > > > MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the > > > patch, x86 will support 2MB and 1GB huge pages. But I just see > > > hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. > > > Where is 1GB huge pages? > > > > 1GB pages are only supported under 64bit kernels, and also > > only if you allocate them explicitely with boot options. > > I am curious about how can buddy system alloc 1GB huge pages? the most > order buddy system supports is 10. Could you explain to me? It can't, that is why you can only allocate them at boot time. -Andi -- 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/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx136.postini.com [74.125.245.136]) by kanga.kvack.org (Postfix) with SMTP id BA95A6B0005 for ; Sun, 24 Feb 2013 02:00:25 -0500 (EST) Received: by mail-pb0-f43.google.com with SMTP id md12so1148540pbc.16 for ; Sat, 23 Feb 2013 23:00:24 -0800 (PST) Message-ID: <5129BA82.5070907@gmail.com> Date: Sun, 24 Feb 2013 15:00:18 +0800 From: Ric Mason MIME-Version: 1.0 Subject: Re: Support variable-sized huge pages References: <1359620590.1391.5.camel@kernel> <20130131105227.GI30577@one.firstfloor.org> In-Reply-To: <20130131105227.GI30577@one.firstfloor.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andi Kleen Cc: linux-mm@kvack.org, Hillf Danton On 01/31/2013 06:52 PM, Andi Kleen wrote: > On Thu, Jan 31, 2013 at 02:23:10AM -0600, Ric Mason wrote: >> Hi all, >> >> It seems that Andi's "Support more pagesizes for >> MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the >> patch, x86 will support 2MB and 1GB huge pages. But I just see >> hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. >> Where is 1GB huge pages? > 1GB pages are only supported under 64bit kernels, and also > only if you allocate them explicitely with boot options. It seem that before your patch, we also can set mutiple hugepagesz, but hugetlbfs just mount default size, correct? IIUC, how can different size huge pages be used? If set mutiple hugepagesz, which one is default size? > > -Andi -- 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/ . Don't email: email@kvack.org