On Thu, Apr 21, 2011 at 12:01 AM, KAMEZAWA Hiroyuki
<kamezawa.hiroyu@jp.fujitsu.com> wrote:
On Wed, 20 Apr 2011 23:59:52 -0700
> n general, memcg-kswapd can reduce memory down to high watermak only when
> > the system is not busy. So, this logic tries to remove more memory from busy
> > cgroup to reduce 'hit limit'.
> >
>
> So, the "busy cgroup" here means the memcg has higher (usage - low)?
>
high < usage < low < limit
Yes, if background reclaim wins, usage - high decreases.
If tasks on cgroup uses more memory than reclaim, usage - high increases even
if background reclaim runs. So, if usage-high is large, cgroup is busy.
Yes, I think I understand the (usage - high) in the calculation, but not the (low - high).
--Ying
Thanks,
-Kame