Conversation

As an addition, using separate caches for accounting was introduced again in 5.14, as pointed out by :
Quote Tweet
linux kernel introduced kmalloc-cg-* in 5.14. allocations using GFP_KERNEL_ACCOUNT will go in there. no wonder i cant use msg_msg spray on 5.17 while on Ubuntu 21.10 (5.13) i still can use it. github.com/torvalds/linux
2
7
Show replies
Ah, so wrt kmalloc caches: they are not mergeable with non-kmalloc ones ever since 4.16 due to hardened usercopy, and these newer patches only affect whether GFP_KERNEL_ACCOUNT kmalloc allocations get dispatched into a different set of kmalloc caches than GFP_KERNEL ones. Right?
2
Show replies