Re: [patch 2/2] mm: memcontrol: default hierarchy interface for memory
From: Johannes Weiner
Date: Tue Jan 13 2015 - 16:45:18 EST
On Tue, Jan 13, 2015 at 12:52:58PM -0800, Andrew Morton wrote:
> On Tue, 13 Jan 2015 10:50:40 -0500 Johannes Weiner <hannes@xxxxxxxxxxx> wrote:
>
> > On Mon, Jan 12, 2015 at 03:37:16PM -0800, Andrew Morton wrote:
> > > This all sounds pretty major. How much trouble is this change likely to
> > > cause existing memcg users?
> >
> > That is actually entirely up to the user in question.
> >
> > 1. The old cgroup interface remains in place as long as there are
> > users, so, technically, nothing has to change unless they want to.
>
> It would be good to zap the old interface one day. Maybe we won't ever
> be able to, but we should try. Once this has all settled down and is
> documented, how about we add a couple of printk_once's to poke people
> in the new direction?
Yup, sounds good to me.
There are a few missing pieces until the development flag can be
lifted from the new cgroup interface. I'm currently working on making
swap control available, and I expect Tejun to want to push buffered IO
control into the tree before that as well.
But once we have these things in place and are reasonably sure that
the existing use cases can be fully supported by the new interface,
I'm all for nudging people in its direction. Yes, we should at some
point try to drop the old one, which is going to reduce the code size
significantly, but even before then we can work toward separating out
the old-only parts of the implementation as much as possible to reduce
development overhead from the new/main code.
--
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/