Seastar
High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::memory::statistics Class Reference

Detailed Description

Memory allocation statistics.

#include <seastar/core/memory.hh>

Public Member Functions

uint64_t mallocs () const
 Total number of memory allocations calls since the system was started.
 
uint64_t frees () const
 Total number of memory deallocations calls since the system was started.
 
uint64_t cross_cpu_frees () const
 
size_t live_objects () const
 Total number of objects which were allocated but not freed.
 
size_t free_memory () const
 Total free memory (in bytes)
 
size_t allocated_memory () const
 Total allocated memory (in bytes)
 
size_t total_memory () const
 Total memory (in bytes)
 
uint64_t reclaims () const
 Number of reclaims performed due to low memory.
 
uint64_t large_allocations () const
 Number of allocations which violated the large allocation threshold.
 
uint64_t failed_allocations () const
 
uint64_t foreign_mallocs () const
 Number of foreign allocations.
 
uint64_t foreign_frees () const
 Number of foreign frees.
 
uint64_t foreign_cross_frees () const
 Number of foreign frees on reactor threads.
 

Member Function Documentation

◆ cross_cpu_frees()

uint64_t seastar::memory::statistics::cross_cpu_frees ( ) const
inline

Total number of memory deallocations that occured on a different lcore than the one on which they were allocated.

◆ failed_allocations()

uint64_t seastar::memory::statistics::failed_allocations ( ) const
inline

Number of allocations which failed, i.e., where the required memory could not be obtained even after reclaim was attempted


The documentation for this class was generated from the following file: