Compare commits

...
Author SHA1 Message Date
kraemr 2a68dc4318 isolcpus now only isolates core 3 2026-02-27 15:50:22 +01:00
kraemr 3a26a3e653 fixed linter error 2026-02-27 15:18:18 +01:00
kraemr dac8899249 removed yield and added small async sleep in async loop 2026-02-27 14:53:07 +01:00
3 changed files with 5 additions and 6 deletions

No files matched your search

+3 -3
View File
@@ -58,9 +58,9 @@ in {
"oops=panic" # Treat kernel oops as panic for auto-recovery
"usbcore.autosuspend=-1" # Possibly fixes dre disconnect issue?
"isolcpus=2,3" # Isolate cpus 2 and 3 from scheduler for better latency, 2 runs ethercatthread and 3 runs server control-loop
"nohz_full=2,3" # In this mode, the periodic scheduler tick is stopped when only one task is running, reducing kernel interruptions on those CPUs.
"rcu_nocbs=2,3" # Moves RCU (Read-Copy Update) callback processing away from CPUs 2 and 3.
"isolcpus=3" # Isolate cpu 3 from scheduler for better latency, 3 runs server control-loop
"nohz_full=3" # In this mode, the periodic scheduler tick is stopped when only one task is running, reducing kernel interruptions on those CPUs.
"rcu_nocbs=3" # Moves RCU (Read-Copy Update) callback processing away from CPU 3.
];
+1 -1
View File
@@ -38,7 +38,7 @@ pub fn start_loop_thread(
SpinSleeper::new(3_333_333) // frequency in Hz ~ 1 / 300µs, Basically specifies the accuracy of our sleep
.with_spin_strategy(spin_sleep::SpinStrategy::YieldThread);
let _ = set_core_affinity(2);
let _ = set_core_affinity(3);
// Get thread ID in a platform-specific way
#[cfg(target_os = "linux")]
+1 -2
View File
@@ -33,7 +33,6 @@ use rest::init::start_api_thread;
use serialport::UsbPortInfo;
use smol::{
channel::{Receiver, Sender},
future,
lock::RwLock,
};
use socketioxide::extract::SocketRef;
@@ -413,7 +412,7 @@ fn main() {
app_state.clone(),
));
}
future::yield_now().await;
smol::Timer::after(Duration::from_micros(150)).await;
}
});
}