Compare commits
3
Commits
master
...
isolcpus_3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a68dc4318 | ||
|
|
3a26a3e653 | ||
|
|
dac8899249 |
No files matched your search
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user