From mboxrd@z Thu Jan 1 00:00:00 1970 From: becher.jannik@gmail.com (becher.jannik at gmail.com) Date: Tue, 27 Sep 2016 10:53:00 +0200 Subject: kmem_cache not showing in /proc/slabinfo Message-ID: <20160927085300.c6hqolqwssfrgo5j@breaker.fritz.box> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi All, I played a little bit around with kmem_cache_alloc() and kmem_cache_create() and figured out that it only appears in /proc/slabinfo if I reserve a specific amount of memory. Isn't it always preferable to precache space for often used structs even for small structs? I'm not sure whether I understood it right how it works. But how does the kernel know for how many structs he should preallocate memory? Best regards Jannik Becher