lkml.org 
[lkml]   [2011]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] oom: don't kill random process
>> +       /*
>> + * chosen_point==1 may be a sign that root privilege bonus is too large
>> + * and we choose wrong task. Let's recalculate oom score without the
>> + * dubious bonus.
>> + */
>> + if (protect_root&& (chosen_points == 1)) {
>> + protect_root = 0;
>> + goto retry;
>> + }
>
> The idea is good to me.
> But once we meet it, should we give up protecting root privileged processes?
> How about decaying bonus point?

After applying my patch, unprivileged process never get score-1. (note, mapping
anon pages naturally makes to increase nr_ptes)

Then, decaying don't make any accuracy. Am I missing something?




\
 
 \ /
  Last update: 2011-05-24 03:57    [from the cache]
©2003-2011 Jasper Spaans