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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/