Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2018-01-01 Thread Chao Fan
On Fri, Dec 29, 2017 at 01:23:05PM +0100, Michal Hocko wrote: Hi Michal, >Always make sure to CC linux-api mailing list when proposing user >visible API patches. Sorry for that, since scripts/get_maintainer.pl didn't show that, so I don't know should Cc that. > >On Wed 27-12-17 20:30:12, Chao F

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-29 Thread Michal Hocko
Always make sure to CC linux-api mailing list when proposing user visible API patches. On Wed 27-12-17 20:30:12, Chao Fan wrote: > In sometimes users specify the memory region in immovable node in > some kernel commandline, such as "kernel_core" or the "immovable_mem=" > in the patchset that I hav

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Chao Fan
On Wed, Dec 27, 2017 at 01:47:26PM +0100, Greg KH wrote: >On Wed, Dec 27, 2017 at 08:30:12PM +0800, Chao Fan wrote: >> In sometimes users specify the memory region in immovable node in >> some kernel commandline, such as "kernel_core" or the "immovable_mem=" >> in the patchset that I have send. But

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Greg KH
On Wed, Dec 27, 2017 at 08:30:12PM +0800, Chao Fan wrote: > In sometimes users specify the memory region in immovable node in > some kernel commandline, such as "kernel_core" or the "immovable_mem=" > in the patchset that I have send. But users don't know the memory > region. So add this interface

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Chao Fan
The result in my virtual machine looks like this: [root@localhost ~]# cat /sys/devices/system/memory/immovable_mem a@0,1f30@10,1f40@1f40,1f40@3e80,1f40@5dc0,1f40@7d00,1f40@9c40,480@bb80,1ac0@1,1f40@11ac0,1f40@13a00

[RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2017-12-27 Thread Chao Fan
In sometimes users specify the memory region in immovable node in some kernel commandline, such as "kernel_core" or the "immovable_mem=" in the patchset that I have send. But users don't know the memory region. So add this interface to print it. It will show like this: "nn@ss,nn@ss,...". "nn" mean