1 CS 262a: Advanced Topics in Computer Systems Fall 2016 (MW 10:30-12:00, 306 Soda Hall) Ion Stoica (https://amplab.github.io/cs262a-fall2016/)

Slides:



Advertisements
Similar presentations
Operating System.
Advertisements

Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
Introduction CSCI 444/544 Operating Systems Fall 2008.
Operating Systems CS451 Brian Bershad
Unix Systems Administration 1Y. K. Chang Reasons for UNIX’s success 4 Written in high level language –easy to read, understand, change, and move to other.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
W4118 Operating Systems OS Overview Junfeng Yang.
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
JMS 1 CSE 350, Spring 2001 The Unix Time-sharing System Chuck Davin Software Design & Engineering CSE 350 Spring 2001.
Silberschatz, Galvin and Gagne  Operating System Concepts Common OS Components Process Management Memory Management File Management I/O System.
Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
CS4315A. Berrached:CMS:UHD1 Operating System Structures Chapter 3.
1 CS : Cloud Computing, Systems, Networking, and Frameworks Fall 2011 (MW 1:00-2:30, 293 Cory Hall) Ion Stoica (
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Operating System It is the interface between user (application programs) and hardware. It is a program that controls the execution of application programs.
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
CSE 451: Operating Systems Section 10 Project 3 wrap-up, final exam review.
1 CS 294: Big Data System Research: Trends and Challenges Fall 2015 (MW 9:30-11:00, 310 Soda Hall) Ion Stoica and Ali Ghodsi (
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
Operating System 2 Overview. OPERATING SYSTEM OBJECTIVES AND FUNCTIONS.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
CS703 - Advanced Operating Systems By Mr. Farhan Zaidi.
CMPS Operating Systems Prof. Scott Brandt Computer Science Department University of California, Santa Cruz.
10/2/20161 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Introduction to Operating Systems Concepts
Applied Operating System Concepts
Course Introduction Dr. Eggen COP 6611 Advanced Operating Systems
Andy Wang COP 5611 Advanced Operating Systems
Operating System Structure
Operating Systems Georgios Varsamopoulos
Introduction to Operating System (OS)
Lecture 1 Runtime environments.
KERNEL ARCHITECTURE.
Lecture 11: DMBS Internals
The UNIX Time-Sharing System
CS 262a: Advanced Topics in Computer Systems
Join Processing in Database Systems with Large Main Memories (part 2)
Chapter 2: System Structures
Unit 1: Introduction to Operating System
Lecture Topics: 11/1 General Operating System Concepts Processes
Language Processors Application Domain – ideas concerning the behavior of a software. Execution Domain – Ideas implemented in Computer System. Semantic.
CSCE 313 – Introduction to UNIx process
Andy Wang COP 5611 Advanced Operating Systems
Chapter 2: Operating-System Structures
Operating Systems Lecture 1.
Introduction to Operating Systems
Prof. Leonardo Mostarda University of Camerino
Andy Wang COP 5611 Advanced Operating Systems
CherryPick: Adaptively Unearthing the Best
Lecture 1 Runtime environments.
System calls….. C-program->POSIX call
CS703 - Advanced Operating Systems
Process Management -Compiled for CSIT
CSE 542: Operating Systems
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Chapter 2: Operating-System Structures
Department of Computer Science
Andy Wang COP 5611 Advanced Operating Systems
Operating System Concepts
Sarah Diesburg Operating Systems CS 3430
Lecture Topics: 11/1 Hand back midterms
The UNIX Time Sharing System
Presentation transcript:

1 CS 262a: Advanced Topics in Computer Systems Fall 2016 (MW 10:30-12:00, 306 Soda Hall) Ion Stoica (

What is System Research? Manage resources:  Memory, CPU, storage  Data (database systems) Provide abstractions to applications:  File systems  Processes, threads  VM, containers  Naming system  …

This Class Learn about systems research by  Reading several seminal papers  Doing it: work on an exciting project Hopefully start next generation of impactful systems

Appreciate what is Good Research Problem selection Solution & research methodology Presentation

What do you need to do? Research oriented class project  Groups of 2-3 One midterm exam, no final exam Paper reading  Submit answers to three questions for each paper before lecture  Discuss paper during class

Research Project Investigate new ideas and solutions in a class research project  Define the problem  Execute the research  Write up and present your research Ideally, best projects will become conference papers (e.g., SOSP, NSDI, EuroSys)

Research Project: Steps We’ll distribute a list of projects  You can either choose one or come up with your own Pick your partner(s) and submit a one page proposal describing:  The problem you are solving  Your plan of attack with milestones and dates  Any special resources you may need Poster session Submit project report

Paper Reading: Key Questions What is the problem? What is the solution’s main idea? Why did it succeed or failed? Does the paper (or do you) identify any fundamental/hard trade-offs?

9 Distributed Shared Memory Countless papers:  Very compelling abstraction  Many hard challenges, so many researchers worked on it Today  Very few systems using shared memory, if any  Message passing (e.g., MPI) or bulk synchronous processing (e.g., Spark) prevalent

Why did it fail?

Virtual Machine Many papers:  Very compelling abstraction  Many hard challenges, so many researchers worked on it Today  VMs everywhere  Containers (e.g., docker) take this concept to the next level

Why did it succeed?

13 What are Hard/Fundamental Tradeoffs? Brewer’s CAP conjecture: “Consistency, Availability, Partition-tolerance”, you can have only 2/3 in a distributed system Tradeoff between latency and throughput for arbitrary updates in distributed systems  Batch request to increase throughput, but hurts latency

14 Grading Project: 60% Midterm: 15% Class participation: 25%

Exciting times in systems research Moore’s law ending  many challenges Many-cores machines  Amazon’s X1 instances: 120 vcores and 2TB RAM Large scale distributed systems maturing, but many challenges remain Specialized hardware: FPGAs, GPUs, ASICs New memory technologies: 3D XPoint

Increased complexity – Computation 16 Software CPU Software CPU GPUFPGA ASIC + SGX

Increased complexity – Memory L1/L2 cache L3 cache Main memory NAND SSD Fast HHD ~1 ns ~10 ns ~100 ns / ~80 GB/s / ~100GB ~100 usec / ~10 GB/s / ~1 TB ~10 msec / ~100 MB/s / ~10 TB 2015 ~10 msec / ~100 MB/s / ~100 TB L1/L2 cache L3 cache Main memory NAND SSD Fast HHD ~1 ns ~10 ns ~100 ns / ~80 GB/s / ~100GB ~100 usec / ~10 GB/s / ~10 TB HBM ~10 ns / ~1TB/s / ~10GB NVM (3D Xpoint) ~1 usec / ~10GB/s / ~1TB 2020

Increased complexity – more and more choices 18 Microsoft AZURE Basic tier: A0, A1, A2, A3, A4 Optimized Compute : D1, D2, D3, D4, D11, D12, D13 D1v2, D2v2, D3v2, D11v2,… Latest CPUs: G1, G2, G3, … Network Optimized: A8, A9 Compute Intensive: A10, A11,… Amazon EC2 t2.nano, t2.micro, t2.small m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m3.medium, c4.large, c4.xlarge, c4.2xlarge, c3.large, c3.xlarge, c3.4xlarge, r3.large, r3.xlarge, r3.4xlarge, i2.2xlarge, i2.4xlarge, d2.xlarge d2.2xlarge, d2.4xlarge,… n1-standard-1, ns1-standard-2, ns1-standard-4, ns1-standard-8, ns1-standard-16, ns1highmem- 2, ns1-highmem-4, ns1- highmem-8, n1-highcpu-2, n1- highcpu-4, n1-highcpu-8, n1- highcpu-16, n1-highcpu-32, f1- micro, g1-small… Google Cloud Engine

Increase complexity – more and more requirements Scale Latency Accuracy Cost Security 19

The Unix Time-sharing System Third major time-sharing operating system CTSS (Compatible Time-Sharing System):  MIT, 1961 Multics (MULTiplexed Information and Computing System)  MIT, 1969 Unix stands for UNiplexed Information and Computing Systems (initially, spelled Unics)  AT&T, 1971

Context Multics: 2 nd system syndrome (coined by Fred Brooks)  Following a successful system, designers become over-ambitious  complex system “If your project is the second system for most of your designers, then it will probably fail outright. If it doesn't fail, it will be bloated, inefficient, and icky” Unix a reaction to Multics  Uniplexed vs. Multiplexed ;-)  Simple, small system

“Self-Supporting System” Use your own system, i.e., “eating your own dog food” – a lesson more valuable than ever today Users are best developers of a system as they are in the best position to know requirements Dogfooding origin (unverified, but nice story!):  President of Kal Kan Pet Food would eat a can of his dog food at shareholders' meetings

Written in C At that time all Operating Systems were written in Assembly language  Much easier to understand  Faster to develop  More portable (at that time there were many architectures) 33% increased in size deemed acceptable Unix played a big role in the rapid raise of C  Designed by Dennis Ritchie

Minimalist design No user-visible locks. Why? No restrictions on number of users who can open a file, even though…  “contents of a file [can] become scrambled when two users write on it simultaneously” Doesn’t enforce consistency on buffer cache Doesn’t charge users for storage allocated to their files

Simple abstractions Files store bytes, there is no concept of records No distinction between “random” and sequential I/O Files use fixed block allocation (i.e., 512B) Simple way to implement multi-processing  Fork, wait, exit: trivial to share data and wait for a process (i.e., child) to terminate

Unifying Abstractions I/O devices treated like files:  File and device names have same syntax and meaning  To a program can pass either a device or file  Can use same protection mechanisms like regular files Directories special files, except  System control the content of directory

Unifying Abstractions (cont’d) Pipes: unified with files  Can easily compose simple commands to provide complex functionality  E.g., “ grep ERROR log.txt | sort | less ” Shell: just a program  Reads user commands, interpret, and execute them  Supports multitasking (backgrounding)  Support filters, pipes

Small code base < 50kB kernel  A few thousands LoC  High level language helped a lot Only 2 man-years to write Most successful projects start small!

Grading the paper What is the problem?  Simple, powerful system that users themselves can easily evolve What is the solution’s main idea?  Minimalist design, unified abstractions (avoid 2 nd system syndrome)

Grading the paper Why did it succeed or failed?  Powerful, time-sharing system  Addictive to use: interactive shell  Open-source  High level language made it easy to port to other architectures Does the paper (or do you) identify any fundamental/hard trade-offs?  Fixed block size not optimal for all apps