Re: [PATCH 4/4] memcg: prevent from reclaiming if there are per-cpucached charges
From: KAMEZAWA Hiroyuki
Date: Thu Jul 21 2011 - 20:26:18 EST
On Fri, 22 Jul 2011 08:56:52 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
> On Thu, 21 Jul 2011 14:30:12 +0200
> Michal Hocko <mhocko@xxxxxxx> wrote:
> Please wait until "background reclaim" stuff. I don't stop it and it will
> make this cpu-caching stuff better because we can drain before hitting
> If you cannot wait....
> One idea is to have a threshold to call async "drain". For example,
> threshould = limit_of_memory - nr_online_cpu() * (BATCH_SIZE + 1)
> if (usage > threshould)
> Then, situation will be much better.
Of course, frequency of this call can be controlled by event counter.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/