# I/O HW1
* Snapshot of Sequential Read

* Snapshot of Sequential Write

* Snapshot of Sequential Write (using O_DIRECT)

* Snapshot of Random Read

* Snapshot of Random Write

* Snapshot of Random Write (using O_DIRECT)

---
#### 1. Compare and explain your results of Sequential Read, Sequential Write and (O_DIRECT) Sequential Write.
* execution time: Sequential Read > (O_DIRECT) Sequential Write > Sequential Write
It takes longer to do Sequential Read since we need to get the data from disk if it is not cache.
Sequential Write do ***write back*** while (O_DIRECT)Sequential Write do ***write through***
#### 2. Compare and explain your results of Random Read, Random Write and (O_DIRECT) Random Write.
* execution time: (O_DIRECT) Random Write >Random Read > Random Write
It takes longer to do Random Read than write since we need to get the data from disk if it is not cache.
For (O_DIRECT) Random Write, it takes more seek time and rotational latency. So it takes longer than Random Write.
#### 3. Compare and explain your results of Sequential Read and Random Read.
* execution time: Random Read>Sequential Read
The seek time and ratational latency of Sequential Read much less than those of Random Read.
#### 4. Compare and explain your results of Sequential Write and Random Write.
* execution time: Random Write> Sequential Write
The seek time and ratational latency of Sequential Write much less than those of Random Write.
#### 5. Compare and explain your results of (O_DIRECT) Sequential Write and (O_DIRECT) Random Write.
* execution time: (O_DIRECT) Random Write>(O_DIRECT) Sequential Write
The seek time and ratational latency of (O_DIRECT)Sequential Write much less than those of (O_DIRECT)Random Write.