kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* kmem_cache not showing in /proc/slabinfo
@ 2016-09-27  8:53 becher.jannik at gmail.com
  0 siblings, 0 replies; only message in thread
From: becher.jannik at gmail.com @ 2016-09-27  8:53 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-27  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-27  8:53 kmem_cache not showing in /proc/slabinfo becher.jannik at gmail.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).