[Devel] [PATCH 0/4] Proposed slab patches as basis for memcg

2012-06-14 Thread Glauber Costa
Hi, These four patches are sat in my tree for kmem memcg work. All of them are preparation patches that touch the allocators to make them more consistent, allowing me to later use them from common code. In this current form, they are supposed to be applied after Cristoph's series. They are not, h

[Devel] [PATCH 2/4] provide a common place for initcall processing in kmem_cache

2012-06-14 Thread Glauber Costa
Both SLAB and SLUB depend on some initialization to happen when the system is already booted, with all subsystems working. This is done by issuing an initcall that does the final initialization. This patch moves that to slab_common.c, while creating an empty placeholder for the SLOB. Signed-off-b

[Devel] [PATCH 1/4] slab: rename gfpflags to allocflags

2012-06-14 Thread Glauber Costa
A consistent name with slub saves us an acessor function. In both caches, this field represents the same thing. We would like to use it from the mem_cgroup code. Signed-off-by: Glauber Costa Acked-by: Christoph Lameter CC: Pekka Enberg --- include/linux/slab_def.h |2 +- mm/slab.c

[Devel] [PATCH 3/4] slab: move FULL state transition to an initcall

2012-06-14 Thread Glauber Costa
During kmem_cache_init_late(), we transition to the LATE state, and after some more work, to the FULL state, its last state This is quite different from slub, that will only transition to its last state (previously SYSFS), in a (late)initcall, after a lot more of the kernel is ready. This means t

[Devel] [PATCH 4/4] make CFLGS_OFF_SLAB visible for all slabs

2012-06-14 Thread Glauber Costa
Since we're now moving towards a unified slab allocator interface, make CFLGS_OFF_SLAB visible to all allocators, even though SLAB keeps being its only users. Also, make the name consistent with the other flags, that start with SLAB_xx. This will allow us to mask out this flag from common code, wh

[Devel] Re: [PATCH v4 0/4] per cgroup cpu statistics

2012-06-14 Thread Glauber Costa
On 06/05/2012 06:49 PM, Glauber Costa wrote: Hello, This is the 4th version of this per-cgroup statistics. My aim with that is to provide userspace with the necessary tools to export a view of /proc/stat inside a container, so tools like top would work. I believe this version merges all the com

[Devel] Re: [PATCH 4/4] make CFLGS_OFF_SLAB visible for all slabs

2012-06-14 Thread Christoph Lameter
On Thu, 14 Jun 2012, Glauber Costa wrote: > Since we're now moving towards a unified slab allocator interface, > make CFLGS_OFF_SLAB visible to all allocators, even though SLAB keeps > being its only users. Also, make the name consistent with the other > flags, that start with SLAB_xx. What is th

[Devel] Re: [PATCH 4/4] make CFLGS_OFF_SLAB visible for all slabs

2012-06-14 Thread Glauber Costa
On 06/14/2012 07:19 PM, Christoph Lameter wrote: On Thu, 14 Jun 2012, Glauber Costa wrote: Since we're now moving towards a unified slab allocator interface, make CFLGS_OFF_SLAB visible to all allocators, even though SLAB keeps being its only users. Also, make the name consistent with the other

[Devel] Re: [PATCH 4/4] make CFLGS_OFF_SLAB visible for all slabs

2012-06-14 Thread Christoph Lameter
On Thu, 14 Jun 2012, Glauber Costa wrote: > I want to mask that out in kmem-specific slab creation. Since I am copying the > original flags, and that flag is embedded in the slab saved flags, it will be > carried to the new slab if I don't mask it out. I thought you intercepted slab creation? You