lkml.org 
[lkml]   [2011]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Android low memory killer vs. memory pressure notifications
> - Use memory controller cgroup (CGROUP_MEM_RES_CTLR) notifications from
> the kernel side, plus userland "manager" that would kill applications.
>
> The main downside of this approach is that mem_cg needs 20 bytes per
> page (on a 32 bit machine). So on a 32 bit machine with 4K pages
> that's approx. 0.5% of RAM, or, in other words, 5MB on a 1GB machine.
>
> 0.5% doesn't sound too bad, but 5MB does, quite a little bit. So,
> mem_cg feels like an overkill for this simple task (see the driver at
> the very bottom).

Kamezawa-san, Is 20bytes/page still correct now? If I remember
correctly, you improved space efficiency of memcg.



\
 
 \ /
  Last update: 2011-12-19 17:13    [W:0.107 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site