[PATCH v4 6/7] mm, slab_common: Initialize the same size of kmalloc_caches[]

2019-09-15 Thread Pengfei Li
In the current implementation, KMALLOC_RECLAIM is not initialized until all the KMALLOC_NORMAL sizes have been initialized. But for a particular size, create_kmalloc_caches() can be executed faster by initializing different types of kmalloc in order. $ ./scripts/bloat-o-meter vmlinux.old

[PATCH v4 6/7] mm, slab_common: initialize the same size of kmalloc_caches[]

2019-09-15 Thread Pengfei Li
In the current implementation, KMALLOC_RECLAIM is not initialized until all the KMALLOC_NORMAL sizes have been initialized. But for a particular size, create_kmalloc_caches() can be executed faster by initializing different types of kmalloc in order. $ ./scripts/bloat-o-meter vmlinux.old