---
name: "rte_mempool_cache"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_mempool_cache"
---

# rte\_mempool\_cache(3)

## NAME

rte\_mempool\_cache

## SYNOPSIS

`#include <rte_mempool.h>`

### Data Fields

uint32\_t **size**\
 uint32\_t **flushthresh**\
 uint32\_t **len**\
 void \* **objs** \[RTE\_MEMPOOL\_CACHE\_MAX\_SIZE \*2\]\

## Detailed Description

A structure that stores a per-core object cache.

Definition at line **90** of file **rte\_mempool.h**.

## Field Documentation

### uint32\_t size

Size of the cache

Definition at line **91** of file **rte\_mempool.h**.

### uint32\_t flushthresh

Threshold before we flush excess elements

Definition at line **92** of file **rte\_mempool.h**.

### uint32\_t len

Current cache count

Definition at line **93** of file **rte\_mempool.h**.

### void\* objs\[RTE\_MEMPOOL\_CACHE\_MAX\_SIZE \*2\]

Cache objects

Cache is allocated to this size to allow it to overflow in certain cases to avoid needless emptying of cache.

Definition at line **113** of file **rte\_mempool.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
