`
Anddy
  • 浏览: 200815 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Standby Suspend Sleep and Hibernate

阅读更多

在linux下工作,经常不想把已经工作的环境全部关闭,每次开机都须重新开启eclipse等等。有时一下走神浏览下网页时间就过去了。看来还是用待机取代关机比较方便哈。
之前也听说过“待机”,“睡眠”等概念,以前的理解只是停留在表面。今天深入了解下他们的区别
下面这篇文章转载自: http://www.cnitblog.com/yuhensong/archive/2008/06/18/45849.html 想看原版的请移步
如果觉得下文文字较多,看看多图文章 : http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=745
在ubuntu命令行hibernate/suspend : http://ubuntuforums.org/showthread.php?t=813387
安装ubuntu时未分配swap区,现在还不能hibernate!

 


USER ISSUE
What is the difference between sleep, standby, suspend, and hibernate?
GENERAL INFORMATION
  Computers typically offer various power saving modes. The names for these modes will be something like standby, suspend, sleep, and hibernate. Typically the standby, suspend and sleep modes require that the computer be left on to some degree, and that it stay connected to power (battery or AC). While in these modes, the hard drive usually stops running, the display turns off, and the fans might even turn off. However, the computer is still keeping in active memory everything that was running and open just prior to being put in a low power mode. The hibernate mode allows you to turn off the computer completely and even unplug it from power. When it turns back on, the screen should show you exactly what you were were working on just prior to putting it in hibernate mode.
   Because standby, suspend and sleep modes keep all the information in memory , it is typically quicker to start working again after being in these modes. Resuming work from the hibernate mode typically takes more time because it requires starting up the computer and loading everything into memory from the hard drive again (although you don't need to manually start the programs and load the files because the computer will restore everything to the state it was in previously).
   Depending on the computer and configuration, some cleanup tasks may be performed at system startup and shut down. So, some people prefer to simply shut down a computer when the are done using it. Some people suggest that it is best to leave computers on. However, if we consider the computer to be like any other appliance, then it makes sense to simply turn it off when it is not in use just as we would with a television set, dish washer, microwave, coffee pot, or any other appliance.
休眠功能的特点
与普通开机过程比较,休眠状态有以下的特点:
  1.可以随时进入休眠状态,无须将所有工作储存起来,并关闭一个又一个的应用软件。因为休眠所保存的是当前的“状态”,所有打开的程序、设置及窗口排列等都不会改变。
  2.开机和关机的过程很快,相对正常关机和开机,休眠到硬盘(STD)至唤醒所需的时间可以快20%以上,而休眠到内存(STR)的关机和开机过程只需5秒钟。
  3.对笔记本电脑来说,当电池即将耗尽而又不能得到外接电源补给的时候,迅速进入休眠状态是保证当前工作不会丢失的唯一自保方法。
休眠功能的分类
   台式电脑和笔记本电脑的休眠模式也各有特色,一般而言后者的休眠方式比较全面和复杂。但总体来说都可分为STD和STR方式,而后者又细分成S1、S3及S1&&S3模式。
(一)STD模式(Suspend to Disk,休眠到磁盘)
   STD的特点是将电脑内存中的状态复制到硬盘,因为内存中的资料就是电脑当前状态的写照,所以保存这些资料就完整保留了电脑中的状态。STD在 Windows中称为“Hibernate”(休眠),要在控制面板的电源管理中进行设置(开始→设置→控制面板→电源管理→休眠→启用休眠功能)。其特 点是会在硬盘中永久占用空间作为保存内存资料之用。很明显,内存容量有多大,需要占用的硬盘空间就有多大。
  看到这里,大家一定会联想到,在STD状态下,电脑内存容量越大,进入休眠和唤醒的过程也就越慢。当然,对于内存中没有资料的部分,硬盘也不会全部读写,所以时间比完全读写要快一些,但总的来说速度仍然较慢。
  不过STD也有优点,就是当资料复制到硬盘后,即使电源完全中断,资料也不会丢失。因此对笔记本电脑来说,STD是最好的选择。
(二)STR模式:(Suspend to RAM,休眠到内存)
  STR是在进入休眠状态时,只保留内存和主板芯片组的供电,而关闭其他部分。由于所有资料本来就在内存中,因此速度之快超乎想像。无论是台式电脑或笔记本电脑都可以利用此方式作休眠,它在Windows中被称为“Suspend”。
   其中Suspend状态又可分为S1与S3。S1模式的休眠程度较浅,当休眠时,硬盘、处理器和其他设备都会停止工作,但处理器和显示卡的风扇仍然会运 转,机箱电源也仍然在工作。因此S1的省电程度较低,但进入和唤醒速度最快,兼容性也比较好(我的机器就是这个,suspend以后机箱里还有风扇的声音 并且洞口有风进入说明电源风扇还在转)。而S3就仿佛彻底关机一样,除了电源指示灯会闪烁之外,所有风扇全部停转。此模式的耗电最少,速度也够快。笔记本 电脑通常都以此模式运作,达到最省电和无噪音的效果。而台式电脑采用此模式后,基本上无须关机,不用电脑的时候直接在关机菜单中选择“Standby”就 行了。
  STR的缺点就是很容易因为第三方驱动程序的兼容性问题使得系统无法正常进入Suspend状态。此外,如果主板BIOS对ACPI 的支持不完善,也会使STR功能无法使用。其中S3模式出现问题的几率比S1模式多,因此很多主板都具备S1&&S3模式,并可让操作系 统自动选择。但另外一个重要的前提就是机箱电源的+5V Standby插头必须能输出750mA以上电流,否则计算机将“长眠不醒”。

  绝大多数笔记本电脑同时支持多种电源管理模式,通常当用户在Windows中选择“Standby”或者按下电源开关,就会进入 Suspend状态。而当用户合上屏幕,则会进入Hibernate状态。当然,不管使用哪种模式,即使电脑不进入休眠或待机状态,我们都可以设置当某种 设备闲置一定时间后就自动关闭,以便省电。
  只要大家充分了解和应用电脑的休眠功能,既能达到省电的目的,又可以让电脑在开机和关机时更加迅速,不是有一举两得的功效吗?

缩写:
S1 or S3  = standby    = 待机  = STR
S4           = Hibernate  = 休眠 = STD

 

=========12/27================
manage and configure disk drives and media
写道
palimpsest (from the gnome-disk-utility project) is a tool to manage disk drives and media:
* Format and partition drives.
* Mount and unmount partitions.
* Query S.M.A.R.T. attributes.
It utilizes udisks.
摘自:http://packages.ubuntu.com/lucid/gnome-disk-utility

 =======12/28===========
      扩展分区和primary分区的区别:

  Differing from other partitions, the first sector of extended partition is not a boot sector, but another partition table , which is called logical partition table.
写道
Commonly, there are only two partition entries in logical partition table. One points to a partition, called logical partition, whose boundary must be limited to the extended partition. The other entry, if needed, of the extended partition table points to the next logical partition table. Similarly, its boundary is limited to its parents extended partition. And the next logical partition table may also have two partition entries: one points to a logical partition; the other points to another logical partition table and the rest may be deduced by analogy. Therefore, many partitions could be created in extended partition.
对比阅读:
 http://book.51cto.com/art/201007/211948.htm

what is partition( or  volume)  Boot section http://www.easeus.com/resource/partition-boot-sector.htm  
写道
This is distinct from the master boot sector (or record) that controls the entire disk, but is similar in concept.
 



分享到:
评论
3 楼 Anddy 2010-12-29  
DKMS is a framework designed to allow individual kernel modules to be upgraded without changing the whole kernel. It is also very easy to rebuild modules as you upgrade kernels.
2 楼 Anddy 2010-12-28  
新建了swap区之后,
解决了hibernate的问题[虽然hibernate时会报错:error drm:init-ring-common]!!

参考帖子: http://ubuntuforums.org/showthread.php?t=287962 第三楼的解决办法。
1 楼 Anddy 2010-12-28  
中午在onshoestring帮助和提醒下解决了分区的问题,详细看帖。
http://forum.ubuntu.org.cn/viewtopic.php?f=169&t=311832
大致原因见15楼。

相关推荐

    sleep_standby:使计算机Hibernate然后单击程序并在Hibernate后程序退出-开源

    标题中的“sleep_standby”指的是一个程序,它允许用户使计算机进入休眠(Hibernate)状态,并在休眠后自动启动指定的程序。休眠模式是Windows操作系统中的一个节能功能,它将当前系统状态保存到硬盘,然后关闭电源...

    Oracle8i Standby Database Concepts and Administration Release 2

    Oracle8i Standby Database Concepts and Administration Release 2 (8.1.6) 是一份重要的文档,专注于介绍如何管理和实现Oracle数据库在8.1.6版本中的备用数据库(Standby Database)技术。备用数据库是Oracle...

    Sleep and Wakeup_stm8sleepmode_

    标题"Sleep and Wakeup_stm8sleepmode_"指的是STM8S微控制器在睡眠模式及唤醒机制方面的知识。下面将详细阐述STM8S的睡眠模式及其唤醒机制。 STM8S提供了多种低功耗模式,其中睡眠模式是其中一个重要的节能策略。在...

    testzp05_standby_F2812_

    3. **低功耗模式控制寄存器**:F2812有多种低功耗模式,如STANDBY、SLEEP等。这些模式通过修改相应的控制寄存器来选择和配置。在进入STANDBY模式时,CPU停止工作,但一些外围模块可能保持活动,以便在唤醒时快速恢复...

    Oracle Standby数据库建立

    Oracle Standby 数据库建立 Oracle Standby 数据库建立是指建立一个备用的数据库,用于备份 Primary 数据库,以确保数据的安全和可用性。Standby 数据库通过 Primary 数据库的 Archived log files 来实现备份。 ...

    oracle dataguard 逻辑standby建立

    ### Oracle Dataguard 逻辑 Standby 建立详解 #### 一、Oracle Dataguard 概述 Oracle Dataguard 是 Oracle 数据库提供的一种高可用性和灾难恢复解决方案,通过在主数据库(Primary Database)与备数据库(Standby...

    oracle_standby_training.ppt

    Oracle DataGuard 是Oracle数据库系统提供的一种高可用性和灾难恢复解决方案,它通过创建和维护一个或多个备用数据库(Standby Database)来确保数据的安全性。在本篇Oracle Standby Database的培训内容中,我们将...

    Oracle Standby数据库建立.doc

    Oracle Standby 数据库建立 Oracle Standby 数据库是为了 Primary Database 做的备份,是通过 Primary Database 不断产生出的 Archived log files来实现的。Primary Database 处于 Archive mode 状态,持续送出 ...

    STANDBY

    根据提供的文件信息,本文将详细解释Oracle Standby数据库的相关知识点,包括如何设置和管理Oracle Standby数据库,以及在Oracle 9i环境下配置Data Guard的基本步骤。 ### Oracle Standby数据库概念 Oracle ...

    ORACLE Standby数据库工作原理及程序设计.pdf

    Oracle Standby数据库是一种高可用性数据库解决方案,它通过维护一个与主数据库(Primary database)同步的备份数据库来实现数据的安全性和冗余。Standby数据库可以是物理备份也可以是逻辑备份,目的是在主数据库...

    D1_Linux_Standby_开发指南1

    * standby_suspend:Standby 模块的休眠函数 * standby_resume:Standby 模块的唤醒函数 3.2 常见问题 3.2.1 系统被错误唤醒 * 系统被定时器唤醒:检查定时器的配置,确保定时器不会在休眠状态下唤醒系统 * 系统...

    oracle 10g 物理与逻辑standby测试手册

    根据给定的文件信息,以下是对Oracle 10g物理与逻辑standby测试手册的关键知识点进行的详细解析: ### Oracle Dataguard与物理、逻辑Standby数据库 **Oracle Dataguard**是Oracle数据库的一项关键特性,它提供了...

    不停机搭建standby备库

    【不停机搭建standby备库】是指在保持主数据库正常运行的情况下,建立一个物理standby数据库的过程。物理standby数据库是Oracle Data Guard解决方案的一部分,它能够实时接收并应用主数据库的redo日志,以保持与主...

    oracle dataguard 物理standby建立

    在Oracle数据库管理中,Data Guard是一项关键的高可用性和灾难恢复技术,它通过在主数据库(primary database)和一个或多个备用数据库(standby databases)之间复制数据,来确保数据的安全性和业务连续性。物理Standby...

    【DATAGUARD】 将11g物理备库转换为Snapshot Standby

    ### DATAGUARD:将11g物理备库转换为Snapshot Standby #### 一、概述 Oracle DataGuard 是一种全面的数据保护解决方案,它能够帮助用户保护关键业务数据免受灾难性故障的影响。通过创建一个或多个备用数据库,...

    oracle physical standby配置

    Oracle物理备用库(Physical Standby)配置是在数据库高可用性架构中的一种常见实践,它确保在主数据库出现故障时,可以快速切换到备用数据库继续提供服务。以下是对配置过程的详细解释: 1. **启用Force Logging**:...

    oracle9i standby

    在IT领域,Oracle数据库是企业级数据管理的重要组成部分,而Oracle 9i版本中的Data Guard技术,特别是其Standby数据库功能,为数据高可用性和灾难恢复提供了强大的支持。以下是对Oracle 9i Standby数据库配置步骤的...

    Oracle DataGuard物理Standby Database配置

    Oracle DataGuard物理Standby Database配置是一项关键任务,用于创建一个实时同步的备份数据库,以确保在主数据库出现故障时能够迅速切换,保障业务连续性。以下是配置物理Standby Database的详细步骤: 1. **启用...

    Intelligent standby list cleaner ISLC自动清理Windows10备用内存ISLC v1.0.2.2

    Windows10操作系统为了提高系统响应速度和整体效率,引入了一种称为“备用内存”(Standby Memory)的技术。备用内存是系统将暂时不用但可能在未来需要的数据保存在内存中,以减少硬盘读取时间。然而,过多的备用...

    Standby-mode-on-the-STM32.rar_cson stm32_standby_stm32 standby_

    在STM32上实现standby模式是一项关键的低功耗设计技术,适用于电池供电或长时间运行的应用。standby模式是STM32的低功耗模式之一,它能够最大限度地减少电流消耗,以延长设备的运行时间。 standby模式下,STM32的主...

Global site tag (gtag.js) - Google Analytics