E2SAR 0.2.0
All Data Structures Namespaces Functions Typedefs Enumerations
e2sar::Affinity Class Reference

#include <e2sarAffinity.hpp>

Static Public Member Functions

static result< int > setProcess (const std::vector< int > &cores) noexcept
 
static result< int > setThread (int core) noexcept
 
static result< int > setThreadXOR (const std::vector< int > &cores) noexcept
 
static result< int > setNUMABind (int node) noexcept
 

Detailed Description

Static methods to manipuate affinity of memory and CPUs

Member Function Documentation

◆ setNUMABind()

result< int > e2sar::Affinity::setNUMABind ( int node)
staticnoexcept

Bind process memory allocation to specified NUMA node Error out if node is invalid or NUMA not supported

◆ setProcess()

result< int > e2sar::Affinity::setProcess ( const std::vector< int > & cores)
staticnoexcept

Set the affinity of the entire process to the cores in the vector

◆ setThread()

result< int > e2sar::Affinity::setThread ( int core)
staticnoexcept

Set calling thread affinity to specified core

◆ setThreadXOR()

result< int > e2sar::Affinity::setThreadXOR ( const std::vector< int > & cores)
staticnoexcept

Set calling thread affinity to exclude named cores


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