lkml.org 
[lkml]   [2013]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 08/11] cpuset: separate configured masks and efffective masks
On 2013/8/21 22:08, Tejun Heo wrote:
> On Wed, Aug 21, 2013 at 06:00:42PM +0800, Li Zefan wrote:
>> @@ -2261,7 +2271,8 @@ static void cpuset_hotplug_workfn(struct work_struct *work)
>> /* synchronize mems_allowed to N_MEMORY */
>> if (mems_updated) {
>> mutex_lock(&callback_mutex);
>> - top_cpuset.mems_allowed = new_mems;
>> + if (!sane)
>> + top_cpuset.mems_allowed = new_mems;
>
> Can you please further explain how the top cgroup behaves?
>

top_cpuset.cpus_allowed will always be cpu_active_mask if sane_behavior
is not set, otherwise it will always be cpu_possible_mask. While
top_cpuset.effective_cpus will always be cpu_active_mask in either
case.



\
 
 \ /
  Last update: 2013-08-23 10:01    [W:0.164 / U:1.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site