Re: [PATCH] per-cgroup tcp buffer limitation

From: Paul Menage
Date: Tue Sep 13 2011 - 14:46:52 EST


On Tue, Sep 13, 2011 at 11:11 AM, Glauber Costa <glommer@xxxxxxxxxxxxx> wrote:
>
> What if they are all updated under the same lock ?

Right, that would be the kind of optimization that would remove the
need for worrying about whether or not to account it. It would
probably mean creating some memcg-specific structures like
res-counters that could handle multiple values, since you'd need to
update both the kernel charge and the total charge, in this cgroup
*and* its ancestors.

Paul
--
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/