Microsoft PowerPoint mm2

Similar documents
Microsoft PowerPoint mm

Microsoft PowerPoint - sp ppt [互換モード]

Microsoft PowerPoint - os ppt [互換モード]

メモリ管理

Operating System 仮想記憶

Microsoft PowerPoint - sp ppt [互換モード]

Microsoft PowerPoint - os ppt [互換モード]

Microsoft PowerPoint - No15›¼‚z‰L›¯.ppt

メモリ管理

Microsoft PowerPoint - No7note.ppt

OS

メモリについて考えてみよう_REL_

Linux2.4でのメモリ管理機構

Microsoft PowerPoint - No6note.ppt

Microsoft PowerPoint - OS12.pptx

OS

10-vm1.ppt

Microsoft PowerPoint - 11_4-4-5pagerepl.pptx

Microsoft PowerPoint - OS12.pptx

I117 II I117 PROGRAMMING PRACTICE II DEBUG Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara

Microsoft PowerPoint - NxLecture ppt [互換モード]

講義計画 1. コンピュータの歴史 1 2. コンピュータの歴史 2 3. コンピュータの歴史 3 4. 論理回路と記憶, 計算 : レジスタとALU 5. 主記憶装置とALU, レジスタの制御 6. 命令セットアーキテクチャ 7. 演習問題 8. パイプライン処理 9. メモリ階層 : キャッシュ

Express5800/R320a-E4/Express5800/R320b-M4ユーザーズガイド

Intel Memory Protection Extensions(Intel MPX) x86, x CPU skylake 2015 Intel Software Development Emulator 本資料に登場する Intel は Intel Corp. の登録

4.1 % 7.5 %

セキュアVMの アーキテクチャ概要

Express5800/R110a-1Hユーザーズガイド

Complex Lab – Operating Systems - Graphical Console

Express5800/320Fa-L/320Fa-LR/320Fa-M/320Fa-MR

Express5800/320Fa-L/320Fa-LR

N Express5800/R320a-E4 N Express5800/R320a-M4 ユーザーズガイド

Express5800/R320a-E4, Express5800/R320b-M4ユーザーズガイド

Microsoft PowerPoint fs

Express5800/320Fc-MR

Microsoft PowerPoint ppt


Microsoft PowerPoint - OS07.pptx

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション

... 3 Oracle on Linux I/O I/O... 5 I/O io_request_lock... 6 I/O GB RAM SGA GB RAM Very Large M

cpu2007lectureno2.ppt

Microsoft PowerPoint - IO_Pass-through_XenSummitTokyo2008_jp.ppt

システムLSIとアーキテクチャ技術  (part II:オンチップ並列            アーキテクチャ)

020105.メモリの高機能化

CPU Levels in the memory hierarchy Level 1 Level 2... Increasing distance from the CPU in access time Level n Size of the memory at each level 1: 2.2

DRAM SRAM SDRAM (Synchronous DRAM) DDR SDRAM (Double Data Rate SDRAM) DRAM 4 C Wikipedia 1.8 SRAM DRAM DRAM SRAM DRAM SRAM (256M 1G bit) (32 64M bit)

FUJITSU ULTRA LVD SCSI Host Bus Adapter Driver 3.0 説明書

Microsoft PowerPoint - OS1.ppt [互換モード]

第6期末セミナー2006-1rev1.ppt

Microsoft PowerPoint - OS09.pptx

橡EN1165.PDF

04-process_thread_2.ppt

エンタープライズサーチ・エンジンQ u i c k S o l u t i o n ® の開発

スライド 1

Monthly Research / セキュアハードウェアの登場とその分析

N08


Microsoft Word - nvsi_050110jp_netvault_vtl_on_dothill_sannetII.doc

Microsoft PowerPoint - Lec pptx

Microsoft PowerPoint - sp ppt [互換モード]

PowerPoint プレゼンテーション

(Microsoft PowerPoint - DSE2019_IOProfiler\203v\203\214\203[\203\223\216\221\227\277-Rev1.1)

PowerPoint プレゼンテーション

メモリ管理

EQUIUM EQUIUM S5010 1

Microsoft PowerPoint - 11Web.pptx

スライド 1

2. IEC61508 ISO WD IEC6150 SIL( Safety Integrity Level ) ISO WD2626 ASIL( Automotive Safety Integrity Level ) SIL/ASIL (tolerable risk) (Residu

PowerPoint プレゼンテーション

~~~~~~~~~~~~~~~~~~ wait Call CPU time 1, latch: library cache 7, latch: library cache lock 4, job scheduler co

Linux 仮想メモリについて


THINKPAD X1 LENOVO ENHANCED EXPERIENCE 2.0

IP IP DHCP..

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM

MMUなしプロセッサ用Linuxの共有ライブラリ機構

本機をお使いの方へ

今週の進捗


JIIAセミナー

Microsoft PowerPoint - pc11.ppt

4

tutorial_lc.dvi

Microsoft Word - D JP.docx

Microsoft PowerPoint - OS08 [互換モード]

はじめに 本書は Express5800/ft サーバに Red Hat Enterprise Linux 6 Server 及び ft Server Control Software がインストールされており OS がインストールされている内蔵ディス クに空き容量がある場合に 追加でボリュームを作

4

Microsoft PowerPoint - NxLec ppt

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

system.pptx

Copyright Oracle Parkway, Redwood City, CA U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated softw

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

システム必要条件 - SAS Fraud Management 3.2

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

A Responsive Processor for Parallel/Distributed Real-time Processing

2

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

スライド 1

PowerPoint Presentation

Transcription:

システムプログラム概論 Memory management 2/2 25/5/6 門林雄基 ( インターネット工学講座 ) 奈良先端科学技術大学院大学 前回 Memory hierarchy Contention and arbitration for memory Virtual memory: software + hardware solution Address translation Physical address to virtual address Paging, segmentation Page table, segment descriptor... In the real world (MIPS, IA-64 etc.) 今日の講義のポイント Page replacement Page faults Page replacement algorithms Caching modified data Working set

今日の講義のポイント Virtual memory and performance Observe virtual memory in action Virtual memory and security Segmentation faults Privileged mode Sharing data between processes Page table entry ハードウェアが更新 Referenced Modified OS が更新 Present/absent Protection Caching disabled Page frame number (MOS p. 2) Page fault 仮想ページ番号 (n) に対応する物理ページなし present bit = プロセス (A) が仮想ページ内のメモリへアクセス page fault Page fault 発生時 当該プロセスを一時中断しOSの仮想記憶モジュールを実行 : 該当ページ (n) をディスクから復帰 (page in) present bit = 当該プロセス (A) の処理を続行 2

Page replacement 物理ページ数には限りがある 使っていない仮想ページをディスクへ退避 (page out) Present bit = どのページを選んで退避させるか? さまざまなアルゴリズムが考えられた NRU, FIFO, second chance, LRU... NRU page replacement algorithm MOS 4.4.2 (p. 26) FIFO page replacement algorithm MOS 4.4.3 (p. 27) 3

Second chance MOS 4.4.4 (p. 27) LRU page replacement algorithm MOS 4.4.6 (p. 28) やってみよう MOS p. 266 Q.29 A computer has four page frames. The time of loading, time of last access, and the R and M bits for each page are as shown below: Page Loaded Last ref R M 26 28 23 265 2 4 27 3 285 Which pages will NRU / FIFO / LRU / second chance replace? 4

Caching modified data 一般的な用語 ( メモリ階層で使われる ) Write-through: ただちに書き戻す Write-back: キャッシュから追い出されるまで書き戻さない Reliability / performance trade-offs ページアウトでは write-back 方式を採用 Working set w(k, t) (MOS p. 223) k most recent memory references at time t Thrashing ( スラッシング ) ワーキングセット サイズがキャッシュサイズを超えると起きる Virtual memory and performance 仮想記憶の功罪 プログラミングは単純に メモリ容量を気にする必要が無い マルチプログラミングが単純に ディスクさえあれば動き続ける スラッシングしていても... 本当はメモリが足りないのに メモリ不足をどうやって判定するか? 5

Virtual memory and performance: the case of BSD UNIX vmstat で全体のメモリ使用状況を把握 $ vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad md in sy cs us sy id 2 4758 844 82 6 696 95 3 96 47236 844 6 5 223 53 47236 844 5 3 86 44 99 47236 844 5 76 44 47236 844 5 7 254 49 99 ps で各プロセスのメモリ使用状況を把握 $ ps axotsiz,rss,vsz PID TSIZ RSS VSZ TT STAT TIME COMMAND?? DLs :. (swapper) 248 36 544?? ILs :. /sbin/init -- 284 324 636 738?? R :. /usr/xr6/bin/xfree86 : 38 56 836 9752 p S :.7 xemacs (xemacs-2..4) Virtual memory and security 仮想記憶で取り扱うセキュリティ プロセス内のメモリアクセス違反の検出 (detection of memory access violations) Segmentation fault 他のプロセスとのアドレス空間の分離 (separation of address spaces) 特権レベルでのアドレス空間の生成 (address space creation at privileged level) プロセス間のアドレス空間の共有 (sharing memory among multiple address spaces) Segmentation fault プログラムのバグ等で 許可された範囲を超えてメモリアクセスを行った場合 セグメント記述子に記載されたサイズを超えてメモリアクセス (memory access beyond allowable limit as indicated in segment descriptor) セグメント記述子に記載された権限を越えてメモリアクセス segmentation fault 6

Segmentation fault Virtual address Seg# offset base offset Physical address code data const stack Segment table CPU Segment pointer Segment size Protection Segment descriptor 特権レベルでのアドレス空間の生成 アドレス空間の操作は OS のカーネル ( プロセッサの特権レベル ) でのみ許可される 下記の情報を OS カーネルが設定する Page table register Table size register Page table Segment descriptor Segment table (MOS p. 26) Seg# Segment table VPN Page table offset PFN offset アドレス空間の分離 Text Data Const Stack s virtual address space 実記憶 s virtual address space Text Data Const Stack 7

アドレス空間の共有 Text Data Const Stack s virtual address space 実記憶 s virtual address space Text Data Const Stack まとめ メモリ管理のソフトウェア的側面について学んだ Page fault, page replacement Page replacement algorithms メモリ管理と性能 Working set VM statistics メモリ管理とセキュリティ Segmentation fault Address space management 8