Title bytes under flights' writes compared with AVX2 on threads of their own, the pairs sent up made on them; helpers that work ahead are not kept on the fast cores
VICTORY_UNDER_WIDE=0, VICTORY_UNDER_THREADS (6), VICTORY_FAST_CORES=3 (as before: all of them), VICTORY_WIDE_SPIN=<us> (0: off). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
fa4f6c33e6
commit
a69eb0cacb
6 files changed
+306
-82
No files matched your search
@@ -238,7 +238,11 @@ impl Pool {
|
||||
for i in 1..threads {
|
||||
// (A helper that is not there is only missed.)
|
||||
let _ = std::thread::Builder::new().name(format!("{name}-{i}")).spawn(move || {
|
||||
crate::cores::keep_helper_on_fast_cores(name);
|
||||
if name == "victory-land" {
|
||||
crate::cores::keep_helper_on_fast_cores(name);
|
||||
} else {
|
||||
crate::cores::keep_many_on_fast_cores(name);
|
||||
}
|
||||
pool.help()
|
||||
});
|
||||
}
|
||||
@@ -324,6 +328,17 @@ pub(crate) fn each(count: usize, f: &(dyn Fn(usize) + Sync)) {
|
||||
POOL.get_or_init(|| Pool::new("victory-land", threads())).each(count, f);
|
||||
}
|
||||
|
||||
/// [`Pool::each`] on threads kept for the title's bytes under flights' writes
|
||||
/// (`VICTORY_UNDER_THREADS`, 6 with this one).
|
||||
pub(crate) fn each_under(count: usize, f: &(dyn Fn(usize) + Sync)) {
|
||||
static POOL: OnceLock<&'static Pool> = OnceLock::new();
|
||||
POOL.get_or_init(|| {
|
||||
let threads = std::env::var("VICTORY_UNDER_THREADS").ok().and_then(|v| v.trim().parse().ok()).unwrap_or(6usize);
|
||||
Pool::new("victory-under", threads.clamp(1, 16))
|
||||
})
|
||||
.each(count, f);
|
||||
}
|
||||
|
||||
/// Calls `f` with every number below `count`, on this thread and on threads
|
||||
/// kept for making descriptors (`VICTORY_VIEW_THREADS`, 4 with this one; 1:
|
||||
/// on this one alone). Those for `records`, the heaps' records copied as
|
||||
|
||||
Reference in new issue
Block a user