(2012/06/25 23:15), Glauber Costa wrote: > We can use jump labels to patch the code in or out > when not used. > > Because the assignment: memcg->kmem_accounted = true > is done after the jump labels increment, we guarantee > that the root memcg will always be selected until > all call sites are patched (see mem_cgroup_kmem_enabled). > This guarantees that no mischarges are applied. > > Jump label decrement happens when the last reference > count from the memcg dies. This will only happen when > the caches are all dead. > > Signed-off-by: Glauber Costa <[email protected]> > CC: Christoph Lameter <[email protected]> > CC: Pekka Enberg <[email protected]> > CC: Michal Hocko <[email protected]> > CC: Kamezawa Hiroyuki <[email protected]> > CC: Johannes Weiner <[email protected]> > CC: Suleiman Souhlal <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]> _______________________________________________ Devel mailing list [email protected] https://openvz.org/mailman/listinfo/devel
