Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1495788

Re: [PATCH] oom: print nodemask in the oom report

From Vlastimil Babka <vbabka@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH] oom: print nodemask in the oom report
Date 2016-10-05 12:00 +0200
Message-ID <soR9v-7vF-9@gated-at.bofh.it> (permalink)
References <sndQS-7ww-9@gated-at.bofh.it> <soxXc-3fH-17@gated-at.bofh.it> <soyJA-3Tq-17@gated-at.bofh.it> <sozvY-4tV-15@gated-at.bofh.it> <sozFE-4xt-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/04/2016 05:12 PM, Michal Hocko wrote:
>>
>> Ah, I wasn't clear. What I questioned is the fallback to cpusets for NULL
>> nodemask:
>>
>> nodemask_t *nm = (oc->nodemask) ? oc->nodemask :
>> &cpuset_current_mems_allowed;
>
> Well no nodemask means there is no mempolicy so either all nodes can be
> used or they are restricted by the cpuset. cpuset_current_mems_allowed is
> node_states[N_MEMORY] if there is no cpuset so I believe we are printing
> the correct information. An alternative would be either not print
> anything if there is no nodemask or print node_states[N_MEMORY]
> regardless the cpusets. The first one is quite ugly while the later
> might be confusing I guess.

So I thought it would be useful to distinguish that mempolicy/nodemask 
had no restriction (e.g. NULL), vs restriction that happens to be the 
very same as cpuset_current_mems_allowed. With your patch we can just 
guess, if both are printed as the same sets. But I guess there's not 
much value in that and the most important point is that we can determine 
the resulting combination (intersection) of both kinds of restrictions 
from the report, which indeed we can after your patch.

Thanks,
Vlastimil

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] oom: print nodemask in the oom report Michal Hocko <mhocko@kernel.org> - 2016-09-30 23:50 +0200
  Re: [PATCH] oom: print nodemask in the oom report Vlastimil Babka <vbabka@suse.cz> - 2016-10-04 15:30 +0200
    Re: [PATCH] oom: print nodemask in the oom report Michal Hocko <mhocko@kernel.org> - 2016-10-04 16:20 +0200
      Re: [PATCH] oom: print nodemask in the oom report Vlastimil Babka <vbabka@suse.cz> - 2016-10-04 17:10 +0200
        Re: [PATCH] oom: print nodemask in the oom report Michal Hocko <mhocko@kernel.org> - 2016-10-04 17:20 +0200
          Re: [PATCH] oom: print nodemask in the oom report Vlastimil Babka <vbabka@suse.cz> - 2016-10-05 12:00 +0200

csiph-web