Thread (18 messages) 18 messages, 5 authors, 2017-06-08

Re: 4.12-rc ppc64 4k-page needs costly allocations

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-06-02 03:09:59
Also in: linux-mm

Hugh Dickins [off-list ref] writes:
On Thu, 1 Jun 2017, Christoph Lameter wrote:
quoted
Ok so debugging was off but the slab cache has a ctor callback which
mandates that the free pointer cannot use the free object space when
the object is not in use. Thus the size of the object must be increased to
accomodate the freepointer.
Thanks a lot for working that out.  Makes sense, fully understood now,
nothing to worry about (though makes one wonder whether it's efficient
to use ctors on high-alignment caches; or whether an internal "zero-me"
ctor would be useful).
Or should we just be using kmem_cache_zalloc() when we allocate from
those slabs?

Given all the ctor's do is memset to 0.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help