์ ์ฒด ๊ธ214 Docker in Docker๋ฅผ ์ ์ฉํ Jenkins ์ค์นํ๊ธฐ Docker in Docker๋ฅผ ์ ์ฉํ Jenkins ์ค์นํ๊ธฐ 1. ๋์ปค ์ค์น โ ํจํค์ง๋ค์ด ์ต์ ๋ฒ์ ์ธ์ง ํ์ธ sudo apt-get update && upgrade โ apt๊ฐ HTTPS๋ฅผ ํตํด repository๋ฅผ ์ด์ฉํ๋ ๊ฒ์ ํ์ฉํ ์ ์๋๋ก ํด์ฃผ๋ ํจํค์ง๋ค ์ค์น sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release โ docker ๊ณต์ GPG key ์ถ๊ฐ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg โ docker repository๋ฅผ ๋ฑ๋ก ech.. 2023. 1. 25. Jenkins ํ๋ก์ ํธ ์์ฑ ๋ฐ CI/CD ๊ตฌ์ถ Jenkins ํ๋ก์ ํธ ์์ฑ ๋ฐ CI/CD ๊ตฌ์ถ Jenkins ๋ฉ์ธํ๋ฉด์์ '์๋ก์ด item' ํด๋ฆญ ์ด๋ฆ ์์ฑ ๋ฐ Freestyle project ์ ํ ํ OK ์์ค ์ฝ๋ ๊ด๋ฆฌ > Git ์ ํ ๋น๋ ์ ๋ฐ > Build when a change is pushed to Gitlab. ์ ํ & Secret token > Generate ์ ํ ํ key ๋ณต์ฌ Build Steps > Execute shell ์ ํ ํ๋ก์ ํธ ๋ฃจํธ ํด๋๋ก ์ด๋ ํ Dockerfile ์คํํ๋ ์ ์คํฌ๋ฆฝํธ ์์ฑ # ํ๋ก์ ํธ ๋ฃจํธ๋ก ์ด๋์ด ํ์ํ ๊ฒฝ์ฐ cd ${PROJECT_ROOT} docker build -t ${CONTAINER_NAME} . docker run -d -p ํฌํธ๋ฒํธ:ํฌํธ๋ฒํธ ${CONTAINER_NAME} ๋น๋ ํ.. 2023. 1. 25. [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 ยทยทยท 6 7 8 9 10 11 12 ยทยทยท 36 ๋ค์