From: Zhang Zhen <zhenzhang.zhang@huawei.com>
To: Toshi Kani <toshi.kani@hp.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Dave Hansen <dave.hansen@intel.com>,
David Rientjes <rientjes@google.com>,
isimatu.yasuaki@jp.fujitsu.com, n-horiguchi@ah.jp.nec.com,
wangnan0@huawei.com, linux-kernel@vger.kernel.org,
Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH v2] memory-hotplug: add sysfs zones_online_to attribute
Date: Mon, 18 Aug 2014 11:25:36 +0800 [thread overview]
Message-ID: <53F17230.5020409@huawei.com> (raw)
In-Reply-To: <1408138647.26567.42.camel@misato.fc.hp.com>
On 2014/8/16 5:37, Toshi Kani wrote:
> On Wed, 2014-08-13 at 12:10 +0800, Zhang Zhen wrote:
>> Currently memory-hotplug has two limits:
>> 1. If the memory block is in ZONE_NORMAL, you can change it to
>> ZONE_MOVABLE, but this memory block must be adjacent to ZONE_MOVABLE.
>> 2. If the memory block is in ZONE_MOVABLE, you can change it to
>> ZONE_NORMAL, but this memory block must be adjacent to ZONE_NORMAL.
>>
>> With this patch, we can easy to know a memory block can be onlined to
>> which zone, and don't need to know the above two limits.
>>
>> Updated the related Documentation.
>>
>> Change v1 -> v2:
>> - optimize the implementation following Dave Hansen's suggestion
>>
>> Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
>> ---
>> Documentation/ABI/testing/sysfs-devices-memory | 8 ++++
>> Documentation/memory-hotplug.txt | 4 +-
>> drivers/base/memory.c | 62 ++++++++++++++++++++++++++
>> include/linux/memory_hotplug.h | 1 +
>> mm/memory_hotplug.c | 2 +-
>> 5 files changed, 75 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/ABI/testing/sysfs-devices-memory b/Documentation/ABI/testing/sysfs-devices-memory
>> index 7405de2..2b2a1d7 100644
>> --- a/Documentation/ABI/testing/sysfs-devices-memory
>> +++ b/Documentation/ABI/testing/sysfs-devices-memory
>> @@ -61,6 +61,14 @@ Users: hotplug memory remove tools
>> http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils
>>
>>
>> +What: /sys/devices/system/memory/memoryX/zones_online_to
>
> I think this name is a bit confusing. How about "valid_online_types"?
>
Thanks for your suggestion.
This patch has been added to -mm tree.
If most people think so, i would like to modify the interface name.
If not, let's leave it as it is.
Best regards!
> Thanks,
> -Toshi
>
>
>
> --
> 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
>
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Zhang Zhen <zhenzhang.zhang@huawei.com>
To: Toshi Kani <toshi.kani@hp.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Dave Hansen <dave.hansen@intel.com>,
David Rientjes <rientjes@google.com>,
<isimatu.yasuaki@jp.fujitsu.com>, <n-horiguchi@ah.jp.nec.com>,
<wangnan0@huawei.com>, <linux-kernel@vger.kernel.org>,
Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH v2] memory-hotplug: add sysfs zones_online_to attribute
Date: Mon, 18 Aug 2014 11:25:36 +0800 [thread overview]
Message-ID: <53F17230.5020409@huawei.com> (raw)
In-Reply-To: <1408138647.26567.42.camel@misato.fc.hp.com>
On 2014/8/16 5:37, Toshi Kani wrote:
> On Wed, 2014-08-13 at 12:10 +0800, Zhang Zhen wrote:
>> Currently memory-hotplug has two limits:
>> 1. If the memory block is in ZONE_NORMAL, you can change it to
>> ZONE_MOVABLE, but this memory block must be adjacent to ZONE_MOVABLE.
>> 2. If the memory block is in ZONE_MOVABLE, you can change it to
>> ZONE_NORMAL, but this memory block must be adjacent to ZONE_NORMAL.
>>
>> With this patch, we can easy to know a memory block can be onlined to
>> which zone, and don't need to know the above two limits.
>>
>> Updated the related Documentation.
>>
>> Change v1 -> v2:
>> - optimize the implementation following Dave Hansen's suggestion
>>
>> Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
>> ---
>> Documentation/ABI/testing/sysfs-devices-memory | 8 ++++
>> Documentation/memory-hotplug.txt | 4 +-
>> drivers/base/memory.c | 62 ++++++++++++++++++++++++++
>> include/linux/memory_hotplug.h | 1 +
>> mm/memory_hotplug.c | 2 +-
>> 5 files changed, 75 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/ABI/testing/sysfs-devices-memory b/Documentation/ABI/testing/sysfs-devices-memory
>> index 7405de2..2b2a1d7 100644
>> --- a/Documentation/ABI/testing/sysfs-devices-memory
>> +++ b/Documentation/ABI/testing/sysfs-devices-memory
>> @@ -61,6 +61,14 @@ Users: hotplug memory remove tools
>> http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils
>>
>>
>> +What: /sys/devices/system/memory/memoryX/zones_online_to
>
> I think this name is a bit confusing. How about "valid_online_types"?
>
Thanks for your suggestion.
This patch has been added to -mm tree.
If most people think so, i would like to modify the interface name.
If not, let's leave it as it is.
Best regards!
> Thanks,
> -Toshi
>
>
>
> --
> 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
>
next prev parent reply other threads:[~2014-08-18 3:27 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1407902811-4873-1-git-send-email-zhenzhang.zhang@huawei.com>
2014-08-13 4:10 ` [PATCH v2] memory-hotplug: add sysfs zones_online_to attribute Zhang Zhen
2014-08-13 4:10 ` Zhang Zhen
2014-08-15 21:37 ` Toshi Kani
2014-08-15 21:37 ` Toshi Kani
2014-08-18 3:25 ` Zhang Zhen [this message]
2014-08-18 3:25 ` Zhang Zhen
2014-08-18 6:20 ` Yasuaki Ishimatsu
2014-08-18 6:20 ` Yasuaki Ishimatsu
2014-08-22 22:16 ` Andrew Morton
2014-08-22 22:16 ` Andrew Morton
2014-08-22 22:21 ` Dave Hansen
2014-08-22 22:21 ` Dave Hansen
2014-08-25 1:55 ` Zhang Zhen
2014-08-25 1:55 ` Zhang Zhen
2014-08-25 13:58 ` Toshi Kani
2014-08-25 13:58 ` Toshi Kani
2014-08-18 6:11 ` Yasuaki Ishimatsu
2014-08-18 6:11 ` Yasuaki Ishimatsu
2014-08-19 7:35 ` Zhang Zhen
2014-08-19 7:35 ` Zhang Zhen
2014-08-19 10:42 ` Yasuaki Ishimatsu
2014-08-19 10:42 ` Yasuaki Ishimatsu
2014-08-18 21:48 ` David Rientjes
2014-08-18 21:48 ` David Rientjes
2014-08-19 1:43 ` Zhang Zhen
2014-08-19 1:43 ` Zhang Zhen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F17230.5020409@huawei.com \
--to=zhenzhang.zhang@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=dave.hansen@intel.com \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=rientjes@google.com \
--cc=toshi.kani@hp.com \
--cc=wangnan0@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.