实现 x86或ARM 1-2秒冷启动到桌面?

19 views
Skip to first unread message

Yiling Cao

unread,
May 20, 2013, 3:39:46 AM5/20/13
to sh...@googlegroups.com
我一直有个想法,是否可以正常启动好的linux desktop的ram dump 一个image 出来,然后下次启动直接grub 从硬盘读raw image 到 RAM, 然后继续工作? 其实虚拟机就可以有这个功能。

有没有类似已经成熟的方案?

闫林

unread,
May 20, 2013, 3:51:23 AM5/20/13
to sh...@googlegroups.com
这不就是系统休眠么


在 2013年5月20日下午3:39,Yiling Cao <yilin...@gmail.com>写道:
我一直有个想法,是否可以正常启动好的linux desktop的ram dump 一个image 出来,然后下次启动直接grub 从硬盘读raw image 到 RAM, 然后继续工作? 其实虚拟机就可以有这个功能。

有没有类似已经成熟的方案?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

none_nobody

unread,
May 20, 2013, 4:13:35 AM5/20/13
to sh...@googlegroups.com
哇,你这个想法好有意思。

Robber Phex

unread,
May 20, 2013, 4:48:10 AM5/20/13
to sh...@googlegroups.com
+1

2013/5/20 闫林 <godspe...@gmail.com>



--
Regards,
RobberPhex

About me: http://about.me/RobberPhex

hzh nan

unread,
May 20, 2013, 4:53:14 AM5/20/13
to sh...@googlegroups.com
Virtualbox 里有个save the machine state,好像就是这个功能。


在 2013年5月20日下午3:39,Yiling Cao <yilin...@gmail.com>写道:
我一直有个想法,是否可以正常启动好的linux desktop的ram dump 一个image 出来,然后下次启动直接grub 从硬盘读raw image 到 RAM, 然后继续工作? 其实虚拟机就可以有这个功能。

有没有类似已经成熟的方案?

--

Shell Xu

unread,
May 20, 2013, 5:51:07 AM5/20/13
to shlug

8g数据读硬盘的时间比启动还长吧。除了不用慢慢开程序外,优势不明显。

from miui

在 2013-5-20 下午3:39,"Yiling Cao" <yilin...@gmail.com>写道:
我一直有个想法,是否可以正常启动好的linux desktop的ram dump 一个image 出来,然后下次启动直接grub 从硬盘读raw image 到 RAM, 然后继续工作? 其实虚拟机就可以有这个功能。

有没有类似已经成熟的方案?

--

Dannoy Lee

unread,
May 20, 2013, 5:52:49 AM5/20/13
to sh...@googlegroups.com
记忆中有个acpitool -S


2013/5/20 hzh nan <nhon...@gmail.com>



--
Dannoy.Lee

孑影

unread,
May 20, 2013, 6:15:31 AM5/20/13
to sh...@googlegroups.com
不是休眠吧,冷启动,1-2秒,基本上是吧文件一下子load到内存,然后不用带压缩的,估计基本上连硬件加电自检都得跳过,

+1

这个得好好研究研究

#风起看云涌,叶落品人生#

david pu

unread,
May 20, 2013, 7:52:19 AM5/20/13
to sh...@googlegroups.com
一般产生这个snapshot的时候会先swap,free掉没用的page,然后做suspend to disk。这样就不用整个memory都保存。
然后找个牛逼的压缩算法,要求解压极快,然后就是kernel 的入口点改成直接从resume开始,这样要求所有外设的resume都写得比较干净,至少不依赖于probe之类的。 
swsusp的实现是要先正常boot kernel,即外设的probe都走一遍,然后再load镜像。其实省的时间也有限。



2013/5/20 Shell Xu <shell...@gmail.com>



--
 ()   ASCII Ribbon Campaign
 /\   Keep it simple!

Qf Yang

unread,
May 20, 2013, 8:53:50 AM5/20/13
to sh...@googlegroups.com
机械硬盘启动确实慢得要死,不过换ssd后,8G内存休眠基本没压力。只是有时会休眠失败,只好强制断电,centos6.x

Wizard

unread,
May 20, 2013, 9:52:06 PM5/20/13
to shlug
休眠 和 冷启动有啥区别啊?

听着蛮有意思的哈,有木有谁知道怎么做的?
Wizard

hzh nan

unread,
May 20, 2013, 10:13:23 PM5/20/13
to sh...@googlegroups.com
冷启动好像是切断过电源的启动,内存全部丢失。
不确定休眠后掉不掉电,如果掉的话,休眠后的启动应该就属于冷启动。

Yu Changyuan

unread,
May 21, 2013, 8:31:36 AM5/21/13
to sh...@googlegroups.com
要是铁电能够普及,那该多好呀。


2013/5/21 hzh nan <nhon...@gmail.com>



--
Best regards,
Changyuan

LTN

unread,
May 22, 2013, 11:34:04 AM5/22/13
to SHLUG
睡眠是suspend to RAM,内存不断电,数据保存在内存中,电脑持续供电。
休眠(Hibernate)是RAM映射到硬盘,电脑整体断电。开机要自检,然后从硬盘读映像再载入的。
Reply all
Reply to author
Forward
0 new messages