Linux
, SRE
龍星:我的老筆記
https://sites.google.com/site/ina2588book/
Verynice(包:verynice)服務通過調整進程nice(優先級)動態分配CPU資源。/etc/verynice.conf是配置文件,Verynice會分給其中goodexe(比如X、多媒體軟件)更多的CPU資源,badexe反之。
IOWait 放在
http://www.brendangregg.com/USEmethod/use-linux.html
http://www.brendangregg.com/linuxperf.html
Q1: nice 為什麼 user 只能動 1~19?
A: 可能是因為系統層面有些部分還是需要更高的權限,類似 tcp port 1024 以下只有 root 可以開。
A2: CAP_SYS_NICE 能力權限的控管
The calling process attempted to increase its priority by
supplying a negative inc but has insufficient privileges.
Under Linux, the CAP_SYS_NICE capability is required. (But
see the discussion of the RLIMIT_NICE resource limit in
Q2: irq 和 softirq 有什麼不同?
A2: softirq 應該是共用硬體 irq,軟中斷。
Nginx RPS (Request Per Seconds) 比較
正常情況下:14540.80 (/seconds)
使用 ab 測試情況下: 280 (/seconds) <– 因有問題導致 RPQ 過低
(沒有比較沒有傷害)
irq: 硬體有關,通常是網路處理封包