From: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
To: Sheng Yong <shengyong1@huawei.com>
Cc: "akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"nfont@austin.ibm.com" <nfont@austin.ibm.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"zhenzhang.zhang@huawei.com" <zhenzhang.zhang@huawei.com>,
Dave Hansen <dave.hansen@intel.com>,
David Rientjes <rientjes@google.com>
Subject: Re: [RFC PATCH 1/2] mem-hotplug: introduce sysfs `range' attribute
Date: Mon, 2 Mar 2015 09:17:14 +0000 [thread overview]
Message-ID: <20150302091714.GA32186@hori1.linux.bs1.fc.nec.co.jp> (raw)
In-Reply-To: <1425269100-15842-1-git-send-email-shengyong1@huawei.com>
# Cced some people maybe interested in this topic.
On Mon, Mar 02, 2015 at 04:04:59AM +0000, Sheng Yong wrote:
> There may be memory holes in a memory section, and because of that we can
> not know the real size of the section. In order to know the physical memory
> area used int one memory section, we walks through iomem resources and
> report the memory range in /sys/devices/system/memory/memoryX/range, like,
>
> root@ivybridge:~# cat /sys/devices/system/memory/memory0/range
> 00001000-0008efff
> 00090000-0009ffff
> 00100000-07ffffff
>
> Signed-off-by: Sheng Yong <shengyong1@huawei.com>
About a year ago, there was a similar request/suggestion from a library
developer about exporting valid physical address range
(http://thread.gmane.org/gmane.linux.kernel.mm/115600).
Then, we tried some but didn't make it.
So if you try to solve this, please consider some points from that discussion:
- interface name: just 'range' might not be friendly, if the interface returns
physicall address range, something like 'phys_addr_range' looks better.
- prefix '0x': if you display the value range in hex, prefixing '0x' might
be better to avoid letting every parser to add it in itself.
- supporting node range: your patch is now just for memory block interface, but
someone (like me) are interested in exporting easy "phys_addr <=> node number"
mapping, so if your approach is easily extensible to node interface, it would
be very nice to include node interface support too.
Thanks,
Naoya Horiguchi
--
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:[~2015-03-02 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 4:04 Sheng Yong
2015-03-02 4:05 ` [RFC PATCH 2/2] mem-hotplug: add description of " Sheng Yong
2015-03-02 9:17 ` Naoya Horiguchi [this message]
2015-03-02 12:29 ` [RFC PATCH 1/2] mem-hotplug: introduce " shengyong
2015-03-07 4:26 ` shengyong
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=20150302091714.GA32186@hori1.linux.bs1.fc.nec.co.jp \
--to=n-horiguchi@ah.jp.nec.com \
--cc=akpm@linux-foundation.org \
--cc=dave.hansen@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-mm@kvack.org \
--cc=nfont@austin.ibm.com \
--cc=rientjes@google.com \
--cc=shengyong1@huawei.com \
--cc=zhenzhang.zhang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox