lkml.org 
[lkml]   [2014]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2014-08-23 00:41    [W:0.098 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site