###### tags: `computer organization` `test` `thu` {%hackmd theme-dark %} # Chapter 6 ## 1. Disk Access Time 公式 $$Access\ time\ = Seek\ +\ Latency\ +\ Transfer\ time$$ 因此,我們可以得到: $$T_a\ = T_s\ +\ \frac{1}{2r}\ +\ \frac{b}{rN}$$ 其中: $$T_s\ = \ Average\ Seek\ time$$ $$T_a\ = \ Average\ Access\ time$$ $$N\ = \ Number\ of\ bytes\ per\ track$$ $$b\ = \ Number\ of\ bytes\ to\ transfer$$ $$r\ = \ Revs.\ per\ second$$ ## 2. 儲存架構 ### 架構 (Server端) - DAS (Direct Attached Storage, 直接連接儲存) - 簡單,價格適中。 - 但擴充性爛。 - NAS (Network Attached Storage, 網路連接儲存) - 簡單,便宜。 - 但效能有限。 - SAN (Storage Area Network, 儲存區域網路) - 超快,易擴充,而且為區塊存取。 - 但超貴,還要光纖網路卡。 ### 掛載方式 (Client端) - iSCSI (Internet Small Computer System Interface) - 使用port 860/3260 - target: 提供空間的Server - Initiator: 使用空間的Client - NFS (Network File System) - Sun公司@1984年 - 可直接用指令mount - CIFS (Common Internet File System) - IBM -> 微軟(因此多半在Windows上) - 可直接用指令mount ## 3. RAID種類 ### 名詞 Striped: 條狀分開在不同的硬碟存 - 效果: 加快速度 - 需求: 一定要>= 2 鏡像: - 效果: 備份 - 需求: 一定要>= 2 parity: - 效果: 除錯 - 需求: 可以分stripe,也可以分硬碟。 ### a. RAID 0/1/10 #### RAID 0: Striped - 至少需要2個。 #### RAID 1: 2x鏡像 - 至少需要2個。 #### RAID 10: 2xStriped + 2x鏡像 - 至少需要4個。 ### b. RAID 2: Striped + parity