Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755962AbbFORUq (ORCPT ); Mon, 15 Jun 2015 13:20:46 -0400 Received: from mga11.intel.com ([192.55.52.93]:9669 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755816AbbFORUi (ORCPT ); Mon, 15 Jun 2015 13:20:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,620,1427785200"; d="scan'208";a="747079107" Date: Mon, 15 Jun 2015 10:20:25 -0700 From: "Luck, Tony" To: Kamezawa Hiroyuki Cc: Xishi Qiu , Andrew Morton , "nao.horiguchi@gmail.com" , Yinghai Lu , "H. Peter Anvin" , Thomas Gleixner , "mingo@elte.hu" , Xiexiuqi , Hanjun Guo , Linux MM , LKML Subject: Re: [RFC PATCH 10/12] mm: add the buddy system interface Message-ID: <20150615172023.GA12088@agluck-desk.sc.intel.com> References: <55704A7E.5030507@huawei.com> <55704CC4.8040707@huawei.com> <557691E0.5020203@jp.fujitsu.com> <5576BA2B.6060907@huawei.com> <5577A9A9.7010108@jp.fujitsu.com> <3908561D78D1C84285E8C5FCA982C28F32A8F209@ORSMSX114.amr.corp.intel.com> <557E911F.5040602@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <557E911F.5040602@jp.fujitsu.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 34 On Mon, Jun 15, 2015 at 05:47:27PM +0900, Kamezawa Hiroyuki wrote: > So, there are 3 ideas. > > (1) kernel only from MIRROR / user only from MOVABLE (Tony) > (2) kernel only from MIRROR / user from MOVABLE + MIRROR(ASAP) (AKPM suggested) > This makes use of the fact MOVABLE memory is reclaimable but Tony pointed out > the memory reclaim can be critical for GFP_ATOMIC. > (3) kernel only from MIRROR / user from MOVABLE, special user from MIRROR (Xishi) > > 2 Implementation ideas. > - creating ZONE > - creating new alloation attribute > > I don't convince whether we need some new structure in mm. Isn't it good to use > ZONE_MOVABLE for not-mirrored memory ? > Then, disable fallback from ZONE_MOVABLE -> ZONE_NORMAL for (1) and (3) We might need to rename it ... right now the memory hotplug people use ZONE_MOVABLE to indicate regions of physical memory that can be removed from the system. I'm wondering whether people will want systems that have both removable and mirrored areas? Then we have four attribute combinations: mirror=no removable=no - prefer to use for user, could use for kernel if we run out of mirror mirror=no removable=yes - can only be used for user (kernel allocation makes it not-removable) mirror=yes removable=no - use for kernel, possibly for special users if we define some interface mirror=yes removable=yes - must not use for kernel ... would have to give to user ... seems like a bad idea to configure a system this way -Tony -- 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/