mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Support mdraid hierarchies for storage topology detection.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
e019ed77d0
commit
d665a34f30
4 files changed
+188
-54
No files matched your search
@@ -9,7 +9,11 @@ type Id = usize;
|
||||
type Mask = u128;
|
||||
type Masks = [Mask; MASK_BITS];
|
||||
|
||||
const MASK_BITS: usize = 128;
|
||||
const MASK_BITS: usize = CORES_MAX;
|
||||
|
||||
/// Maximum number of cores we support; for now limited to bits of our mask
|
||||
/// integral.
|
||||
pub const CORES_MAX: usize = 128;
|
||||
|
||||
/// The mask of logical cores available to the process (at startup).
|
||||
static CORES_AVAILABLE: LazyLock<Mask> = LazyLock::new(|| into_mask(query_cores_available()));
|
||||
|
||||
Reference in new issue
Block a user