From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756576AbbHZHxS (ORCPT ); Wed, 26 Aug 2015 03:53:18 -0400 Received: from bgp253.corp-email.cn ([112.65.243.253]:3675 "EHLO bgp253.corp-email.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbbHZHxR (ORCPT ); Wed, 26 Aug 2015 03:53:17 -0400 Subject: Re: [PATCH] Memory hot added,The memory can not been added to movable zone To: Vlastimil Babka , 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> <55DD58D8.1090508@suse.cz> CC: , , , , Changsheng Liu From: Changsheng Liu Message-ID: <55DD705F.7000308@inspur.com> Date: Wed, 26 Aug 2015 15:53:03 +0800 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: <55DD58D8.1090508@suse.cz> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.165.23.10] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2015/8/26 14:12, Vlastimil Babka 写道: > 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? > . It does not work when memory is hot added. >