Re: [PATCH 1/2] kmemcheck v3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Thursday, February 7, 2008 - 3:53 pm

On Thu, 7 Feb 2008, Vegard Nossum wrote:


SLABs can be excepted from tracking?


Ok. Then the allocator manages the gfp flag. Then we need to make sure 
to clear that flag at some point. The flag needs to be consistently set 
or cleared for allocations for a certain slab cache.


So it breaks recursion. But this adds a new cache that is rarely 
used. There will be only about 50-100 kmem_cache objects in the system. I 
thought you could control the tracking on an per object level? Would not a 
kmalloc with __GFP_NOTRACK work?


More reasons to drop cache_cache. cache_cache is not a kmalloc array 
cache by the way since it does not support power of two allocs. Its a 
regular kmem_cache element.


All slab memory allocations never cause page faults regardless from where 
they are allocated. Only user space pages can be handled by page faults 
and those are not allocated via the slab allocator.


No I am quite sure what tracking is since the slab allocators have their 
own tracking. 

But you may want to explain things better.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] kmemcheck v3, Vegard Nossum, (Thu Feb 7, 2:36 pm)
[PATCH 2/2] kmemcheck v3, Vegard Nossum, (Thu Feb 7, 2:39 pm)
Re: [PATCH 1/2] kmemcheck v3, Christoph Lameter, (Thu Feb 7, 2:53 pm)
Re: [PATCH 1/2] kmemcheck v3, Vegard Nossum, (Thu Feb 7, 3:12 pm)
Re: [PATCH 1/2] kmemcheck v3, Christoph Lameter, (Thu Feb 7, 3:53 pm)
Re: [PATCH 1/2] kmemcheck v3, Vegard Nossum, (Thu Feb 7, 4:18 pm)
Re: [PATCH 1/2] kmemcheck v3, Christoph Lameter, (Thu Feb 7, 4:32 pm)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Thu Feb 7, 11:30 pm)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Thu Feb 7, 11:33 pm)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Thu Feb 7, 11:40 pm)
Re: [PATCH 1/2] kmemcheck v3, Christoph Lameter, (Fri Feb 8, 12:10 am)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Fri Feb 8, 12:48 am)
Re: [PATCH 1/2] kmemcheck v3, Ingo Molnar, (Fri Feb 8, 1:09 am)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Fri Feb 8, 4:31 am)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Fri Feb 8, 4:37 am)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Fri Feb 8, 4:39 am)
Re: [PATCH 1/2] kmemcheck v3, Pekka Enberg, (Fri Feb 8, 4:43 am)
Re: [PATCH 1/2] kmemcheck v3, Andi Kleen, (Fri Feb 8, 4:55 am)
Re: [PATCH 1/2] kmemcheck v3, Andi Kleen, (Fri Feb 8, 5:10 am)
Re: [PATCH 1/2] kmemcheck v3, Andi Kleen, (Fri Feb 8, 5:15 am)
Re: [PATCH 1/2] kmemcheck v3, Vegard Nossum, (Fri Feb 8, 5:18 am)
Re: [PATCH 1/2] kmemcheck v3, Vegard Nossum, (Fri Feb 8, 5:59 am)
Re: [PATCH 1/2] kmemcheck v3, Andi Kleen, (Fri Feb 8, 6:20 am)
Re: [PATCH 1/2] kmemcheck v3, Andi Kleen, (Fri Feb 8, 6:48 am)
Re: [PATCH 1/2] kmemcheck v3, Ingo Molnar, (Sat Feb 9, 2:33 am)