System suspend (short version) Pavel Machek, SUSE Labs 7/4/2018.

Slides:



Advertisements
Similar presentations
Introduction to Linux Recap Installing programs Introduction to Video Editing with Linux.
Advertisements

Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Basic Input Output System
Chapter 9 A Installing Linux. Synopsis What is needed. How to access the BIOS and boot a CD/DVD. How to repartition the hard drive. The Linux installation.
Wednesday, June 07, 2006 “Unix is user friendly … it’s just picky about it’s friends”. - Anonymous.
You can run that from a USB Drive ? Portable Applications: the good, the bad and the ugly Jeff Gimbel © 2007.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Project 0: Linux & VM Dabbling CS-502, Fall Project 0: Linux & Virtual Machine Dabbling CS-502, Operating Systems.
IT Systems Memory EN230-1 Justin Champion C208 –
Lecture 14: Review Intro to IT COSC1078 Introduction to Information Technology Lecture 15 Operating Systems James Harland
Condor Overview Bill Hoagland. Condor Workload management system for compute-intensive jobs Harnesses collection of dedicated or non-dedicated hardware.
Operating Systems.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
 Contents 1.Introduction about operating system. 2. What is 32 bit and 64 bit operating system. 3. File systems. 4. Minimum requirement for Windows 7.
Computer Case Holds all the components of the computer inside. Usually has built in fans that provide cooling to the computer.
Case study 2 Android – Mobile OS.
Cache Memory By Sean Hunter.
Capturing Computer Evidence Extracting Information.
Day 10 Hardware Fault Tolerance RAID. High availability All servers should be on UPSs –2 Types Smart UPS –Serial cable connects from UPS to computer.
VMs Virtual Machines. VM What is a VM  Virtual Machine  Software implementation of a machine running on another machine The VM may or may not resemble.
Basic Input Output System
Chromium OS is an open-source project that aims to build an operating system that provides a fast, simple, and more secure computing experience for people.
CoreWall Prototype Presented by Arun EVL’s Tech Meeting 8/25/04.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Tutorial 11 Installing, Updating, and Configuring Software
1 ITSK 2611 Welcome. 2 Operating System 3 What is an OS Resource Manager –Disk –Memory –CPU Device Manager –Printers –Video Card –Sound Card Utility.
Chapter 2 BAI517 Chris Redford.  Different version of Linux are called Distributions or Distros. Each one has its strengths and focus: Red Hat / Fedora.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
Implementing Hyper-V®
Presentation seminar on   Google Chrome OS is Linux based OS  Google Chrome is an open source, lightweight OS.  It is based.
Ubuntu, SUSE, OpenSUSE, CentOS & Oracle EL + hundreds on VM Depot Bring your own framework! Ecosystem Supported Microsoft 1st Party Support.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
Computer Systems Week 14: Memory Management Amanda Oddie.
1 Copyright © 2015 Pexus LLC Patriot PS Personal Server Installing Patriot PS ISO Image on.
© GCSE Computing Computing Hardware Starter. Creating a spreadsheet to demonstrate the size of memory. 1 byte = 1 character or about 1 pixel of information.
I NTRODUCTION TO N ETWORK A DMINISTRATION. W HAT IS A N ETWORK ? A network is a group of computers connected to each other to share information. Networks.
Installing BioLinux on Mac OS X or Windows using a virtual machine Dr. Habil Zare, PhD.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Chapter 2 BAI517 Chris Redford.  Different version of Linux are called Distributions or Distros. Each one has its strengths and focus: Red Hat / Fedora.
Introduction TO Network Administration
Unit 1: Computing Fundamentals. Computer Tour-There are 7 major components inside a computer  Write down each major component as it is discussed.  Watch.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 01 Introduction.
Windows Vista Configuration MCTS : Installing and Upgrading.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
1,, SUSE Labs,, ,, ‹#› System suspend (and system resume, if you are lucky :-) Pavel Machek, SUSE Labs.
Linux on ARM7TDMI or Nothing is as easy as it looks Helicon technologies Ltd. How to run uClinux on NXP LPC22xx.
Embedded Linux development: a glance from inside Embedded Linux development: a glance from inside Mike Rapoport CompuLab Ltd.
Software and Services Group Embedded Linux and the mainline kernel David Woodhouse CELF Embedded Linux Conference April 2009.
1,, SUSE Labs,, ,, ‹#› Sometimes it is good to be sleepy Pavel Machek, SUSE Labs.
BY: SALMAN 1.
cFS Platforms OSAL and PSP
Applied Operating System Concepts
Apache Ignite Data Grid Research Corey Pentasuglia.
A Dummies guide to computer memory
Chapter Objectives In this chapter, you will learn:
Guide to Linux Installation and Administration, 2e
BY: SALMAN.
Memory Key Revision Points.
LINUX WINDOWS Vs..
Power Management Discussion
Chapter III Desktop Imaging Systems & Issues
LINUX WINDOWS Vs..
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Virtualization Techniques
Operating System Concepts
System & Network Administration (MCSA & RHCSA)
2.C Memory GCSE Computing Langley Park School for Boys.
Operating System Concepts
Presentation transcript:

System suspend (short version) Pavel Machek, SUSE Labs 7/4/2018

Suspend to RAM a.k.a. S3 we have enough kernel support that it works on most machines, with exception of video ugly hacks were developed to fix video better keep them in userland suspend.sf.net tries to integrate them in easy-to-use package being easy-to-use introduced problems on lots of strange machines, Stefan Seyfried is working with users on expanding whitelist. contains DMI-based whitelist of notebooks

Using suspend to RAM ./s2ram If it does not work, see opensuse website for nice troubleshooting guide. what to do with desktops? Match both DMI and PCI ID of the video card? What about multihead setups? fortunately (?) it seems that noone cares HAL integration?

Brief history 'Software suspend' or 'Swap suspend' Swsusp * suspend-to-disk done by linux kernel, does not need BIOS support * originally for 2.4.X by Gabor Kuti * Nigel forked suspend2 * I created proof-of-concept uswsusp-like patches in late 2006 * Rafael added uswsusp in 2.6.17-rc1

Swsusp Very simple, in-kernel implementation Can use swap partition (no need for dedicated partition) Faster than BIOS suspend-to-disk (but slower than suspend2/uswsusp) Supports SMP, HIGHMEM, etc i386, x86-64, frv, ppc32 optionaly saves up to 50% of memory (including caches) stable: SUSE ships/supports it (in openSUSE <= 10.1) Fedora ships it still possible to shoot yourself into the foot, fortunately distros make it hard

Nigel's suspend2 All the features possible, and then some more Up to 100% of memory saved Encryption, compression support Can suspend to regular file and swapfile Bootsplash integration, esc aborts suspend Complex 14K LoC of kernel code Homebrew plugins support UI in kernel Fortunately (?) I scared Nigel away by now?

uSwsusp Allows userland to do all the hard work Kernel only exports low-level functions This allows to keep kernel complexity low (~1K LoC) while retaining flexibility Userland code available at suspend.sf.net Supports compression, encryption (password only asked during resume), suspend to file (slightly hacky, -mm?) Abort by key, bootsplash support Suspending over network should be doable without kernel patches

Suspend to both uSwsusp enables us to support „store image on disk, then suspend to RAM“ gets you fast resume, without risk of loosing data when battery runs flat Experimental, but quite simple Relies on s2ram being single binary