Messages in this thread | | | Date | Fri, 22 Aug 2014 15:21:58 -0700 | From | Dave Hansen <> | Subject | Re: [PATCH v2] memory-hotplug: add sysfs zones_online_to attribute |
| |
On 08/22/2014 03:16 PM, Andrew Morton wrote: > Also, it's not really clear to me why we need this sysfs file at all. > Do people really read sysfs files, make onlining decisions and manually > type in commands? Or is this stuff all automated? If the latter then > the script can take care of all this? For example, attempt to online > the memory into the desired zone and report failure if that didn't > succeed?
I guess we can just iterate over all possible zone types from userspace until we find one. Seems a bit hokey, but it would work at least until we add a new zone type and we have to teach the scripts about the new type. But that's a pretty rare event I guess. Let's hope the script writers get this right, and don't make omissions like ZONE_MOVABLE because it's not that common in practice.
| |