µswsusp & Splashy: 给 Linux 内核减负

{ 撰文/run_lisp }

9 月 21 日,托瓦尔兹说:“目前 Linux 内核体积很大,这确实是个问题。”µswsusp 和 Splashy 是 Linux 内核减负的典型代表,两者利用 initramfs 机制,把以前内核实现的功能放入 user space,相信在不久的将来,会有更多内核里的功能跑到内核外面,使内核能够更为简洁。

下面介绍 µswsusp 的使用:

sudo dpkg-reconfigure uswsusp

然后按照提示配置,s2disk 挂起到硬盘,s2ram 挂起到内存,当内存不够大可能就不能运行。

Splashy 的使用见 http://wiki.archlinux.org/index.php/Splashy_(简体中文)

参考链接

Read More:

27 Comments

  1. 1 Jungle Commented @ 2009-09-23 10:53Reply to this comment

    物极必反。。。

  2. 2 cc98.org Commented @ 2009-09-23 11:04Reply to this comment

    现在真是什么都有

  3. 3 大海 Commented @ 2009-09-23 11:18Reply to this comment

    Linux应该有一个桌面专用的内核,否则使用感受上永远也比不上Windows

  4. 4 eagle Commented @ 2009-09-23 11:42Reply to this comment

    @大海: 赞同,支持那么多个cpu有个鸟用啊,谁搞那么多cpu,

  5. 5 chwt Commented @ 2009-09-23 11:49Reply to this comment

    的确要把桌面不必要的特性精减掉,或者把桌面不需要的高级特性做成补丁模块,谁要谁补。

  6. 6 tangooricha Commented @ 2009-09-23 11:52Reply to this comment

    混合型内核应该在今后会是个主流,纯粹的集成型内核和微内核都只是学院派搞理论研究时的东西,放到实践中都不实用。工程设计还是要因时而变,因地制宜。

  7. 7 weapon Commented @ 2009-09-23 11:56Reply to this comment

    所谓微内核?

  8. 8 proguru Commented @ 2009-09-23 12:19Reply to this comment

    @weapon: linux kernel不是microkernel,是monolithic kernel

  9. 9 bittergourd Commented @ 2009-09-23 12:20Reply to this comment

    开发人员的工资来自服务器,桌面没有钱赚,所以也很少有闲人顾及桌面体验。啥时候桌面收费了,肯定好用,说到底还是市场决定一切。但是一旦收费,好用也没人用了。

  10. 10 marklf Commented @ 2009-09-23 12:34Reply to this comment

    大海 Commented @ 2009-09-23 11:18 amReply to this comment

    Linux应该有一个桌面专用的内核,否则使用感受上永远也比不上Windows

    ------------頂!

  11. 11 qii Commented @ 2009-09-23 12:48Reply to this comment

    @大海: +1

  12. 12 水杉潭夏 Commented @ 2009-09-23 13:05Reply to this comment

    个人认为 linux 的前景 应该是 嵌入式 , 在桌面上努力实在是失策

  13. 13 Jian Lee Commented @ 2009-09-23 13:05Reply to this comment

    我想desktop已经在悄悄开始改变一些传统的 unix-like “特性” 了。

  14. 14 simsilver Commented @ 2009-09-23 13:13Reply to this comment

    bittergourd Commented @ 2009-09-23 12:20 pmReply to this comment

    开发人员的工资来自服务器,桌面没有钱赚,所以也很少有闲人顾及桌面体验。啥时候桌面收费了,肯定好用,说到底还是市场决定一切。但是一旦收费,好用也没人用了。

    说得好,个人感觉所谓的桌面体验大都是普通用户的操作习惯问题,现在只要把桌面做稳定就足够了.

  15. 15 ainux Commented @ 2009-09-23 13:58Reply to this comment

    没办法,免费的东西只有自己自力更生吧,大不了自己编译内核

  16. 16 kevin.c Commented @ 2009-09-23 14:55Reply to this comment

    看看linux内核源码提供者的排名就明白了,排前面的都是像IBM RH SUN ORACLE这样的公司,别指望这些公司提供桌面代码了。

  17. 17 yang Commented @ 2009-09-23 15:31Reply to this comment

    @kevin.c: yup!

  18. 18 yymailb Commented @ 2009-09-23 15:44Reply to this comment

    linux 做好服务器是对的,云时代最主要的程序都跑在服务器

  19. 19 雪梨 Commented @ 2009-09-23 16:33Reply to this comment

    这些嘴上说的人真想改变点什么,

    就应该去支持 CK 补丁集,

    CK 最近放了个 BFS , 就是用扩展性换桌面响应的。

    另外,如果觉得 BFS 还太那啥,也可以先用 RT 内核

  20. 20 HolmesConan Commented @ 2009-09-23 16:45Reply to this comment

    @大海,@eagle 打上CK的BFS的patch试试吧。呵呵。 Linux是不是也应该分两个branch发展Kernel呢(或者更多),一些针对桌面,一些针对服务器,一些针对嵌入。 另Stallman好像又说了,开源意味着另一种集中,比如现在Linux基本在Linus手中,什么特性加进来,什么不加,下一个发展方向是什么,都由他主导。可如果不集中,又会造成不兼容,就像当初的C++编译器。是不是也应该搞出一个Linux ISO标准来呢?

  21. 21 Jing Commented @ 2009-09-23 16:53Reply to this comment

    程式回應速度的改善在嵌入式設備也是需要的!專用的desktop kernel在嵌入式設備上絕對也受益!

  22. 22 strangk Commented @ 2009-09-23 16:58Reply to this comment

    这样的话,linus说的内核臃肿问题可以从某种程度上解决了~~

  23. 23 spectrometer Commented @ 2009-09-23 18:43Reply to this comment

    我的archlinux按说明打上BFS的patch,感觉不出快来

  24. 24 daxia.tang Commented @ 2009-09-23 19:18Reply to this comment

    UNIX就是太多的分支,Linux还要再重蹈覆辙吗?

  25. 25 坏东西 Commented @ 2009-09-24 0:13Reply to this comment

    Linux不是纯粹的单内核,当然更不是微内核。实际上是二者的接合体。

  26. 26 awgnl Commented @ 2009-10-05 0:38Reply to this comment

    很难说是把功能放在内核外好,还是由内核实现好。还是要看应用。因地制宜。功能做全了,根据需要编译才是王道。

  27. 27 HolmesConan Commented @ 2009-10-05 8:10Reply to this comment

    @daxia.tang 关键是如何统一,多分支,如果程序能互用,也无所谓啊。至少大部分程序应该能通用才行,部分专用的程序,可以不通用嘛。