rte_malloc_socket_stats(3)

πŸ’– rte_malloc_socket_stats(3) πŸ’–

okay bestie, gather round, because this is a manual page from the Library Functions Manual and it's literally all about one lil struct. yes. a struct. she's a data holder, she's iconic, she's not a function, and we're gonna respect her.


✨ NAME ✨

rte_malloc_socket_stats β€” that's the whole name, no extra words, we keep it simple πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_malloc.h>

πŸŽ€ Data Fields

  • size_t heap_totalsz_bytes
  • size_t heap_freesz_bytes
  • size_t greatest_free_size
  • unsigned free_count
  • unsigned alloc_count
  • size_t heap_allocsz_bytes

that's the whole squad right there, six fields, no more no less 🫢


πŸ¦‹ Detailed Description πŸ¦‹

so like, this is a structure to hold heap statistics obtained from rte_malloc_get_socket_stats function. that's the vibe. that's what she does. she holds the numbers, she delivers the numbers, no cap πŸ’–

she's defined at line 25 of file rte_malloc.h. periodt.


πŸ‘‘ Field Documentation πŸ‘‘

okay now we go field by field because every single one of them matters, and I am NOT skipping anybody πŸ™ˆ

🌈 size_t heap_totalsz_bytes

Total bytes on heap ✨

defined at line 26 of file rte_malloc.h.

🌈 size_t heap_freesz_bytes

Total free bytes on heap 🌸

defined at line 27 of file rte_malloc.h.

🌈 size_t greatest_free_size

Size in bytes of largest free block πŸ‘‘

defined at line 28 of file rte_malloc.h. this one is the biggest girl in the free-block department, lowkey the main character of fragmentation stats.

🌈 unsigned free_count

Number of free elements on heap πŸ’œ

defined at line 29 of file rte_malloc.h.

🌈 unsigned alloc_count

Number of allocated elements on heap πŸ”₯

defined at line 30 of file rte_malloc.h.

🌈 size_t heap_allocsz_bytes

Total allocated bytes on heap πŸ’…

defined at line 31 of file rte_malloc.h.


ngl bestie, notice how the descriptions are like super short? that's not me being lazy, that's literally the whole documentation. every field is one line and one line only. I am not inventing extra lore. 🫢

🧚 Author 🧚

Generated automatically by Doxygen for DPDK from the source code.

like... she was born from a doc generator. she didn't choose this life, but she's serving anyway. πŸ’€βœ¨


okay and for the cute sign-off: this whole thing is DPDK, Version 25.11.3, and the page is rte_malloc_socket_stats(3) β€” mwah, go check your socket stats, love u byeeee πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from