14 virtual memory
TRANSCRIPT
가상 메모리 살펴보기
아꿈사: http://cafe.naver.com/architect1 김태우: [email protected]
http://chortle.ccsu.edu/assemblytutorial/Chapter-04/ass04_6.html
Index 1
• 시스템 정보
• 가상 메모리 상태
• NUMA 머신에서의 메모리 관리
• 주소 공간의 상태 확인하기
시스템 정보
Related to Memory Not Related to Memory
시스템 정보
Related to Memory Not Related to Memory
시스템 정보
Related to Memory Not Related to Memory
가상 메모리 상태
가상 메모리 상태 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.
가상 메모리 상태 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.
NUMA 머신에서의 메모리 관리
메모리
프로세서
코어
캐시
공유 캐시
코어
캐시
메모리
프로세서
코어
캐시
공유 캐시
코어
캐시
네트워크
CMP 메모리 구조
NUMA 메모리 구조
메모리
프로세서
코어
캐시
공유 캐시
코어
캐시
코어
캐시
NUMA 머신에서의 메모리 관리
http://msdn.microsoft.com/en-us/library/windows/desktop/aa965225(v=vs.85).aspx
주소 공간의 상태 확인하기
Index 2
• 가상 메모리 개요
• 요구 페이징
• 페이지 교체
• 쓰레싱
• 페이지 부재율
물리 메모리보다 큰 가상 메모리
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
가상 메모리를 사용할 때의 공유 라이브러리
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
요구 페이징
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
페이지 부재를 처리하는 과정
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
페이지 교체 필요
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
페이지 교체 과정
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
쓰레싱
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
메모리 참조 패턴의 지역성
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
페이지 부재 빈도
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
시간에 따른 페이지 부재율
페이지 부재율
1
0
시간
작업 집합
http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
참조
• 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
Lisence