|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
This class is responsible to look up OS/HW specs of the underlying hardware, e.g., numa. More...
#include <HardwareManager.hpp>
Classes | |
| struct | CpuDescriptor |
| Descriptor for a single core. More... | |
| class | NumaDescriptor |
| Descriptor for a single numa node. More... | |
Public Member Functions | |
| HardwareManager () | |
| Creates a new HW manager with a mapping of the CPU/Mem topology. More... | |
| NesDefaultMemoryAllocatorPtr | getGlobalAllocator () const |
| Returns the global posix-based memory allocator. More... | |
| bool | bindThreadToCore (pthread_t thread, uint32_t numaIndex, uint32_t coreId) |
| Binds the given pthread to a specific core of a given numa region. More... | |
| uint32_t | getNumaNodeForCore (int coreId) const |
| Returns the numa region for a particular core. More... | |
This class is responsible to look up OS/HW specs of the underlying hardware, e.g., numa.
|
explicit |
Creates a new HW manager with a mapping of the CPU/Mem topology.
References NES::Runtime::detail::readCpuConfig().
| bool NES::Runtime::HardwareManager::bindThreadToCore | ( | pthread_t | thread, |
| uint32_t | numaIndex, | ||
| uint32_t | coreId | ||
| ) |
Binds the given pthread to a specific core of a given numa region.
| thread | the pthread handle |
| numaIndex | the numa index |
| coreId | the core id |
References NES_ASSERT2_FMT.
| NesDefaultMemoryAllocatorPtr NES::Runtime::HardwareManager::getGlobalAllocator | ( | ) | const |
Returns the global posix-based memory allocator.
| uint32_t NES::Runtime::HardwareManager::getNumaNodeForCore | ( | int | coreId | ) | const |
Returns the numa region for a particular core.