libfoedus-core
FOEDUS Core Library
|
Automatically sets and resets numa_set_preferred(). More...
Automatically sets and resets numa_set_preferred().
Use this in a place you want to direct all memory allocation to a specific NUMA node.
Definition at line 58 of file memory_id.hpp.
#include <memory_id.hpp>
Public Member Functions | |
ScopedNumaPreferred (int numa_node, bool retain_old=false) | |
~ScopedNumaPreferred () | |
Public Attributes | |
int | old_value_ |
bool | numa_enabled_ |
|
inline |
Definition at line 59 of file memory_id.hpp.
References foedus::assorted::mod_numa_node(), numa_available(), numa_enabled_, numa_preferred(), numa_set_preferred(), and old_value_.
|
inline |
Definition at line 76 of file memory_id.hpp.
References numa_enabled_, numa_set_preferred(), and old_value_.
bool foedus::memory::ScopedNumaPreferred::numa_enabled_ |
Definition at line 82 of file memory_id.hpp.
Referenced by ScopedNumaPreferred(), and ~ScopedNumaPreferred().
int foedus::memory::ScopedNumaPreferred::old_value_ |
Definition at line 81 of file memory_id.hpp.
Referenced by ScopedNumaPreferred(), and ~ScopedNumaPreferred().