Re: [PATCH V2 0/2] SLUB bulk API interactions with kmem cgroup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 05, 2015 at 04:37:39PM +0100, Jesper Dangaard Brouer wrote:
> I fixed some bugs for kmem cgroup interaction with SLUB bulk API,
> compiled kernel with CONFIG_MEMCG_KMEM=y, but I don't known how to
> setup kmem cgroups for slab, thus this is mostly untested.
> 
> I will appriciate anyone who can give me a simple setup script...

# create a memcg
mkdir /sys/fs/cgroup/memory/test

# enable kmem acct *before* putting any tasks in it
echo -1 > /sys/fs/cgroup/memory/test/memory.kmem.limit_in_bytes

# put a task in the cgroup
echo $$ > /sys/fs/cgroup/memory/test/cgroup.procs

# do what you want to do here

# you can check if kmem actt really works by looking at
cat /sys/fs/cgroup/memory/test/memory.kmem.slabinfo
# it should not be empty

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]