Re: [RFC][0/3] Virtual address space control for cgroups

From: Li Zefan
Date: Sun Mar 16 2008 - 21:47:57 EST


Paul Menage wrote:
> On Mon, Mar 17, 2008 at 1:29 AM, Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:
>> This is an early patchset for virtual address space control for cgroups.
>> The patches are against 2.6.25-rc5-mm1 and have been tested on top of
>> User Mode Linux.
>
> What's the performance hit of doing these accounting checks on every
> mmap/munmap? If it's not totally lost in the noise, couldn't it be
> made a separate control group, so that it could be just enabled (and
> the performance hit taken) for users that actually want it?
>

It will be code duplication to make it a new subsystem, and it will be useful
to control both of them, am I right? :)

So could we just add a CONFIG to this patch series, like:
CONFIG_CGROUP_MEM_RES_AS_CTLR
?

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