Documentation ¶
Overview ¶
Package mempool contains bindings of DPDK memory pool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GqlMemoryDiagType *graphql.Object
)
GraphQL types.
Functions ¶
func ComputeCacheSize ¶
ComputeCacheSize calculates the appropriate cache size for given mempool capacity.
func ComputeOptimumCapacity ¶
ComputeOptimumCapacity adjusts mempool capacity to be a power of two minus one, if near.
Types ¶
type Config ¶
type Config struct { Capacity int ElementSize int PrivSize int Socket eal.NumaSocket SingleProducer bool SingleConsumer bool }
Config contains Mempool configuration.
type Mempool ¶
type Mempool C.struct_rte_mempool
Mempool represents a DPDK memory pool for generic objects.
func (*Mempool) CountAvailable ¶
CountAvailable returns number of available objects.
func (*Mempool) CountInUse ¶
CountInUse returns number of allocated objects.
func (*Mempool) SizeofElement ¶
SizeofElement returns element size.
Click to show internal directories.
Click to hide internal directories.