๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

โญ 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.