打印

请教关于swap分区的大小

请教关于swap分区的大小

我从一些技术文件上看到swap分区最大支持127MB,在Linux RedHat9中支持多大?请各位老鸟帮忙。

TOP

最大支持127?这是什么时候的事情?
swap是一个交换分区,一般定义为你机器内存的2倍。即如果你的内存是256M,那么swap分区的大小推荐为512M

TOP

可以不用swap,所以最小是0
最大可以是2G
一般的设置方法是内存的2倍但是不超过2G

TOP

hehe, never set u swap to 0 if u memory is really too much. I always used up my 392MB ram easily.
吴文官, must use a good machine. hehe.
Time is always not enough!

TOP

rh 官方网站说,有比没有好!!
通常设置为你物理内存的2倍,
如果你做服务器的话,可能要划几个!
Change your thought then you change your world

TOP

谢谢各位的帮忙,我已经解决了这个问题。
花间一壶酒,独酌无相亲。 举杯邀明月,对影成三人。 月既不解饮,影徒随我身。 暂伴月将影,行乐须及春。 我歌月徘徊,我舞影零乱。 醒时同交欢,醉后各分散。 永结无情游,相期邈云汉。

TOP

[quote:d7c5e56b4b="Ivn"]rh 官方网站说,有比没有好!!
通常设置为你物理内存的2倍,
如果你做服务器的话,可能要划几个![/quote]

and on different hard drive

TOP

我内存是256M,除了玩quake3或编译XFree时有可能用完swap外,一般都用不完,swap为86M
我期待有512M的内存,那样我可以把当中128M拿出来当作虚拟磁盘用

TOP

hehe, 3 of my linux boxes have 1g ram.

u can use that shmfs to act as virtual disk now.
Time is always not enough!

TOP

[quote:198988a920="cheungming"]hehe, 3 of my linux boxes have 1g ram.

u can use that shmfs to act as virtual disk now.[/quote]

My PC has over 1G Ram, too. So I never make a partition for SWAP.  

TOP

u are cool.
Time is always not enough!

TOP

i am coooooooooooooooooooooool

TOP

[quote:51ef27e39a="饿死对立法"]i am coooooooooooooooooooooool[/quote]

u look like to fill water post. if u system is really cool, post one let us envoy.

TOP

cheungming的机器看来也很不错嘛, 三台机器, 每台的内存都上了1G嘛. 羡慕啊.

cheung是你的姓吗? 大陆的朋友一般没有这么拼写的, 你是来自港澳台, 还是新马啊?  
从来没有用过VMware, 我宁愿关机切换到另一个操作系统. 用VMware给我的感觉就是:"明明拥有了这个美女, 却不敢去碰她, 非要隔着帐篷来意淫一样."

TOP

i come from mainland, but i like see operas from tvb. so i use this cheung. it is "zhang".
Time is always not enough!

TOP