โญ Group_Study/Operating System37 [7์ฃผ์ฐจ] Virtual Memory Management: SW components Virtual Memory Management: SW components SoftWare Components: ๊ฐ์ โ ๊ฐ์ ๋ฉ๋ชจ๋ฆฌ ์ฑ๋ฅ ํฅ์์ ์ํ ๊ด๋ฆฌ ๊ธฐ๋ฒ๋ค Allocation Strategies (ํ ๋น ๊ธฐ๋ฒ) Fetch Strategies Placement Strategies(๋ฐฐ์น ๊ธฐ๋ฒ) Replacement Strategies (๊ต์ฒด ๊ธฐ๋ฒ) Cleaning Strategies (์ ๋ฆฌ ๊ธฐ๋ฒ) Load Control Strategies (๋ถํ ์กฐ์ ๊ธฐ๋ฒ) Alloctaion Strategies โ ๊ฐ ํ๋ก์ธ์ค์๊ฒ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ผ๋ง๋งํผ ์ค ๊ฒ์ธ๊ฐ? Fixed Alloctaion(๊ณ ์ ํ ๋น) ํ๋ก์ธ์ค์ ์คํ ๋์ ๊ณ ์ ๋ ํฌ๊ธฐ์ ๋ฉ๋ชจ๋ฆฌ ํ ๋น Variable allocation(๊ฐ๋ณ ํ ๋น) ํ๋ก์ธ์ค์ ์คํ๋์.. 2023. 1. 17. [7์ฃผ์ฐจ] Virtual Memory Management: Cost model, HW components Virtual Memory Management: Cost model, HW components Virtual Memory Management โ ๊ฐ์ ๋ฉ๋ชจ๋ฆฌ(๊ธฐ์ต ์ฅ์น) โ ๊ฐ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ์ ๋ชฉ์ ๊ฐ์ ๋ฉ๋ชจ๋ฆฌ์ ์์คํ ์ฑ๋ฅ ์ต์ ํ Cost Model ๋ค์ํ ์ต์ ํ ๊ธฐ๋ฒ Cost Model for VM System โ Page fault frequency (๋ฐ์ ๋น๋) โ Page fault rate (๋ฐ์๋ฅ ) โ Page fault rate๋ฅผ ์ต์ํ ํ ์ ์๋๋ก ์ ๋ต๋ค์ ์ค๊ณํด์ผ ํ๋ค context switch ๋ฐ kernel ๊ฐ์ ์ ์ต์ํ ์์คํ ์ฑ๋ฅ ํฅ์ โ Page reference string(d) ํ๋ก์ธ์ค์ ์ํ ์ค ์ฐธ์กฐํ ํ์ด์ง ๋ฒํธ ์์ โ Page fault rate = F(w) ํ์ด์ง.. 2023. 1. 15. [6์ฃผ์ฐจ] Virtual Memory: Hybrid Paging-Segmentation System Virtual Memory: Hybrid Paging-Segmentation System Hybrid Paging-Segmentation System โ Paging๊ณผ Segmentation์ ์ฅ์ ๊ฒฐํฉ โ ํ๋ก๊ทธ๋จ ๋ถํ ๋ ผ๋ฆฌ ๋จ์์ segment๋ก ๋ถํ ๊ฐ segment๋ฅผ ๊ณ ์ ๋ ํฌ๊ธฐ์ page๋ค๋ก ๋ถํ โ Page ๋จ์๋ก ๋ฉ๋ชจ๋ฆฌ์ ์ ์ฌ Address Mapping โ Virtual address: v = (s, p, d) s: segment number p: page number d: offset in a page โ SMT์ PMT ๋ชจ๋ ์ฌ์ฉ ๊ฐ ํ๋ก์ธ์ค๋ง๋ค ํ๋์ SMT ๊ฐ segment๋ง๋ค ํ๋์ PMT โ Address mapping Direct, associated ๋ฑ โ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ FPM.. 2023. 1. 13. [6์ฃผ์ฐจ] Virtual Memory: Segmentation System Virtual Memory: Segmentation System Segmentation System โ ํ๋ก๊ทธ๋จ์ ๋ ผ๋ฆฌ์ block์ผ๋ก ๋ถํ (segment) Block์ ํฌ๊ธฐ๊ฐ ์๋ก ๋ค๋ฅผ ์ ์๋ค ํน์ง โ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ฏธ๋ฆฌ ๋ถํ ํ์ง ์๋๋ค (VPM๊ณผ ์ ์ฌ) โ Segment sharing/protection์ด ์ฉ์ด โ Address mapping ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ์ overhead๊ฐ ํฌ๋ค โ No internal fragmentation External fragmentation ๋ฐ์ ๊ฐ๋ฅ Address Mapping โ Virtual address : v = (s, d) s: segment number d: displacement in a segemtn โ Segment Map Tagble(SMT) โ Add.. 2023. 1. 12. [6์ฃผ์ฐจ] Virtual Memory: Paging system Virtual Memory: Paging system Paging System โ ํ๋ก๊ทธ๋จ์ ๊ฐ์ ํฌ๊ธฐ์ ๋ธ๋ก์ผ๋ก ๋ถํ (Pages) โ Terminologies Page: ํ๋ก๊ทธ๋จ์ ๋ถํ ๋ block Page frame: ๋ฉ๋ชจ๋ฆฌ์ ๋ถํ ์์ญ(Page์ ๊ฐ์ ํฌ๊ธฐ๋ก ๋ถํ ) ํน์ง โ ๋ ผ๋ฆฌ์ ๋ถํ ์ด ์๋(ํฌ๊ธฐ์ ๋ฐ๋ฅธ ๋ถํ ) Page ๊ณต์ (sharing) ๋ฐ ๋ณดํธ(protection) ๊ณผ์ ์ด ๋น๊ต์ ๋ณต์ก โ Simple and Efficient Segmentation ๋๋น โ No external fragmentation Internal fragmentation ๋ฐ์ ๊ฐ๋ฅ Address Mapping โ Virtual address: v = (p, d) p: page number d: displacement(o.. 2023. 1. 11. [6์ฃผ์ฐจ] Virtual Memory: Non-continuous allocation Virtual Memory: Non-continuous allocation Virtual Storage(Memory) โ Non-continuous allocation โ ์ฌ์ฉ์ ํ๋ก๊ทธ๋จ์ ์ฌ๋ฌ ๊ฐ์ block์ผ๋ก ๋ถํ โ ์คํ ์, ํ์ํ block๋ค๋ง ๋ฉ๋ชจ๋ฆฌ์ ์ ์ฌ ๋๋จธ์ง block๋ค์ swap device์ ์กด์ฌ โ ๊ธฐ๋ฒ paging system segmentation system Hybrid paging/segmentation system Address mapping Continuous allocation โ Relative address (์๋ ์ฃผ์) ํ๋ก๊ทธ๋จ์ ์์ ์ฃผ์๋ฅผ 0์ผ๋ก ๊ฐ์ ํ ์ฃผ์ โ Reloacation (์ฌ๋ฐฐ์น) ๋ฉ๋ชจ๋ฆฌ ํ ๋น ํ, ํ ๋น๋ ์ฃผ์(allocation address)์.. 2023. 1. 8. ์ด์ 1 2 3 4 5 6 7 ๋ค์