LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 853|回复: 9

Howto use swap after livecd started?

[复制链接]
发表于 2008-12-25 00:52:03 | 显示全部楼层 |阅读模式
Sorry for my ugly English.

I am on Sabayon livecd now. I want to use SWAP. I made a swap partition on /dev/sda8 and have typed "swapon /dev/sda8", but nothing happened. Still there is 100% usage of RAM, which showed "70% in use as cache".

Any suggestion?
发表于 2008-12-25 02:41:19 | 显示全部楼层
你对linux的内存管理不是了解,linux会尽可能把内存全使用了当cache。
回复 支持 反对

使用道具 举报

发表于 2008-12-25 02:48:41 | 显示全部楼层
post the output of free
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-25 05:15:01 | 显示全部楼层
Post by blackwhite;1929282
你对linux的内存管理不是了解,linux会尽可能把内存全使用了当cache。
Thank you for your reply.
I just wonder whether it will slow the computer. It turns out it won't do.

Another Question:
I know 2G RAM is enough for me in everyday use, then is it necessary to leave 2G or more on the harddisk for swap? I just want to have the "Hibernate?"(Xiu Mian) feather on my pc. Is it possible to hibernate when some software under compiling? Will the compiling be continued next time I boot the computer?

To zhllg:

I don't know how to get the output in text format. I know 30% in use by programs and 70% (or less) in use as cache just from the applet in the taskbar.
回复 支持 反对

使用道具 举报

发表于 2008-12-25 05:36:32 | 显示全部楼层
给swap分4G吧,这样比较保险。如果你要用休眠的功能的话。至少要和memory大小一样。
你在terminal上,执行free,就有输出结果了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-25 08:38:28 | 显示全部楼层
Thanks again.

free free free free.... I will remember it next time ;-)
回复 支持 反对

使用道具 举报

发表于 2008-12-25 12:49:47 | 显示全部楼层
you know what?
i have tried this:
at office, i mount a partition on an external harddisk as /var/tmp/portage, then emerge openoffice. then hibernate. unplug the external harddisk. then go home. after arrived at home, i  plug in the harddisk. resume, the compiling resumes just as it has never been stopped.
回复 支持 反对

使用道具 举报

发表于 2008-12-25 18:53:15 | 显示全部楼层
Post by blackwhite;1929290
给swap分4G吧,这样比较保险。如果你要用休眠的功能的话。至少要和memory大小一样。
你在terminal上,执行free,就有输出结果了。


什么机器上 swap 能写到4G?  就算真写到4g了 那机器的速度估计是非人类能忍受的范围.
服务器?! swap大量长时间使用的服务器 该停机维护了......
回复 支持 反对

使用道具 举报

发表于 2008-12-25 19:14:03 | 显示全部楼层
Post by 軒轅.子;1929662
什么机器上 swap 能写到4G?  就算真写到4g了 那机器的速度估计是非人类能忍受的范围.
服务器?! swap大量长时间使用的服务器 该停机维护了......


楼上的意思是说用4G的swap来休眠的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-26 05:06:03 | 显示全部楼层
Post by zhllg;1929434
you know what?
i have tried this:
at office, i mount a partition on an external harddisk as /var/tmp/portage, then emerge openoffice. then hibernate. unplug the external harddisk. then go home. after arrived at home, i  plug in the harddisk. resume, the compiling resumes just as it has never been stopped.
版主你太强了。

ps:
在其他的帖子上我看到你这个发言,可惜是在我发贴之后了。我应该先搜索的。实在惭愧!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表