Browse Source

Update linux-examples.md

Nordstrand 3 years ago
parent
commit
034eb046f6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      config/general/linux-examples.md

+ 3 - 1
config/general/linux-examples.md

@@ -250,10 +250,12 @@ breadcrumbs:
 - Monitor interrupts:
     - `irqtop`
     - `watch -n0.1 /proc/interrupts`
-- Run command with high or low priority:
+- Run command with high or low CPU priority:
     - Command: `nice -n<n> <cmd>` (`-20 <= n <= 19`)
     - The nice value goes from -20 (highest priority) to 19 (lowest priority), with 0 as the default priority.
     - The nice value is inherited by child processes (meaning forking processes maintains the nice value it started with).
+    - Use `renice` to change the value.
+    - Use `ionice` to set the I/O scheduler and scheduler-specific priority.
 - Stress test with stress-ng:
     - Install (Debian): `apt install stress-ng`
     - Stress CPU: `stress-ng -c $(nproc) -t $((10*60))` (use all CPU threads for 10 minutes)