From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756558AbbHZGMp (ORCPT ); Wed, 26 Aug 2015 02:12:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:46335 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756292AbbHZGMm (ORCPT ); Wed, 26 Aug 2015 02:12:42 -0400 Subject: Re: [PATCH] Memory hot added,The memory can not been added to movable zone To: Changsheng Liu , Yasuaki Ishimatsu , Andrew Morton References: <1439972306-50845-1-git-send-email-liuchangsheng@inspur.com> <20150819165029.665b89d7ab3228185460172c@linux-foundation.org> <55D57071.1080901@inspur.com> <55db6d6d.82d1370a.dd0ff.6055@mx.google.com> <55DC4294.2020407@inspur.com> <55DC4DC3.30509@suse.cz> <55DD0A1B.4090700@inspur.com> Cc: isimatu.yasuaki@jp.fujitsu.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, yanxiaofeng@inspur.com, Changsheng Liu From: Vlastimil Babka Message-ID: <55DD58D8.1090508@suse.cz> Date: Wed, 26 Aug 2015 08:12:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55DD0A1B.4090700@inspur.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.8.2015 2:36, Changsheng Liu wrote: > > > 在 2015/8/25 19:13, Vlastimil Babka 写道: >> On 08/25/2015 12:25 PM, Changsheng Liu wrote: >>> Thanks very much for your review, I can move the memory from normal zone >>> to movable zone succesfully. >>> And thank you for let me understand the memory mechanism better. >>> 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道: >> >> So you agree to drop the patch from -mm? > The system add memory to normal zone defaultly so that it can be > used by kernel and then we can not move the memory to movable zone. > The patch can add the memory to movable zone directlly. I thought that you confirmed that the following works? echo online_movable > /sys/devices/system/memory/memoryXXX/state If you want it to be the default, there's the node_movable kernel boot option. Does it work for you?