14 virtual memory
TRANSCRIPT
![Page 1: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/1.jpg)
가상 메모리 살펴보기
아꿈사: http://cafe.naver.com/architect1 김태우: [email protected]
http://chortle.ccsu.edu/assemblytutorial/Chapter-04/ass04_6.html
![Page 2: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/2.jpg)
Index 1
• 시스템 정보
• 가상 메모리 상태
• NUMA 머신에서의 메모리 관리
• 주소 공간의 상태 확인하기
![Page 3: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/3.jpg)
시스템 정보
Related to Memory Not Related to Memory
![Page 4: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/4.jpg)
시스템 정보
Related to Memory Not Related to Memory
![Page 5: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/5.jpg)
시스템 정보
Related to Memory Not Related to Memory
![Page 6: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/6.jpg)
가상 메모리 상태
![Page 7: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/7.jpg)
가상 메모리 상태 Member Name Description
dwLength The size of the MEMORYSTATUS data structure, in bytes.
dwMemoryLoad A number between 0 and 100 that specifies the approximate percentage of physical memory that is in use (0 indicates no memory use and 100 indicates full memory use).
dwTotalPhys The amount of actual physical memory, in bytes.
dwAvailPhys The amount of physical memory currently available, in bytes.
![Page 8: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/8.jpg)
가상 메모리 상태 Member Name Description
dwTotalPageFile The current size of the committed memory limit, in bytes. ( = physical memory + page file - small overhead )
dwAvailPageFile The maximum amount of memory the current process can commit, in bytes. This value should be smaller than the system-wide available commit.
dwTotalVirtual The size of the user-mode portion of the virtual address space of the calling process, in bytes. This value depends on the type of process, the type of processor, and the configuration of the operating system.
dwAvailVirtual The amount of unreserved and uncommitted memory currently in the user-mode portion of the virtual address space of the calling process, in bytes.
![Page 9: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/9.jpg)
NUMA 머신에서의 메모리 관리
메모리
프로세서
코어
캐시
공유 캐시
코어
캐시
메모리
프로세서
코어
캐시
공유 캐시
코어
캐시
네트워크
CMP 메모리 구조
NUMA 메모리 구조
메모리
프로세서
코어
캐시
공유 캐시
코어
캐시
코어
캐시
![Page 10: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/10.jpg)
NUMA 머신에서의 메모리 관리
![Page 11: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/11.jpg)
http://msdn.microsoft.com/en-us/library/windows/desktop/aa965225(v=vs.85).aspx
![Page 12: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/12.jpg)
주소 공간의 상태 확인하기
![Page 13: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/13.jpg)
![Page 14: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/14.jpg)
Index 2
• 가상 메모리 개요
• 요구 페이징
• 페이지 교체
• 쓰레싱
• 페이지 부재율
![Page 15: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/15.jpg)
물리 메모리보다 큰 가상 메모리
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 16: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/16.jpg)
가상 메모리를 사용할 때의 공유 라이브러리
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 17: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/17.jpg)
요구 페이징
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 18: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/18.jpg)
페이지 부재를 처리하는 과정
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 19: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/19.jpg)
페이지 교체 필요
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 20: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/20.jpg)
페이지 교체 과정
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 21: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/21.jpg)
쓰레싱
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 22: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/22.jpg)
메모리 참조 패턴의 지역성
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 23: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/23.jpg)
페이지 부재 빈도
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 24: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/24.jpg)
시간에 따른 페이지 부재율
페이지 부재율
1
0
시간
작업 집합
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
![Page 25: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/25.jpg)
참조
• Windows via C++ 5th Edition
• Operating System Concepts 7th Edition
• http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
• http://chortle.ccsu.edu/assemblytutorial/Chapter-04/ass04_6.html
![Page 26: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/26.jpg)
![Page 27: 14 virtual memory](https://reader034.vdocuments.site/reader034/viewer/2022052522/554f0049b4c90580698b4d6b/html5/thumbnails/27.jpg)
Lisence