From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by kanga.kvack.org (Postfix) with ESMTP id DD7796B0032 for ; Tue, 9 Jun 2015 23:10:27 -0400 (EDT) Received: by pdbki1 with SMTP id ki1so27540256pdb.1 for ; Tue, 09 Jun 2015 20:10:27 -0700 (PDT) Received: from mgwym01.jp.fujitsu.com (mgwym01.jp.fujitsu.com. [211.128.242.40]) by mx.google.com with ESMTPS id w16si808435pbt.253.2015.06.09.20.10.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 20:10:27 -0700 (PDT) Received: from m3050.s.css.fujitsu.com (msm.b.css.fujitsu.com [10.134.21.208]) by yt-mxq.gw.nic.fujitsu.com (Postfix) with ESMTP id 407F0AC04A9 for ; Wed, 10 Jun 2015 12:10:23 +0900 (JST) Message-ID: <5577AA87.3080607@jp.fujitsu.com> Date: Wed, 10 Jun 2015 12:09:59 +0900 From: Kamezawa Hiroyuki MIME-Version: 1.0 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 Sender: owner-linux-mm@kvack.org List-ID: 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 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, 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: (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 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