중요 ! memory region 은 물리적으로 쓸 수 있는 영 역을 설정한 것이고, reserved region 은 사용하지 말아야 할 부분 을 설정한 것입니다. kernel 이 사용하는 영역을 reserved 영역으로 설정하였습니다. -> 이 내용은 1/10 스터디를.

Slides:



Advertisements
Similar presentations
The Practice of Micro-processor Yonam Institute of Digital Technology 06. LCD Control.
Advertisements

천주희 군산대학교 통계컴퓨터과학과 정보과학기술 연구실
Chris Riesbeck, Fall 2007 Dynamic Memory Allocation Today Dynamic memory allocation – mechanisms & policies Memory bugs.
Def f(n): if (n == 0): return else: print(“*”) return f(n-1) f(3)
Another Presentation © All Rights Reserved.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Return, Risk, and the Security Market Line Chapter Thirteen.
02/08/2015Regional Writing Centre2 02/08/2015Regional Writing Centre3.
2010 China Plast Trade Fair Photo Album Collection © 2011 Horng Tair Industrial Co.,Ltd All Rights Reserved.
LanguageTranslation FinnishJärjestelmänvalvoja FrenchAdministrateur HungarianRendszergazda Portuguese (Brazil)Administrador Portuguese (Portugal)Administrador.
A time for everything A time for everything Route A Influence Age 7-9.
프로그래밍 기초와 실습 Chapter 7 Enumeration Types and typedef.
KyungHee Univ. 1-0 문자열 입 · 출력 프로그램 작성 예. KyungHee Univ. 1-1  모니터에 문자열 출력 하는 프로그램 작성  표준 출력 장치에 문자를 출력 하는 함수 함수의 기본형 : void SCI_OutChar(letter)  문자를.
LanguageTranslation FinnishJärjestelmänvalvoja FrenchAdministrateur HungarianRendszergazda Portuguese (Brazil)Administrador Portuguese (Portugal)Administrador.
ISLab Flash Team Flash File System Ban,A US Patent 5,404,485 한국외국어대학교 컴퓨터및정보통신공학과 박 성 환.
Codec,battery,powermanager 커널 드라이버
Chapter 06 데이터베이스 연동 지원 작성자 : 장은호 소속팀 : 네이버메인개발 작성년월일 :
Composition (Part 2) 1. Class Invariants  class invariant  some property of the state of the object that is established by a constructor and maintained.
14 1 Embedded Software Lab. Embedded Software Lab Daejun Park, Eunsoo Park Lecture 8 Synchronization.
Linux/UNIX Programming APUE (Introduction) 문양세 강원대학교 IT 대학 컴퓨터과학전공.
이산수학 (Discrete Mathematics) 3.5 재귀 알고리즘 (Recursive Algorithms) 2006 년 봄학기 문양세 강원대학교 컴퓨터과학과.
Deterministic Problem Introduction 이 챕터에서 다음과 같은 Inhomogeneous 타입의 Equation 을 다룰것이다 Deterministic Problem 에서 g 에 대한 해 L 은 유일하다 Analysis: L 과 g 가 주어졌을 때.
UNIT 29 MCU Project 로봇 SW 교육원 조용수.
영상 획득 영상 저장 카메라 파라메터 커스텀 이미지
쉽게 풀어쓴 C언어 Express 제14장 포인터 활용 C Express.
컴파일러 입문 제 5 장 Context-Free 문법.
Aimee Vilcins 5 th Grade Core Memory Song Sing Sing Together.
제 10 장 Cache Memory. kuic.kyonggi.ac.kr/~dssung 10.0 Cache = Cache Memory Cache 는 Fast Memory 이며 CPU 와 Memory 사이에 위치 Memory 내 일부 정보를 가지고 있다 CPU Cache.
목차 Chap10. Digital Communications BER Performance in AWGN (Block Coding and Fading) 10.1 Digital Communications with Block Coding in Fading 10.2 BER Performance.
CODELABOR Shin Sang Jae Installation Guide (Security – XecureWeb 7.0)
장보길 한국 외국어대학교 디지털정보공학과 System Software LAB ULKML ftrace 를 이용한 sync System Call 추적.
C HAPTER 9 Cache Memory and Virtual Memory © 2014 Cengage Learning Engineering. All Rights Reserved. 1 Computer Organization and Architecture: Themes and.
제 11 장 Virtual Memory. kuic.kyonggi.ac.kr/~dssung 11.1 Comparison of Cache and Virtual Memory CPU Cache Memory Hit CPU address = Memory address Cache.
Return to Home! Go To Next Slide! Return to Home! Go To Next Slide!
Presentation by HyounSoo. Kim Embedded System Lab ChungBuk National University Practice 5~6 : 온도 및 습도 센서 제어 및 적외선 센서 제어 (ZigbeX.
Multiplication Facts Step by Step © Math As A Second Language All Rights Reserved next.
MUTHER’S GRID MIS 373: Basic Operations Management1 Dept. 1 Dept 2. Dept 3. Dept 4. Dept. 5 Dept 6. A A A.
Aimee Vilcins 4 th Grade Memory Songs Birch Tree.
Copyright © 2008 Vista Higher Learning. All rights reserved. 9.
Ratio Analysis - Return on Capital Employed (ROCE)
A time for everything A time for everything Route B English Age 7-9.
A few points to mention There are two Olympus machines!
Waves!.
MIS 581 Enthusiastic Studysnaptutorial.com
MIS 564 Enthusiastic Studysnaptutorial.com
Introduction to Operating Systems
التأهيل التربوي المملكة العربية السعودية جامعة الملك عبدالعزيز
My most important Business Challenges & Leadership Challenges?
نظام الفارابي لإدارة جودة التعليم والتعلم
توكيد الذات.
© 2012 Elsevier, Inc. All rights reserved.

Processing Information Into Your Memory System
How Functions Work Part 2
Copyright © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Common Core Standards:
© 2012 Elsevier, Inc. All rights reserved.
copyright ALL RIGHTS RESERVED. 4/12/2019 copyright ALL RIGHTS RESERVED.
© 2012 Elsevier, Inc. All rights reserved.
IMAGE SEGMENTATION – CONNECTED COMPONENT LABELING
Starting & Building a Rotaract Club.
copyright ALL RIGHTS RESERVED.
© All Rights Reserved.
Introduction Lab1 A crash course in assembler programming
How Memory Leaks Work with Memory Diagram
Forms.
Chapter 08.
© 2015 Elsevier, Inc. All rights reserved.
Sequence 2: Me and my lifestyle.
© 2015 Elsevier, Inc. All rights reserved.
Fetch And Add – switching network
Presentation transcript:

중요 ! memory region 은 물리적으로 쓸 수 있는 영 역을 설정한 것이고, reserved region 은 사용하지 말아야 할 부분 을 설정한 것입니다. kernel 이 사용하는 영역을 reserved 영역으로 설정하였습니다. -> 이 내용은 1/10 스터디를 하면서 아직까지 는 불확실한 내용이라 판단했습니다.

흐름 memblock_add_region 함수 -> memblock_double_array 함수 -> memblock_find_in_range 함수 -> memblock_find_in_range_node 함수 -> for_each_free_mem_range_reverse 매크로 -> __next_free_mem_range 함수

Case 1) reserved 가 memory 에 포함되서 겹치는 경우 1)mi, ri 를 이용한 이중 for 문 Step 1) mi = 2, ri = 2 Reserved regions cnt = 2 [0] Bas e Size … [1] Bas e Size … Memory regions cnt = 3 [0] Bas e Size … [1] Bas e Size … [2] Bas e Size … m_start m_end r_end r_start out_endout_start out_start(this_start) out_end(this_end)

