14 virtual memory

27
가상 메모리 살펴보기 아꿈사: http://cafe.naver.com/architect1 김태우: [email protected] http://chortle.ccsu.edu/assemblytutorial/Chapter-04/ass04_6.html

Upload: taewoo-kim

Post on 10-May-2015

685 views

Category:

Education


1 download

TRANSCRIPT

Page 2: 14 virtual memory

Index 1

• 시스템 정보

• 가상 메모리 상태

• NUMA 머신에서의 메모리 관리

• 주소 공간의 상태 확인하기

Page 3: 14 virtual memory

시스템 정보

Related to Memory Not Related to Memory

Page 4: 14 virtual memory

시스템 정보

Related to Memory Not Related to Memory

Page 5: 14 virtual memory

시스템 정보

Related to Memory Not Related to Memory

Page 6: 14 virtual memory

가상 메모리 상태

Page 7: 14 virtual 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.

Page 8: 14 virtual memory

가상 메모리 상태 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

NUMA 머신에서의 메모리 관리

메모리

프로세서

코어

캐시

공유 캐시

코어

캐시

메모리

프로세서

코어

캐시

공유 캐시

코어

캐시

네트워크

CMP 메모리 구조

NUMA 메모리 구조

메모리

프로세서

코어

캐시

공유 캐시

코어

캐시

코어

캐시

Page 10: 14 virtual memory

NUMA 머신에서의 메모리 관리

Page 12: 14 virtual memory

주소 공간의 상태 확인하기

Page 13: 14 virtual memory
Page 14: 14 virtual memory

Index 2

• 가상 메모리 개요

• 요구 페이징

• 페이지 교체

• 쓰레싱

• 페이지 부재율

Page 15: 14 virtual memory

물리 메모리보다 큰 가상 메모리

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 16: 14 virtual memory

가상 메모리를 사용할 때의 공유 라이브러리

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 17: 14 virtual memory

요구 페이징

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 18: 14 virtual memory

페이지 부재를 처리하는 과정

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 19: 14 virtual memory

페이지 교체 필요

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 20: 14 virtual memory

페이지 교체 과정

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 22: 14 virtual memory

메모리 참조 패턴의 지역성

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 23: 14 virtual memory

페이지 부재 빈도

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 24: 14 virtual memory

시간에 따른 페이지 부재율

페이지 부재율

1

0

시간

작업 집합

http://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

Page 25: 14 virtual memory

참조

• 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
Page 27: 14 virtual memory

Lisence