Transcendent Memory on Linux
|
|
- Madison Stevens
- 5 years ago
- Views:
Transcription
1 <Insert Picture Here> Transcendent Memory on Linux Speaker: Dan Magenheimer Oracle Corporation
2 Agenda Motivation and Challenge Overview of Physical Memory Management Transcendent Memory ( tmem ) Overview Transcendent Memory in Action Status, Futures, etc.
3 Motivation Memory is increasingly becoming a bottleneck in virtualized system Existing mechanisms have major holes Four underutilized 2-cpu virtual servers each with 1GB RAM X memory overcommitment One 4-CPU physical server w/4gb RAM X page sharing ballooning
4 The Virtualized Physical Memory Resource Optimization Challenge Optimize, across time, the distribution of machine memory among a maximal set of virtual machines by: measuring the current and future memory need of each running VM and reclaiming memory from those VMs that have an excess of memory and either: providing it to VMs that need more memory or using it to provision additional new VMs. without suffering a significant performance penalty
5 The Virtualized Physical Memory Resource Optimization Challenge Optimize, across time, the distribution of machine memory among a maximal set of virtual machines by: measuring the current and future memory need of each running VM and reclaiming memory from those VMs that have an excess of memory and either: providing it to VMs that need more memory or using it to provision additional new VMs. without suffering a significant performance penalty..why is this a hard problem?
6 Agenda Motivation and Challenge Overview of Physical Memory Management in an operating system in a virtual machine monitor (Xen) Transcendent Memory Overview Transcendent Memory In Action Status, Futures, etc.
7 OS Physical Memory Management OS Operating systems are memory hogs! Memory constraint
8 OS Physical Memory Management OS Operating systems are memory hogs! If you give an operating system more memory.. New larger memory constraint
9 OS Physical Memory Management Operating systems are memory hogs! My name is Linux and I am a memory hog it uses up any memory you give it! Memory constraint
10 OS Physical Memory Management What does an OS do with all that memory? Kernel code and data Kernel code User code and data Kernel data Page tables User data User code Page cache Page cache! Everything else
11 OS Physical Memory Management page cache What does an OS do with all that memory? Page cache attempts to predict future needs of pages from the disk sometimes it gets it right good pages
12 OS Physical Memory Management page cache What does an OS do with all that memory? Page cache attempts to predict future needs of pages from the disk sometimes it gets it wrong wasted pages
13 OS Physical Memory Management page cache What does an OS do with all that memory? much of the time mostly page cache some of which will be useful in the future and some of which is wasted Everything else
14 Agenda Motivation and Challenge Overview of Physical Memory Management in an operating system in a virtual machine monitor (Xen) Transcendent Memory Overview Transcendent Memory In Action Status, Futures, etc.
15 VMM Physical Memory Management Xen partitions memory hypervisor memory dom0 memory memory leftover (in case needed later) Dom0 is special
16 VMM Physical Memory Management? Xen partitions memory Xen memory dom0 memory 1 memory 2 memory whatever s left over: fallow memory fallow, adj., land left without a crop for one or more years
17 VMM Physical Memory Management fallow fallow fallow Xen partitions memory Xen memory dom0 memory 1 memory 2 memory whatever s left over: fallow memory fallow, adj., land left without a crop for one or more years
18 VMM Physical Memory Management fallow fallow gues t fallow Xen partitions memory among more s Xen memory dom0 memory 1 memory 2 memory 3 BUT still fallow memory leftover
19 VMM Physical Memory Management in the presence of migration fallow migration requires fallow memory in the target machine leaves behind fallow memory in the originating machine Physical machine B Physical machine A fallow fallow gue st fallow gue st fallow gues t fallow gues t
20 VMM Physical Memory Management in the presence of ballooning fallow gues t fallow Use ballooning to allow memory size to grow? Goal: fill fallow memory fallow
21 VMM Physical Memory Management in the presence of ballooning fallow Look! No more fallow memory! gue st gue st But.
22 VMM Physical Memory Management in the presence of ballooning fallow Look! No more fallow memory! gue st gue st But.
23 VMM Physical Memory Management in the presence of ballooning gue st gue st fallow Look! No more fallow memory! But. And but
24 VMM Physical Memory Management in the presence of ballooning fallow Ballooning down to handle incoming migrations NASTY issues! To make room for a new, we have to starve existing s!
25 VMM Physical Memory Management in the presence of ballooning Using ballooning to take memory away: not instantaneous (memory inertia) can t predict future needs good pages are evicted along with the bad don t know how much/fast to balloon Too much or too fast thrashing or the dreaded OOM killer OOM OOM OOM OOM
26 The Virtualized Physical Memory Resource Optimization Challenge Optimize, across time, the distribution of machine memory among a maximal set of virtual machines by: measuring the current and future memory need of each running VM and reclaiming memory from those VMs that have an excess of memory and either: providing it to VMs that need more memory or using it to provision additional new VMs. without suffering a significant performance penalty..this IS a hard problem!!!
27 Why this IS a hard problem! Summary OS s use as much memory as they are given but cannot predict the future so often guess wrong and often much memory owned by an OS is wasted Xen leaves large amounts of memory fallow fixed partitioning results in fragmentation migration requires fallow memory to succeed Ballooning helps but: can t predict future memory needs of s memory has inertia the price of incorrect guesses can be dire NEED A NEW APPROACH TO VIRTUALIZED PHYSICAL MEMORY MANAGEMENT!!
28 Agenda Motivation and Challenge Overview of Physical Memory Management Transcendent Memory Overview Transcendent Memory In Action Status, Futures, etc.
29 Transcendent memory creating the transcendent memory pool fallow Step 1a: reclaim fallow memory fallow Step 1b: reclaim wasted memory (e.g. via ballooning) Step 1c: collect it all into a pool fallow Transcendent memory pool
30 Transcendent memory creating the transcendent memory pool data data Transcendent memory pool data Step 2: provide indirect access, strictly controlled by the hypervisor and dom0 control data control
31 Transcendent memory API characteristics Transcendent memory pool Transcendent memory API OS changes (small) narrow well-specified operations are: synchronous page-oriented (one page per op) copy-based multi-faceted extensible
32 Transcendent memory Linux tmem_ops API int (*new_pool)(struct tmem_pool_uuid uuid, u32 flags); int (*put_page)(u32 pool_id, u64 object, u32 index, unsigned long pfn); int (*get_page)(u32 pool_id, u64 object, u32 index, unsigned long pfn); int (*flush_page)(u32 pool_id, u64 object, u32 index); int (*flush_object)(u32 pool_id, u64 object); int (*destroy_pool)(u32 pool_id);
33 Transcendent memory Xen hypercall API int xen_tmem_op( u32 tmem_cmd, u32 tmem_pool, u64 object, u32 index, unsigned long gmfn, u32 tmem_offset, u32 pfn_offset, u32 len); int xen_tmem_new_pool( struct tmem_pool_uuid uuid, u32 flags);
34 Transcendent memory four different subpool types four different uses Legend: flags private shared ephemeral second-chance clean-page cache!! cleancache server-side cluster filesystem cache shared cleancache persistent Fast swap device!! frontswap inter- shared memory? Implemented and working today (Linux + Xen) Now in patch Under investigation eph-em-er-al, adj., transitory, existing only briefly, short-lived (i.e. NOT persistent)
35 Transcendent memory caveats Requirements OS kernel must be tmem-aware 64-bit Xen hypervisor and CPU (32-bit s OK) Workload: should exert memory pressure in at least one memory pressure in multiple s should vary across time For best results: dom0 should be configured with a fixed memory size should have a (virtual) swap disk configured Complementary to: feedback-directed ballooning (e.g. self-ballooning ) transparent content-based page sharing
36 Transcendent memory Linux core tmem patch diffstat Documentation/transcendent-memory.txt include/linux/tmem.h mm/kconfig 10 mm/makefile 1 mm/tmem.c files changed, 372 insertions(+) New files in green Changed files in black [PATCH 1/4] Declares the tmem_ops accessors and initializes them as no-ops (foundation layer for cleancache and frontswap ) (see for patchset)
37 Agenda Motivation and Challenge Overview of Physical Memory Management Transcendent Memory Overview Transcendent Memory In Action private-ephemeral pool cleancache shared-ephemeral pool shared cleancache private-persistent pool frontswap performance analysis Status, Future, etc.
38 cleancache* put Transcendent memory pool (private+ephemeral) a second-chance clean page cache for a put clean pages only get only valuable pages pages eventually are evicted coherency managed by exclusive cache semantics * previously called precache get private Transcendent Memory Pool types ephemeral second-chance clean-page cache!! cleancache persistent Fast swap device!! frontswap shared server-side cluster filesystem cache? shared cleancache inter- shared memory?
39 cleancache (with compression) Compression Optional (per-) nominally doubles available memory performance-space tradeoff some fragmentation issues
40 cleancache (multiple s) second-chance page cache for multiple s private ephemeral tmem pool #1 Need memory scheduler : global admission/eviction policy: LRU queue weight balanced private ephemeral tmem pool #2
41 shared cleancache (for clustering) Clustered filesystem SHARED ephemeral tmem pool s sharing a clustered filesystem (ocfs2) non-exclusive LFU instead of LRU compression optional a server-side disk cache! security issues being worked resolved for private Transcendent Memory Pool types ephemeral second-chance clean-page cache!! cleancache persistent Fast swap device!! frontswap shared server-side cluster filesystem cache? shared cleancache inter- shared memory?
42 Transcendent memory Linux cleancache API extern void cleancache_init(struct super_block *sb); extern int cleancache_get(struct address_space *mapping, unsigned long index, struct page *empty_page); extern int cleancache_put(struct address_space *mapping, unsigned long index, struct page *page); extern int cleancache_flush(struct address_space *mapping, unsigned long index); extern int cleancache_flush_inode( struct address_space *mapping); extern int cleancache_flush_filesystem( struct super_block *sb);
43 Transcendent memory Linux cleancache patch diffstat fs/buffer.c 5 fs/ext3/super.c 2 fs/btrfs/extent_io.c 9 + Small fs/btrfs/super.c 2 handful of fs/ext4/super.c 2 hooks fs/ocfs2/super.c 2 fs/super.c 5 needed to include/linux/fs.h 7 + utilize mm/truncate.c 10 + cleancache mm/filemap.c 11 + mm/kconfig 8 + API mm/makefile 1 include/linux/cleancache.h mm/cleancache.c files changed, 310 insertions(+) New files in green Changed files in black [PATCH 2/4] (see for patchset)
44 frontswap* over-ballooned s experiencing unexpected memory pressure have an emergency swap disk much faster than swapping persistent ( dirty ) pages OK prioritized higher than cleancache limited by s maxmem * previously called preswap Transcendent Memory Pool types ephemeral persistent OOM OOM OOM OOM private shared second-chance clean-page cache!! cleancache server-side cluster filesystem cache? shared cleancache Fast swap device!! frontswap inter- shared memory?
45 Transcendent memory Linux frontswap API extern void frontswap_init(unsigned type); extern int frontswap_put(struct page *page); extern int frontswap_get(struct page *page); extern void frontswap_flush(unsigned type, unsigned long offset); extern void frontswap_flush_area(unsigned type); extern void frontswap_shrink(unsigned long target_pages); extern int frontswap_test(struct swap_info_struct *sis, unsigned long offset); (Note: type is Linux term for which swap disk, an index into swap_info_struct array)
46 Transcendent memory Linux frontswap patch diffstat include/linux/swap.h mm/swapfile.c include/linux/sysctl.h 1 New files in green kernel/sysctl.c 12 Changed files in black mm/kconfig 8 mm/makefile 1 mm/page_io.c 12 mm/frontswap.c files changed, 441 insertions(+), 6 deletions(-) [PATCH 3/4] Somewhat more invasive than cleancache due to new frontswap_map array and partial swapoff (see for patchset)
47 Transcendent memory Linux tmem-xen glue patch diffstat arch/x86/include/asm/xen/hypercall.h 8 + drivers/xen/makefile 1 drivers/xen/tmem.c include/xen/interface/tmem.h include/xen/interface/xen.h files changed, 171 insertions(+) New files in green Changed files in black [PATCH 4/4] Changes in Xen-specific code to layer Linux tmem API on xen hypercall (see for patchset)
48 Transcendent memory Linux tmem patch diffstat showing changed existing files only fs/buffer.c 5 ++ fs/ext3/super.c 2 fs/btrfs/extent_io.c fs/btrfs/super.c 2 fs/ext4/super.c 2 fs/ocfs2/super.c 2 fs/mpage.c 8 ++ fs/super.c 6 ++ mm/filemap.c mm/page_io.c mm/swapfile.c mm/truncate.c kernel/sysctl.c include/linux/fs.h 7 ++ include/linux/swap.h include/linux/sysctl.h 1 mm/kconfig mm/makefile files changed, 204 insertions(+), 7 deletions(-) (see for patchset)
49 Agenda Motivation and Challenge Overview of Physical Memory Management Transcendent Memory Overview Transcendent Memory In Action private-ephemeral pool cleancache shared-ephemeral pool shared cleancache private-persistent pool frontswap performance analysis Status, Future, etc.
50 performance analysis: screenshot
51 performance analysis: workload Eight VM s, each running: # service xenballoond start # cd src/linux # while true; do make clean; make j4; done
52 performance analysis: data collection
53 performance analysis: data overview Quad-core physical CPU, single socket, dualthread 8 s with 384MB and 2 vcpus each Staggered starts, some running for nearly a virtual hour, some just started
54 performance analysis: memory pressure Aggressive self-ballooning launched as an initd service feedback-driven using CommittedAS from /proc/meminfo considering moving in-kernel See: Magenheimer, D., Memory Overcommit without the Commitment, Xen Summit 2008
55 performance analysis: kernel data normal /proc/vmstat data from each VM
56 performance analysis: tmem data Important per-vm tmem statistics
57 performance analysis: cleancache cleancache benefit reduced page-in s from external storage: by 30-40% by /sec (note, cleancache does not reduce page-out s pgout shown only for reference)
58 performance analysis: frontswap frontswap benefit eliminated all physical swapping reduced I/Os to external storage: by 128K writes by 80K reads read+write: ~70/sec
59 performance analysis: CPU cost Tmem total cost instrumented in hypervisor approximation only CPU overhead: 0.08%-0.15%
60 performance analysis: summary Bottom line: ~0.1% of one core saves ~300 io/sec (depends on workload, your mileage may vary, objects appear smaller in the mirror, etc., etc.)
61 Agenda Motivation and Challenge Overview of Physical Memory Management Transcendent Memory Overview Transcendent Memory In Action Status, Future, etc.
62 Current Status Cleancache, frontswap, and shared cleancache patches for posted to LKML now includes support for btrfs and ext4 most useful statistics available via sysfs Tmem to be released in Xen 4.0 (target release Feb 2010) Linux tmem patch checked-in in xen tree save/restore and live migration support fully functional Tmem already released in Oracle VM 2.2 (Oct 2009) technology preview
63 Future Work possible integration with ramzswap and FS-cache (Nitin Gupta investigating) combine tmem with page-sharing in-kernel self-ballooning shared-persistent pool investigation inter- communication? real world performance measurement/analysis identify any tuning opportunities, rinse, repeat tmem for: linux containers? l? KVM? fully-virtualized s? embedded?
64 Acknowledgements Chris Mason (Oracle) Linux vfs changes for cleancache Btrfs help Zhigang Wang (Oracle) Xen tools (xm + libxc) code Kurt Hackel, Dave McCracken (Oracle) design and debugging help Sunil Mushran, Joel Becker (Oracle) ocfs2 help for shared cleancache Jeremy Fitzhardinge, Ian Pratt, Keir Fraser, Jan Beulich hard questions and good advice Excellent feedback on lkml and xen-devel
65 With apologies to the late, great Bob Hope Thanks for the memory I really could use more My throughput s on the floor My balloon is flat, my swap disk s fat I ve O-O-M s in store Overcommitted so much
66 And Thank YOU so much! FOR MORE INFORMATION:
67 <Insert Picture Here> Transcendent Memory on Linux Speaker: Dan Magenheimer Oracle Corporation
68 Backup Slides
Transcendent Memory and Friends (Not just for virtualization anymore!) Dan Magenheimer, Oracle Corp.
Transcendent Memory and Friends (Not just for virtualization anymore!) Dan Magenheimer, Oracle Corp. Transcendent Memory s Friends cleancache frontswap persistent ephemeral Transcendent Memory Objectives:
More informationOracle Corporation. Speaker: Dan Magenheimer. without the Commitment. Memory Overcommit. <Insert Picture Here>
2008 Memory Overcommit without the Commitment Speaker: Dan Magenheimer Oracle Corporation Overview What is overcommitment? aka oversubscription or overbooking Why (and why not) overcommit
More informationOS PMM - More space: if you give an OS more memory
Speaker Notes Page 1 of 7 Transcendent Memory Update (XenSummit 2010) Agenda: In the first few minutes, I'm going to quickly review the motivation and review some background about how physical memory is
More informationGCMA Overview. LG Electronics CTO Software Platform Laboratory Minchan Kim
GCMA Overview LG Electronics CTO Software Platform Laboratory Minchan Kim Contents Background Problems GCMA Basic GCMA Pros and Cons Background Need for physical contiguous memory
More informationCaching and reliability
Caching and reliability Block cache Vs. Latency ~10 ns 1~ ms Access unit Byte (word) Sector Capacity Gigabytes Terabytes Price Expensive Cheap Caching disk contents in RAM Hit ratio h : probability of
More informationUsing Transparent Compression to Improve SSD-based I/O Caches
Using Transparent Compression to Improve SSD-based I/O Caches Thanos Makatos, Yannis Klonatos, Manolis Marazakis, Michail D. Flouris, and Angelos Bilas {mcatos,klonatos,maraz,flouris,bilas}@ics.forth.gr
More informationBlack-box and Gray-box Strategies for Virtual Machine Migration
Full Review On the paper Black-box and Gray-box Strategies for Virtual Machine Migration (Time required: 7 hours) By Nikhil Ramteke Sr. No. - 07125 1. Introduction Migration is transparent to application
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 23 Virtual memory Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ Is a page replaces when
More informationPAGE REPLACEMENT. Operating Systems 2015 Spring by Euiseong Seo
PAGE REPLACEMENT Operating Systems 2015 Spring by Euiseong Seo Today s Topics What if the physical memory becomes full? Page replacement algorithms How to manage memory among competing processes? Advanced
More informationutmem: Towards Memory Elasticity in Cloud Workloads
utmem: Towards Memory Elasticity in Cloud Workloads Aimilios Tsalapatis, Stefanos Gerangelos, Stratos Psomadakis, Konstantinos Papazafeiropoulos, and Nectarios Koziris Computing Systems Lab National Technical
More informationMemory - Paging. Copyright : University of Illinois CS 241 Staff 1
Memory - Paging Copyright : University of Illinois CS 241 Staff 1 Physical Frame Allocation How do we allocate physical memory across multiple processes? What if Process A needs to evict a page from Process
More informationTA7750 Understanding Virtualization Memory Management Concepts. Kit Colbert, Principal Engineer, VMware, Inc. Fei Guo, Sr. MTS, VMware, Inc.
TA7750 Understanding Virtualization Memory Management Concepts Kit Colbert, Principal Engineer, VMware, Inc. Fei Guo, Sr. MTS, VMware, Inc. Disclaimer This session may contain product features that are
More informationFilesystem. Disclaimer: some slides are adopted from book authors slides with permission 1
Filesystem Disclaimer: some slides are adopted from book authors slides with permission 1 Storage Subsystem in Linux OS Inode cache User Applications System call Interface Virtual File System (VFS) Filesystem
More informationEverything You Ever Wanted To Know About Resource Scheduling... Almost
logo Everything You Ever Wanted To Know About Resource Scheduling... Almost Tim Hockin Senior Staff Software Engineer, Google @thockin Who is thockin? Founding member of Kubernetes
More informationVirtual Memory III. Jo, Heeseung
Virtual Memory III Jo, Heeseung Today's Topics What if the physical memory becomes full? Page replacement algorithms How to manage memory among competing processes? Advanced virtual memory techniques Shared
More informationCurrent Topics in OS Research. So, what s hot?
Current Topics in OS Research COMP7840 OSDI Current OS Research 0 So, what s hot? Operating systems have been around for a long time in many forms for different types of devices It is normally general
More informationCHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.
CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed. File-System Structure File structure Logical storage unit Collection of related information File
More informationOptimal Algorithm. Replace page that will not be used for longest period of time Used for measuring how well your algorithm performs
Optimal Algorithm Replace page that will not be used for longest period of time Used for measuring how well your algorithm performs page 1 Least Recently Used (LRU) Algorithm Reference string: 1, 2, 3,
More informationChapter 12: File System Implementation
Chapter 12: File System Implementation Silberschatz, Galvin and Gagne 2013 Chapter 12: File System Implementation File-System Structure File-System Implementation Allocation Methods Free-Space Management
More informationCS 31: Intro to Systems Virtual Memory. Kevin Webb Swarthmore College November 15, 2018
CS 31: Intro to Systems Virtual Memory Kevin Webb Swarthmore College November 15, 2018 Reading Quiz Memory Abstraction goal: make every process think it has the same memory layout. MUCH simpler for compiler
More informationFlavors of Memory supported by Linux, their use and benefit. Christoph Lameter, Ph.D,
Flavors of Memory supported by Linux, their use and benefit Christoph Lameter, Ph.D, Twitter: @qant Flavors Of Memory The term computer memory is a simple term but there are numerous nuances
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 27 Virtualization Slides based on Various sources 1 1 Virtualization Why we need virtualization? The concepts and
More informationGFS: The Google File System
GFS: The Google File System Brad Karp UCL Computer Science CS GZ03 / M030 24 th October 2014 Motivating Application: Google Crawl the whole web Store it all on one big disk Process users searches on one
More informationLecture #15: Translation, protection, sharing
Lecture #15: Translation, protection, sharing Review -- 1 min Goals of virtual memory: protection relocation sharing illusion of infinite memory minimal overhead o space o time Last time: we ended with
More informationOPERATING SYSTEM. Chapter 9: Virtual Memory
OPERATING SYSTEM Chapter 9: Virtual Memory Chapter 9: Virtual Memory Background Demand Paging Copy-on-Write Page Replacement Allocation of Frames Thrashing Memory-Mapped Files Allocating Kernel Memory
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 24 File Systems Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 Questions from last time How
More informationCSE 120 Principles of Operating Systems
CSE 120 Principles of Operating Systems Spring 2018 Lecture 15: Multicore Geoffrey M. Voelker Multicore Operating Systems We have generally discussed operating systems concepts independent of the number
More informationWho stole my CPU? Leonid Podolny Vineeth Remanan Pillai. Systems DigitalOcean
Who stole my CPU? Leonid Podolny Vineeth Remanan Pillai leonid@ vineeth@ Systems Engineering @ DigitalOcean 1 2 Introduction DigitalOcean Providing developers and businesses a reliable, easy-to-use cloud
More informationFile System Internals. Jo, Heeseung
File System Internals Jo, Heeseung Today's Topics File system implementation File descriptor table, File table Virtual file system File system design issues Directory implementation: filename -> metadata
More informationChapter 8: Virtual Memory. Operating System Concepts
Chapter 8: Virtual Memory Silberschatz, Galvin and Gagne 2009 Chapter 8: Virtual Memory Background Demand Paging Copy-on-Write Page Replacement Allocation of Frames Thrashing Memory-Mapped Files Allocating
More information1. Creates the illusion of an address space much larger than the physical memory
Virtual memory Main Memory Disk I P D L1 L2 M Goals Physical address space Virtual address space 1. Creates the illusion of an address space much larger than the physical memory 2. Make provisions for
More information<Insert Picture Here> Btrfs Filesystem
Btrfs Filesystem Chris Mason Btrfs Goals General purpose filesystem that scales to very large storage Feature focused, providing features other Linux filesystems cannot Administration
More informationGCMA: Guaranteed Contiguous Memory Allocator. SeongJae Park
GCMA: Guaranteed Contiguous Memory Allocator SeongJae Park These slides were presented during The Kernel Summit 2018 (https://events.linuxfoundation.org/events/linux-kernel-summit-2018/)
More informationSANDPIPER: BLACK-BOX AND GRAY-BOX STRATEGIES FOR VIRTUAL MACHINE MIGRATION
SANDPIPER: BLACK-BOX AND GRAY-BOX STRATEGIES FOR VIRTUAL MACHINE MIGRATION Timothy Wood, Prashant Shenoy, Arun Venkataramani, and Mazin Yousif * University of Massachusetts Amherst * Intel, Portland Data
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 33 Virtual Memory Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ How does the virtual
More information<Insert Picture Here> Filesystem Features and Performance
Filesystem Features and Performance Chris Mason Filesystems XFS Well established and stable Highly scalable under many workloads Can be slower in metadata intensive workloads Often
More informationServer Virtualization Approaches
Server Virtualization Approaches Virtual Machine Applications Emulation Replication Composition Emulation: Mix-and-match cross-platform portability Replication: Multiple VMs on single platform Composition:
More informationThe failure of Operating Systems,
The failure of Operating Systems, and how we can fix it. Glauber Costa Lead Software Engineer August 30th, 2012 Linuxcon Opening Notes I'll be doing Hypervisors vs Containers here. But: 2 2 Opening Notes
More informationParallels Virtuozzo Containers
Parallels Virtuozzo Containers White Paper Parallels Virtuozzo Containers for Windows Capacity and Scaling www.parallels.com Version 1.0 Table of Contents Introduction... 3 Resources and bottlenecks...
More informationCS 4284 Systems Capstone
CS 4284 Systems Capstone Disks & File Systems Godmar Back Filesystems Files vs Disks File Abstraction Byte oriented Names Access protection Consistency guarantees Disk Abstraction Block oriented Block
More informationCost-Effective Virtual Petabytes Storage Pools using MARS. FrOSCon 2017 Presentation by Thomas Schöbel-Theuer
Cost-Effective Virtual Petabytes Storage Pools using MARS FrOSCon 2017 Presentation by Thomas Schöbel-Theuer 1 Virtual Petabytes Storage Pools: Agenda Scaling Properties of Storage Architectures Reliability
More informationSwapping. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University
Swapping Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Swapping Support processes when not enough physical memory User program should be independent
More informationEfficient Memory Management on Mobile Devices
Efficient Memory Management on Mobile Devices Bartlomiej Zolnierkiewicz b.zolnierkie@samsung.com September 17, 2013 Issues on mobile systems: limited resources no physical swap need for custom Out-Of-Memory
More informationUBC: An Efficient Unified I/O and Memory Caching Subsystem for NetBSD
UBC: An Efficient Unified I/O and Memory Caching Subsystem for NetBSD Chuck Silvers The NetBSD Project chuq@chuq.com, http://www.netbsd.org/ Abstract This paper introduces UBC ( Unified Buffer Cache ),
More informationSwapping. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University
Swapping Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu EEE0: Introduction to Operating Systems, Fall 07, Jinkyu Jeong (jinkyu@skku.edu) Swapping
More informationInside the PostgreSQL Shared Buffer Cache
Truviso 07/07/2008 About this presentation The master source for these slides is http://www.westnet.com/ gsmith/content/postgresql You can also find a machine-usable version of the source code to the later
More informationVM Migration, Containers (Lecture 12, cs262a)
VM Migration, Containers (Lecture 12, cs262a) Ali Ghodsi and Ion Stoica, UC Berkeley February 28, 2018 (Based in part on http://web.eecs.umich.edu/~mosharaf/slides/eecs582/w16/021516-junchenglivemigration.pptx)
More informationPublic Cloud Leverage For IT/Business Alignment Business Goals Agility to speed time to market, adapt to market demands Elasticity to meet demand whil
LHC2386BU True Costs Savings Modeling and Costing A Migration to VMware Cloud on AWS Chris Grossmeier chrisg@cloudphysics.com John Blumenthal john@cloudphysics.com #VMworld Public Cloud Leverage For IT/Business
More informationVirtual Memory. ICS332 Operating Systems
Virtual Memory ICS332 Operating Systems Virtual Memory Allow a process to execute while not completely in memory Part of the address space is kept on disk So far, we have assumed that the full address
More informationPaging algorithms. CS 241 February 10, Copyright : University of Illinois CS 241 Staff 1
Paging algorithms CS 241 February 10, 2012 Copyright : University of Illinois CS 241 Staff 1 Announcements MP2 due Tuesday Fabulous Prizes Wednesday! 2 Paging On heavily-loaded systems, memory can fill
More informationStanford University Computer Science Department CS 240 Quiz 1 Spring May 6, total
Stanford University Computer Science Department CS 240 Quiz 1 Spring 2004 May 6, 2004 This is an open-book exam. You have 50 minutes to answer eight out of nine questions. Write all of your answers directly
More informationMemory Allocation. Copyright : University of Illinois CS 241 Staff 1
Memory Allocation Copyright : University of Illinois CS 241 Staff 1 Recap: Virtual Addresses A virtual address is a memory address that a process uses to access its own memory Virtual address actual physical
More informationFILE SYSTEMS. CS124 Operating Systems Winter , Lecture 23
FILE SYSTEMS CS124 Operating Systems Winter 2015-2016, Lecture 23 2 Persistent Storage All programs require some form of persistent storage that lasts beyond the lifetime of an individual process Most
More informationCHAPTER 16 - VIRTUAL MACHINES
CHAPTER 16 - VIRTUAL MACHINES 1 OBJECTIVES Explore history and benefits of virtual machines. Discuss the various virtual machine technologies. Describe the methods used to implement virtualization. Show
More informationUnit 5: Distributed, Real-Time, and Multimedia Systems
Unit 5: Distributed, Real-Time, and Multimedia Systems Unit Overview Unit 5 provides an extension to the core topics of operating systems. It introduces distributed systems and special-purpose operating
More informationGOALS. DPDK Summit 2014 Public Ericsson AB 2014 September 8 Page 2
GOALS Going virtualized Environment-independency Flexible platform Backward compatibility High and deterministic performance High availability Robustness Intact DPDK common libraries DPDK Summit 2014 Public
More informationChapter 11: Implementing File
Chapter 11: Implementing File Systems Chapter 11: Implementing File Systems File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management Efficiency
More informationOperating System Principles: Memory Management Swapping, Paging, and Virtual Memory CS 111. Operating Systems Peter Reiher
Operating System Principles: Memory Management Swapping, Paging, and Virtual Memory Operating Systems Peter Reiher Page 1 Outline Swapping Paging Virtual memory Page 2 Swapping What if we don t have enough
More informationChapter 11: Implementing File Systems. Operating System Concepts 9 9h Edition
Chapter 11: Implementing File Systems Operating System Concepts 9 9h Edition Silberschatz, Galvin and Gagne 2013 Chapter 11: Implementing File Systems File-System Structure File-System Implementation Directory
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2018 Lecture 22 File Systems Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 Disk Structure Disk can
More informationMemory Management: Virtual Memory and Paging CS 111. Operating Systems Peter Reiher
Memory Management: Virtual Memory and Paging Operating Systems Peter Reiher Page 1 Outline Paging Swapping and demand paging Virtual memory Page 2 Paging What is paging? What problem does it solve? How
More informationWhat s New in VMware vsphere 4.1 Performance. VMware vsphere 4.1
What s New in VMware vsphere 4.1 Performance VMware vsphere 4.1 T E C H N I C A L W H I T E P A P E R Table of Contents Scalability enhancements....................................................................
More information2 nd Half. Memory management Disk management Network and Security Virtual machine
Final Review 1 2 nd Half Memory management Disk management Network and Security Virtual machine 2 Abstraction Virtual Memory (VM) 4GB (32bit) linear address space for each process Reality 1GB of actual
More informationLecture 12: Demand Paging
Lecture 1: Demand Paging CSE 10: Principles of Operating Systems Alex C. Snoeren HW 3 Due 11/9 Complete Address Translation We started this topic with the high-level problem of translating virtual addresses
More informationDan Noé University of New Hampshire / VeloBit
Dan Noé University of New Hampshire / VeloBit A review of how the CPU works The operating system kernel and when it runs User and kernel mode Device drivers Virtualization of memory Virtual memory Paging
More informationLecture#16: VM, thrashing, Replacement, Cache state
Lecture#16: VM, thrashing, Replacement, Cache state Review -- 1 min Multi-level translation tree: multi-level page table, paged paging, paged segmentation, hash table: inverted page table combination:
More informationDa-Wei Chang CSIE.NCKU. Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University
Chapter 11 Implementing File System Da-Wei Chang CSIE.NCKU Source: Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University Outline File-System Structure
More informationV. File System. SGG9: chapter 11. Files, directories, sharing FS layers, partitions, allocations, free space. TDIU11: Operating Systems
V. File System SGG9: chapter 11 Files, directories, sharing FS layers, partitions, allocations, free space TDIU11: Operating Systems Ahmed Rezine, Linköping University Copyright Notice: The lecture notes
More informationPerformance & Scalability Testing in Virtual Environment Hemant Gaidhani, Senior Technical Marketing Manager, VMware
Performance & Scalability Testing in Virtual Environment Hemant Gaidhani, Senior Technical Marketing Manager, VMware 2010 VMware Inc. All rights reserved About the Speaker Hemant Gaidhani Senior Technical
More informationComputer Systems Laboratory Sungkyunkwan University
File System Internals Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics File system implementation File descriptor table, File table
More informationReminder: Mechanics of address translation. Paged virtual memory. Reminder: Page Table Entries (PTEs) Demand paging. Page faults
CSE 451: Operating Systems Autumn 2012 Module 12 Virtual Memory, Page Faults, Demand Paging, and Page Replacement Reminder: Mechanics of address translation virtual address virtual # offset table frame
More informationOperating Systems. File Systems. Thomas Ropars.
1 Operating Systems File Systems Thomas Ropars thomas.ropars@univ-grenoble-alpes.fr 2017 2 References The content of these lectures is inspired by: The lecture notes of Prof. David Mazières. Operating
More informationKernel Memory Management
How does the kernel allocate and manage its own memory? Department of Computer Science UofC CPSC 457 October 24, 2014 Agenda Midterm Answers (5 minutes) Discussion of brk() system call. (20 minutes) (25
More informationNested Virtualization and Server Consolidation
Nested Virtualization and Server Consolidation Vara Varavithya Department of Electrical Engineering, KMUTNB varavithya@gmail.com 1 Outline Virtualization & Background Nested Virtualization Hybrid-Nested
More informationCourse Outline. Processes CPU Scheduling Synchronization & Deadlock Memory Management File Systems & I/O Distributed Systems
Course Outline Processes CPU Scheduling Synchronization & Deadlock Memory Management File Systems & I/O Distributed Systems 1 Today: Memory Management Terminology Uniprogramming Multiprogramming Contiguous
More informationNUMA replicated pagecache for Linux
NUMA replicated pagecache for Linux Nick Piggin SuSE Labs January 27, 2008 0-0 Talk outline I will cover the following areas: Give some NUMA background information Introduce some of Linux s NUMA optimisations
More informationHP AutoRAID (Lecture 5, cs262a)
HP AutoRAID (Lecture 5, cs262a) Ali Ghodsi and Ion Stoica, UC Berkeley January 31, 2018 (based on slide from John Kubiatowicz, UC Berkeley) Array Reliability Reliability of N disks = Reliability of 1 Disk
More informationChapter 5 C. Virtual machines
Chapter 5 C Virtual machines Virtual Machines Host computer emulates guest operating system and machine resources Improved isolation of multiple guests Avoids security and reliability problems Aids sharing
More informationVirtual File System. Don Porter CSE 306
Virtual File System Don Porter CSE 306 History Early OSes provided a single file system In general, system was pretty tailored to target hardware In the early 80s, people became interested in supporting
More informationOPERATING SYSTEM. Chapter 12: File System Implementation
OPERATING SYSTEM Chapter 12: File System Implementation Chapter 12: File System Implementation File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management
More informationAdvanced Exploitation: Xen Hypervisor VM Escape
Advanced Exploitation: Xen Hypervisor VM Escape Shangcong Luan May 27, 2016 Alibaba Cloud Platform Security Team 1 Who am I? 2014-2015 at Vulnhunt Security Team for APT Defense 2015 - now at Alibaba Cloud
More informationCOMPUTER ARCHITECTURE. Virtualization and Memory Hierarchy
COMPUTER ARCHITECTURE Virtualization and Memory Hierarchy 2 Contents Virtual memory. Policies and strategies. Page tables. Virtual machines. Requirements of virtual machines and ISA support. Virtual machines:
More informationSynergy: A Hypervisor Managed Holistic Caching System
1 Synergy: A Hypervisor Managed Holistic Caching System Debadatta Mishra, Purushottam Kulkarni, and Raju Rangaswami Abstract Efficient system-wide memory management is an important challenge for over-commitment
More informationinstruction is 6 bytes, might span 2 pages 2 pages to handle from 2 pages to handle to Two major allocation schemes
Allocation of Frames How should the OS distribute the frames among the various processes? Each process needs minimum number of pages - at least the minimum number of pages required for a single assembly
More informationOS-caused Long JVM Pauses - Deep Dive and Solutions
OS-caused Long JVM Pauses - Deep Dive and Solutions Zhenyun Zhuang LinkedIn Corp., Mountain View, California, USA https://www.linkedin.com/in/zhenyun Zhenyun@gmail.com 2016-4-21 Outline q Introduction
More informationFilesystem. Disclaimer: some slides are adopted from book authors slides with permission 1
Filesystem Disclaimer: some slides are adopted from book authors slides with permission 1 Recap Blocking, non-blocking, asynchronous I/O Data transfer methods Programmed I/O: CPU is doing the IO Pros Cons
More informationChapter 11: Implementing File Systems
Chapter 11: Implementing File Systems Operating System Concepts 99h Edition DM510-14 Chapter 11: Implementing File Systems File-System Structure File-System Implementation Directory Implementation Allocation
More informationThe Btrfs Filesystem. Chris Mason
The Btrfs Filesystem Chris Mason The Btrfs Filesystem Jointly developed by a number of companies Oracle, Redhat, Fujitsu, Intel, SUSE, many others All data and metadata is written via copy-on-write CRCs
More informationNVMFS: A New File System Designed Specifically to Take Advantage of Nonvolatile Memory
NVMFS: A New File System Designed Specifically to Take Advantage of Nonvolatile Memory Dhananjoy Das, Sr. Systems Architect SanDisk Corp. 1 Agenda: Applications are KING! Storage landscape (Flash / NVM)
More informationMultiLanes: Providing Virtualized Storage for OS-level Virtualization on Many Cores
MultiLanes: Providing Virtualized Storage for OS-level Virtualization on Many Cores Junbin Kang, Benlong Zhang, Tianyu Wo, Chunming Hu, and Jinpeng Huai Beihang University 夏飞 20140904 1 Outline Background
More information/INFOMOV/ Optimization & Vectorization. J. Bikker - Sep-Nov Lecture 3: Caching (1) Welcome!
/INFOMOV/ Optimization & Vectorization J. Bikker - Sep-Nov 2015 - Lecture 3: Caching (1) Welcome! Today s Agenda: The Problem with Memory Cache Architectures Practical Assignment 1 INFOMOV Lecture 3 Caching
More informationChapter 10: Virtual Memory
Chapter 10: Virtual Memory Chapter 10: Virtual Memory Background Demand Paging Copy-on-Write Page Replacement Allocation of Frames Thrashing Memory-Mapped Files Allocating Kernel Memory Other Considerations
More informationPaging. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University
Paging Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics Virtual memory implementation Paging Segmentation 2 Paging (1) Paging Permits
More informationChapter 12: File System Implementation
Chapter 12: File System Implementation Chapter 12: File System Implementation File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management Efficiency
More informationChapter 9: Virtual Memory
Chapter 9: Virtual Memory Silberschatz, Galvin and Gagne 2013 Chapter 9: Virtual Memory Background Demand Paging Copy-on-Write Page Replacement Allocation of Frames Thrashing Memory-Mapped Files Allocating
More informationVIRTUAL APPLIANCES. Frequently Asked Questions (FAQ)
VX INSTALLATION 2 1. I need to adjust the disk allocated to the Silver Peak virtual appliance from its default. How should I do it? 2. After installation, how do I know if my hard disks meet Silver Peak
More informationFirst-In-First-Out (FIFO) Algorithm
First-In-First-Out (FIFO) Algorithm Reference string: 7,0,1,2,0,3,0,4,2,3,0,3,0,3,2,1,2,0,1,7,0,1 3 frames (3 pages can be in memory at a time per process) 15 page faults Can vary by reference string:
More informationAdministrative Details. CS 140 Final Review Session. Pre-Midterm. Plan For Today. Disks + I/O. Pre-Midterm, cont.
Administrative Details CS 140 Final Review Session Final exam: 12:15-3:15pm, Thursday March 18, Skilling Aud (here) Questions about course material or the exam? Post to the newsgroup with Exam Question
More informationI, J A[I][J] / /4 8000/ I, J A(J, I) Chapter 5 Solutions S-3.
5 Solutions Chapter 5 Solutions S-3 5.1 5.1.1 4 5.1.2 I, J 5.1.3 A[I][J] 5.1.4 3596 8 800/4 2 8 8/4 8000/4 5.1.5 I, J 5.1.6 A(J, I) 5.2 5.2.1 Word Address Binary Address Tag Index Hit/Miss 5.2.2 3 0000
More informationThe vsphere 6.0 Advantages Over Hyper- V
The Advantages Over Hyper- V The most trusted and complete virtualization platform SDDC Competitive Marketing 2015 Q2 VMware.com/go/PartnerCompete 2015 VMware Inc. All rights reserved. v3b The Most Trusted
More information