Case 2) reserved 가 앞에서 겹치는 경우 1)mi, ri 를 이용한 이중 for 문 snapshot Step 1) mi = 2, ri = 2 Reserved regions cnt = 2 [0] Bas e Size … [1] Bas e Size … Memory regions cnt = 3 [0] Bas e Size … [1] Bas e Size … [2] Bas e Size … m_start r_start r_end out_start(this_start) out_end(this_end) m_end

Case 3) reserved 가 뒤에서 겹치는 경우 1)mi, ri 를 이용한 이중 for 문 snapshot Step 1) mi = 2, ri = 2 Reserved regions cnt = 2 [0] Bas e Size … [1] Bas e Size … Memory regions cnt = 3 [0] Bas e Size … [1] Bas e Size … [2] Bas e Size … m_start m_end r_startr_end 두 번째 for 문의 두 번째 if 문 (m_end > r_start) 에 걸리지 않기 때문에 For 문 그대로 진행되고 ri-- 됨

Case 3) reserved 가 뒤에서 겹치는 경우 1)mi, ri 를 이용한 이중 for 문 snapshot Step 2) mi = 2, ri = 1 Reserved regions cnt = 2 [0] Bas e Size … [1] Bas e Size … Memory regions cnt = 3 [0] Bas e Size … [1] Bas e Size … [2] Bas e Size … m_end r_start r_end m_start out_start(this_start) out_end(this_end)

memblock_find_in_range_node 함수 for_each 문 변환 for (i = (u64)ULLONG_MAX, __next_free_mem_range_rev(&i, nid, this_start, this_end, nid) ; i != (u64)ULLONG_MAX ; __next_free_mem_range_rev(&i, nid, this_start, this_end, nid)) this_start = clamp(this_start, start, end); this_end = clamp(this_end, start, end); if (this_end < size) continue; cand = round_down(this_end - size, align); if (cand >= this_start) return cand; }