s 2112 bytes. kmalloc gets space from slab pools by chunks 2^n. So if we need to kmalloc 2112 bytes, 4096 bytes will be consumed by system. The best way to avoid this issue would be using kmem_cache allocations. AFAIK this mechanism specially designed to handle cases when arrays of allocations are used. Signed-off-by: Alexey Korolev Tested-by: Artem Bityutskiy Acked-by: Artem Bityutskiy Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse —Y