[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091210014212.GI18989@one.firstfloor.org>
Date: Thu, 10 Dec 2009 02:42:12 +0100
From: Andi Kleen <andi@...stfloor.org>
To: Paul Menage <menage@...gle.com>
Cc: Andi Kleen <andi@...stfloor.org>, kosaki.motohiro@...fujitsu.com,
hugh.dickins@...cali.co.uk, nishimura@....nes.nec.co.jp,
balbir@...ux.vnet.ibm.com, kamezawa.hiroyu@...fujitsu.com,
lizf@...fujitsu.com, npiggin@...e.de, fengguang.wu@...el.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] [23/31] HWPOISON: add memory cgroup filter
> While the functionality sounds useful, the interface (passing an inode
> number) feels a bit ugly to me. Also, if that group is deleted and a
> new cgroup created, you could end up reusing the inode number.
Please note this is just a testing interface, doesn't need to be
100% fool-proof. It'll never be used in production.
>
> How about an approach where you write either the cgroup path (relative
> to the memcg mount) or an fd open on the desired cgroup? Then you
> could store a (counted) css reference rather than an inode number,
> which would make the filter function cleaner too, since it would just
> need to compare css objects.
Sounds complicated, I assume it would be much more code?
I would prefer to keep the testing interfaces as simple as possible.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists