rte_mempool_cache(3)
π rte_mempool_cache π
okay bestie, welcome to the rte_mempool_cache(3) page from the DPDK Library Functions Manual β yes it's a C struct, yes it's cute, let's get into it πΈ
β¨ NAME β¨
rte_mempool_cache β the little per-core cache struct, living its best life in DPDK π¦
β¨ SYNOPSIS β¨
#include <rte_mempool.h>
π Data Fields
uint32_t sizeuint32_t flushthreshuint32_t lenvoid * objs [RTE_MEMPOOL_CACHE_MAX_SIZE *2]
β¨ Detailed Description β¨
So like, this is a structure that stores a per-core object cache. that's the whole vibe. one struct, one core, all the objects it wants to keep close π
it's defined at line 90 of the file rte_mempool.h, for anyone keeping receipts π
β¨ Field Documentation β¨
π uint32_t size
Size of the cache. literally just how big it is, no cap.
Defined at line 91 of the file rte_mempool.h.
π uint32_t flushthresh
Threshold before we flush excess elements. so when things pile up past this line, the extras get flushed out β it's giving "okay that's enough, we're cleaning house" π§Ήβ¨
Defined at line 92 of the file rte_mempool.h.
π uint32_t len
Current cache count. i.e. how many things are actually in there right now, this very second, fr fr.
Defined at line 93 of the file rte_mempool.h.
π void* objs[RTE_MEMPOOL_CACHE_MAX_SIZE *2]
Cache objects. the actual goodies π
and here's the tea: the cache is allocated to this size to allow it to overflow in certain cases, so that we avoid needless emptying of the cache. like, it's got extra room on purpose, because emptying the cache for no reason is a waste and we simply don't do that. it's called planning ahead, bestie π
Defined at line 113 of the file rte_mempool.h.
β¨ Author β¨
Generated automatically by Doxygen for DPDK from the source code. not a human, not a girlie, just Doxygen doing its thing π€π
ok that's the whole page!! every field, every line number, every word about overflow β all here, none skipped π«Ά
signing off, babes: this was DPDK, Version 25.11.3, serving rte_mempool_cache(3) realness π stay cached, stay iconic, and remember β per-core object cache supremacy πβ¨
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms