lkml.org 
[lkml]   [2008]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SLUB defrag pull request?
On Thu, 23 Oct 2008, Eric Dumazet wrote:

> At alloc time, I remember I added a prefetchw() call in SLAB in
> __cache_alloc(),
> this could explain some differences between SLUB and SLAB too, since SLAB
> gives a hint to processor to warm its cache.

SLUB touches objects by default when allocating. And it does it
immediately in slab_alloc() in order to retrieve the pointer to the next
object. So there is no point of hinting there right now.

If we go to the pointer arrays then the situation is similar to SLAB where
the object is not touched by the allocator. Then the hint would be useful
again.



\
 
 \ /
  Last update: 2008-10-23 17:43    [W:0.078 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site