Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933087AbbFJDKb (ORCPT ); Tue, 9 Jun 2015 23:10:31 -0400 Received: from mgwym01.jp.fujitsu.com ([211.128.242.40]:14076 "EHLO mgwym01.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932760AbbFJDK0 (ORCPT ); Tue, 9 Jun 2015 23:10:26 -0400 X-SecurityPolicyCheck: OK by SHieldMailChecker v2.3.2 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20150223 X-SHieldMailCheckerMailID: c7aece74fe6249bca884de024ed6d153 Message-ID: <5577AA87.3080607@jp.fujitsu.com> Date: Wed, 10 Jun 2015 12:09:59 +0900 From: Kamezawa Hiroyuki User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Xishi Qiu CC: Andrew Morton , nao.horiguchi@gmail.com, Yinghai Lu , "H. Peter Anvin" , Thomas Gleixner , mingo@elte.hu, Xiexiuqi , Hanjun Guo , "Luck, Tony" , Linux MM , LKML Subject: Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory References: <55704A7E.5030507@huawei.com> <55704C79.5060608@huawei.com> <55769058.3030406@jp.fujitsu.com> <5576BB3C.50100@huawei.com> In-Reply-To: <5576BB3C.50100@huawei.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 38 On 2015/06/09 19:09, Xishi Qiu wrote: > On 2015/6/9 15:06, Kamezawa Hiroyuki wrote: > >> On 2015/06/04 22:02, Xishi Qiu wrote: >>> Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means >>> we should allocate mirrored memory for both user and kernel processes. >>> >>> Signed-off-by: Xishi Qiu >> >> I can't see why do we need this switch. If this is set, all GFP_HIGHUSER will use >> mirrored memory ? >> >> Or will you add special MMAP/madvise flag to use mirrored memory ? >> > > Hi Kame, > > Yes, > > MMAP/madvise > -> add VM_MIRROR > -> add GFP_MIRROR > -> use MIGRATE_MIRROR list to alloc mirrored pages > > So user can use mirrored memory. What do you think? > I see. please explain it (your final plan) in patch description or in cover page of patches. Thanks, -Kame -- 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/