Skip to main content

Crate themis

Crate themis 

Source
Expand description

Typed placement law for Atlas memory and runtime crates.

Themis owns placement vocabulary, not allocation or execution. Mnemosyne consumes these types to choose memory locality. Moirai consumes these types to choose worker and task locality.

Structs§

CacheLevel
Cache hierarchy level.
ConstNumaNodePlacement
A node-specific placement capability, verified at compile time.
ConstThreadLocalNumaPlacement
A node-specific thread-confined placement capability, verified at compile time.
CoreId
Identity of a physical core within one CpuTopology snapshot.
CpuEfficiencyView
A borrowed CPU efficiency-class table whose presence is already proven.
CpuSmtView
A borrowed core table whose presence is already proven.
CpuTopology
CPU topology snapshot.
EfficiencyClass
Relative performance rank of a logical processor on a hybrid CPU.
GpuDeviceProperties
Provider-supplied GPU device properties for crate::GpuTopology::from_provider.
GpuTopology
GPU device topology snapshot (atlas ADR 0002).
LocalityDomainId
Coarse memory locality domain.
NumaBucketIndex
NUMA bucket identity for a fixed-size placement table.
NumaNode
NUMA node topology.
NumaNodeId
NUMA node identity.
NumaNodePlacement
A node-specific placement capability.
SyncRegionPlacement
Thread-portable placement-region capability.
ThreadLocalNumaPlacement
A node-specific thread-confined placement capability.
ThreadLocalPlacement
Thread-confined placement capability.
TopologyEpoch
Topology version token.
TpuDeviceProperties
Provider-supplied TPU device properties for crate::TpuTopology::from_provider.
TpuTopology
TPU device topology snapshot.
WorkerId
Scheduler worker identity.

Enums§

BindError
Why the calling thread could not be confined to a logical processor.
MemoryTier
Memory tier classification.
PlacementHint
Placement preference supplied by allocation or scheduling callers.

Traits§

ConstPinnedCell
A cell pinned statically to a specific NUMA node.
ConstPinnedSlice
A contiguous slice of cells pinned statically to a specific NUMA node.
PinnedCell
A cell pinned to a specific NUMA node.
PinnedSlice
A contiguous slice of cells pinned to a specific NUMA node.

Functions§

bind_current_thread
Confines the calling thread to exactly one logical processor.
current_numa_node
Returns the cached NUMA node for the calling thread.
current_processor
Returns the current processor when the platform exposes it.
refresh_current_numa_node
Refreshes and returns the calling thread’s NUMA node.
sync_region_placement_scope
Opens a thread-portable placement-region scope.
thread_local_placement_scope
Opens a thread-confined placement scope.
try_current_numa_node
Queries the calling thread’s NUMA node without caching, returning None when the platform does not expose the information.

Type Aliases§

ConstNumaPinnedCell
A placement cell pinned to a specific NUMA node, verified at compile time.
ConstNumaPinnedCellRef
A borrowed reference to a cell pinned statically to a specific NUMA node.
ConstNumaPinnedSlice
A contiguous slice of cells pinned to a specific NUMA node, verified at compile time.
ConstNumaPinnedSliceRef
A borrowed reference to a contiguous slice of cells pinned statically to a specific NUMA node.
NumaPinnedCell
A placement cell pinned to a specific NUMA node.
NumaPinnedCellRef
A borrowed reference to a cell pinned to a specific NUMA node.
NumaPinnedSlice
A contiguous slice of cells pinned to a specific NUMA node.
NumaPinnedSliceRef
A borrowed reference to a contiguous slice of cells pinned to a specific NUMA node.