โญ Group_Study70 [9์ฃผ์ฐจ] File System Overview File System Overview File System โ ์ฌ์ฉ์๋ค์ด ์ฌ์ฉํ๋ ํ์ผ๋ค์ ๊ด๋ฆฌํ๋ ์ด์์ฒด์ ์ ํ ๋ถ๋ถ โ File system์ ๊ตฌ์ฑ Files ์ฐ๊ด๋ ์ ๋ณด์ ์งํฉ Directory Structure ์์คํ ๋ด ํ์ผ๋ค์ ์ ๋ณด๋ฅผ ๊ตฌ์ฑ ๋ฐ ์ ๊ณต Partitions Directory๋ค์ ์งํฉ์ ๋ ผ๋ฆฌ์ /๋ฌผ๋ฆฌ์ ์ผ๋ก ๊ตฌ๋ถ File Concept โ ๋ณด์กฐ ๊ธฐ์ต ์ฅ์น์ ์ ์ฅ๋ ์ฐ๊ด๋ ์ ๋ณด๋ค์ ์งํฉ ๋ณด์กฐ ๊ธฐ์ต ์ฅ์น ํ ๋น์ ์ต์ ๋จ์ Sequence of bytes (๋ฌผ๋ฆฌ์ ์ ์) File์ ๋ถ๋ฅ โ ๋ด์ฉ์ ๋ฐ๋ฅธ ๋ถ๋ฅ Program file Source program, object program, executable files Data file โ ํํ์ ๋ฐ๋ฅธ ๋ถ๋ฅ Text(ascii) file Bina.. 2023. 1. 27. [9์ฃผ์ฐจ] Disk System Disk System Disk System Disk Pack โ ๋ฐ์ดํฐ ์๊ตฌ ์ ์ฅ ์ฅ์น (๋นํ๋ฐ์ฑ) โ ๊ตฌ์ฑ Sector ๋ฐ์ดํฐ ์ ์ฅ/ํ๋ ์๋ฌผ๋ฆฌ์ ๋จ์ Track Platter ํ ๋ฉด์์ ์ค์ฌ์ผ๋ก ๊ฐ์ ๊ฑฐ๋ฆฌ์ ์๋ sector๋ค์ ์งํฉ Cylinder ๊ฐ์ ๋ฐ์ง๋ฆ์ ๊ฐ๋ track์ ์งํฉ Platter ์๋ฉด์ ์์ฑ ๋ฌผ์ง์ ์ ํ ์ํ ๊ธ์ํ ๋ฐ์ดํฐ ๊ธฐ๋ก/ํ๋ ์ด ๊ฐ๋ฅํ ๊ธฐ๋ก ๋งค์ฒด Surface Platter์ ์๋ฉด๊ณผ ์๋ซ๋ฉด Disk Drive โ Disk pack์ ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋กํ๊ฑฐ๋ ํ๋ ํ ์ ์๋๋ก ๊ตฌ์ฑ๋ ์ฅ์น โ ๊ตฌ์ฑ Head ๋์คํฌ ํํ์ ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ก/ํ๋ Arm Head๋ฅผ ๊ณ ์ /์งํฑ Positioner (boom) Arm์ ์งํฑ Head๋ฅผ ์ํ๋ track์ผ๋ก ์ด๋ Spindle Disk pack.. 2023. 1. 26. [8์ฃผ์ฐจ] Virtual Memory Management: Other considerations Virtual Memory Management: Other considerations Page Size โ ์์คํ ํน์ฑ์ ๋ฐ๋ผ ๋ค๋ฅด๋ค ์ ๋ต x ์ ์ ์ปค์ง๋ ๊ฒฝํฅ โ ์ผ๋ฐ์ ์ธ page size 2^7(128) bytes ~ 2^22(4M) bytes Small page size vs Large page size Small Page Size Large Page Size Large page table / # of PF Small page table / # of PF high overhead(kernel) low overhead(kernel) ๋ด๋ถ ๋จํธํ ๊ฐ์ ๋ด๋ถ ๋จํธํ ์ฆ๊ฐ I/O์๊ฐ ์ฆ๊ฐ I/O์๊ฐ ๊ฐ์ locality ํฅ์ locality ์ ํ page fault ์ฆ๊ฐ page fault ๊ฐ์ โ HW .. 2023. 1. 25. [8์ฃผ์ฐจ] Virtual Memory Management: Replacement Strategies for Variable Alloc. Virtual Memory Management: Replacement Strategies for Variable Alloc. Working Set(WS) Alogrithm โ 1968 Denning โ Working Set Process๊ฐ ํน์ ์์ ์ ์์ฃผ ์ฐธ์กฐํ๋ page๋ค์ ์งํฉ ์ต๊ทผ ์ผ์ ์๊ฐ ๋์ ์ฐธ์กฐ๋ page๋ค์ ์งํฉ ์๊ฐ์ ๋ฐ๋ผ ๋ณํจ W(t, Δ) The working set of a process at time t Time interval[t - Δ, t]๋์ ์ฐธ์กฐ๋ pages๋ค์ ์งํฉ Δ: window size, system parameter Working set Memory management โ Locality์ ๊ธฐ๋ฐ โ Working set์ ๋ฉ๋ชจ๋ฆฌ์ ํญ์ ์ ์ง Page fault r.. 2023. 1. 24. [8์ฃผ์ฐจ] Virtual Memory Management: Replacement Strategies for Fixed Alloc. 2 Virtual Memory Management: Replacement Strategies for Fixed Alloc. 2 LFULeast Frequently Used) Algorithm โ ๊ฐ์ฅ ์ฐธ์กฐ ํ์๊ฐ ์ ์ page ๊ต์ฒด Tie-braking rule: LRU โ page ์ฐธ์กฐ ์๋ง๋ค, ์ฐธ์กฐ ํ์๋ฅผ ๋์ ์์ผ์ผํจ โ Locality ํ์ฉ LRU ๋๋น ์ ์ overhead โ ๋จ์ ์ต๊ทผ ์ ์ฌ๋ ์ฐธ์กฐ๋ ๊ฐ๋ฅ์ฑ์ด ๋์ page๊ฐ ๊ต์ฒด๋ ๊ฐ๋ฅ์ฑ ์ฐธ์กฐ ํ์ ๋์ overhead Example โ Number of page faults = 7 NUR(Not Used Recently) Algorithm โ LRU approximation shceme LRU๋ณด๋ค ์ ์ overhead๋ก ๋น์ทํ ์ฑ๋ฅ ๋ฌ์ฑ ๋ชฉ์ โ.. 2023. 1. 23. [7์ฃผ์ฐจ] Virtual Memory Management: Replacement Strategies for Fixed Alloc.1 Virtual Memory Management: Replacement Strategies for Fixed Alloc.1 Locality โ ํ๋ก์ธ์ค๊ฐ ํ๋ก๊ทธ๋จ/๋ฐ์ดํฐ์ ํน์ ์์ญ์ ์ง์ค์ ์ผ๋ก ์ฐธ์กฐํ๋ ํ์ โ ๊ณต๊ฐ์ ์ง์ญ์ฑ (Spatial locality) โ ์๊ฐ์ ์ง์ญ์ฑ (Temporal locality) Locality(Example) โ ๊ฐ์ paging system page size = 1000 words Machine instruction size = 1 word ์ฃผ์ ์ง์ ์ word ๋จ์๋ก ์ด๋ฃจ์ด์ง ํ๋ก๊ทธ๋จ์ 4๋ฒ page์ continuous allocation ๋จ n = 1000 Replacement Strategies โ Fixed Allocation MIN(OPT, B0) algor.. 2023. 1. 18. ์ด์ 1 2 3 4 5 ยทยทยท 12 ๋ค์