Linux
, SRE
代表一段時間內的系統工作量
除了CPU以外,I/O也是影響因素
Zabbix 的監測結果跟 "top/uptime" 沒有一致,因為不同軟體的實作方式都有差異
實際上 Zabbix 採用的是讀取 /proc/stat
來進行計算
相關的內容在 zabbix
fio 此工具可以針對不同的寫 block 的方式做壓測
buffer的地方滿多的
從 library -> kernel -> disk 三層都有
有興趣的可以閱讀這篇文章 Ensuring data reaches disk
在書本裡面的範例出現的問題應該是在 kernel buffer
context-switch vs. system call ?
大部分system call 是權限轉換
不能直接兩者比較,要看system call的過程中是否有context-switch
process and thread 差別在 heap
Interupt
阿光 單core arduino project 因為只有'一個'cpu 所以假如要寫兩個並存的while loop function就必須使用context switching
function 1) 監看開關有沒有被打開
function 2) 開關有被打開的話用音量來控制power relay
兩個function以一個millisecond的速度在不斷交換(context switching)
project影片
sleep()
IO:
Demo問題排除:
運行的OS不同,可能會無法出現教材中的數據
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