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: 硬體有關,通常是網路處理封包
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing