[Crash-utility] Re: when tracking full slabs, check kmem_cache flag

Dave Anderson anderson at redhat.com
Tue Mar 18 13:48:22 UTC 2008


i-kitayama at ap.jp.nec.com wrote:
> Hi Dave,
> Thanks for reviewing.
> 
>> For 2.6.22 only, kmem_cache_node.full is always there, so in that
>> case, the SLAB_STORE_USER flag would never get checked above, and
>> the full slab would be shown as "(empty)".
>>
>> And for 2.6.23 kernels and above, the SLAB_STORE_USER flag
>> would *only* be checked if CONFIG_SLUB_DEBUG was *not* set.
>> And if CONFIG_SLUB_DEBUG is not set, then full slabs would not
>> be tracked because add_full() is a no-op -- regardless whether
>> the SLAB_STORE_USER flag was set or not.
>>
>> Shouldn't it be "||" instead of "&&"?
> 
> Right. I have attached the modified patch.
> 
> Itaru

I've made a couple additions (patch attached), but the
logic is the same -- queued for the next release.

Thanks,
   Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slub.patch
Type: text/x-patch
Size: 2510 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20080318/350c0b2e/attachment.bin>


More information about the Crash-utility mailing list