User Tools

Site Tools


linux:debug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:debug [2021/03/11 02:15]
tkilla [High Load]
linux:debug [2021/05/03 13:18] (current)
tkilla [High Load]
Line 38: Line 38:
   top   top
      
-  Cpu(s): 11.4%us, 29.6%sy, 0.0%ni, 58.3%id, .7%wa, 0.0%hi, 0.0%si, 0.0%st+  sar -u 5 
 + 
 + 
 +Results: Cpu(s): 11.4%us, 29.6%sy, 0.0%ni, 58.3%id, .7%wa, 0.0%hi, 0.0%si, 0.0%st
  
 IF "wa" I/O wait is high, the load is most probably Disc bound (or RAM)  IF "wa" I/O wait is high, the load is most probably Disc bound (or RAM) 
 +
 +IF "sy" System is high, it might be, **mdadm rund a RAID check**
  
  
Line 55: Line 60:
   ps -e v   ps -e v
  
-This outputs the state of each process. Specially D is intereting (but also R):+ 
 +Check which processes are in R or D state: 
 + 
 +  ps -eo s,user,cmd | grep ^[RD] | sort | uniq -c | sort -nbr | head -20 
 + 
 + 
 +This outputs the state of each process. Specially D is interesting (but also R):
  
   * D    Marks a process in disk (or other short term, uninterruptible) wait.   * D    Marks a process in disk (or other short term, uninterruptible) wait.
   * R    Marks a runnable process   * R    Marks a runnable process
-...+ 
 + 
 +PSN - Linux Process Snapper is another nice tool: 
 + 
 +Install from: https://tanelpoder.com/psnapper/ 
  
 === Links === === Links ===
Line 65: Line 81:
   * https://www.linuxjournal.com/article/10688   * https://www.linuxjournal.com/article/10688
   * https://www.tummy.com/articles/isolating-heavy-load/   * https://www.tummy.com/articles/isolating-heavy-load/
 +  * https://tanelpoder.com/posts/high-system-load-low-cpu-utilization-on-linux/
  
linux/debug.txt · Last modified: 2021/05/03 13:18 by tkilla