Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"
#include "lib/sysdep/numa.h"
#include "lib/bits.h"
#include "lib/alignment.h"
#include "lib/lib.h"
#include "lib/timer.h"
#include "lib/module_init.h"
#include "lib/sysdep/vm.h"
#include "lib/sysdep/os_cpu.h"
#include "lib/sysdep/os/win/acpi.h"
#include "lib/sysdep/os/win/win.h"
#include "lib/sysdep/os/win/wutil.h"
#include "lib/sysdep/os/win/wcpu.h"
#include <map>
#include <Psapi.h>
Classes | |
struct | Node |
struct | SLIT |
Functions | |
static Node * | AddNode () |
static Node * | FindNodeWithProcessorMask (uintptr_t processorMask) |
static Node * | FindNodeWithProcessor (size_t processor) |
static UCHAR | HighestNodeNumber () |
static void | PopulateNodes () |
static Status | InitTopology () |
size_t | numa_NumNodes () |
size_t | numa_NodeFromProcessor (size_t processor) |
uintptr_t | numa_ProcessorMaskFromNode (size_t node) |
static UCHAR | NodeNumberFromNode (size_t node) |
size_t | numa_AvailableMemory (size_t node) |
static double | ReadRelativeDistanceFromSLIT (const SLIT *slit) |
static double | MeasureRelativeDistance () |
static Status | InitRelativeDistance () |
double | numa_Factor () |
static bool | IsMemoryInterleaved () |
static Status | InitMemoryInterleaved () |
bool | numa_IsMemoryInterleaved () |
Variables | |
static Node | nodes [os_cpu_MaxProcessors] |
static size_t | numNodes |
static ModuleInitState | initState { 0 } |
static double | relativeDistance |
static bool | isMemoryInterleaved |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
size_t numa_AvailableMemory | ( | size_t | node | ) |
node |
double numa_Factor | ( | ) |
bool numa_IsMemoryInterleaved | ( | ) |
note: this requires ACPI access, which may not be available on least-permission accounts. the default is to return false so as not to cause callers to panic and trigger performance warnings.
size_t numa_NodeFromProcessor | ( | size_t | processor | ) |
processor |
size_t numa_NumNodes | ( | ) |
uintptr_t numa_ProcessorMaskFromNode | ( | size_t | node | ) |
node |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |