Thread (14 messages) 14 messages, 4 authors, 2011-11-19

Re: [PATCH] ext4: slab caches set to SLAB_MEM_SPREAD flags.

From: Theodore Tso <tytso@MIT.EDU>
Date: 2011-11-16 15:52:10
Also in: lkml

On Nov 16, 2011, at 10:04 AM, Namjae Jeon wrote:
If slab caches set to SLAB_MEM_SPREAD flags, The allocation is spread evenly over all the memory nodes instead of favoring allocation on the node local to current cpu.
And why do you think this is a good thing?   For mballoc in particular, the data structures are used immediately and then freed immediately --- on the local node, so using a non-local memory just makes things worse in a NUMA system.

For the pageio, they are used immediately, and may end up getting freed on the same CPU if the I/O interrupt (and hence competion callbacks) happen on the same CPU that they are submitted on….

Regards,

-- Ted


--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help