# 磁碟讀寫基本測試

首先了解兩個特殊設備

/dev/null偽設備，回收站.寫該文件不會產生IO /dev/zero偽設備，會產生空字符流，對它不會產生IO

測試方法：&#x20;

IO寫入速度&#x20;

```
time dd if =/dev/zero of=test bs=8k count=300000 oflag=direct
```

IO讀取速度

```
dd if=test bs=8k count=300000 of=/dev/null iflag=direct
```

表示每次寫入/讀取8k的數據，執行300000次，dd命令可以通用，但不夠專業，也沒有考慮到緩存和物理讀的區分


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
