[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 在内存中可以建立 swap 分区吗?



我刚才测试了一下,如果mkswap /dev/ram8后 swapon /dev/ram8提示错误
blueice:/# swapon -a
swapon: /dev/ram8: Invalid argument

使用label也不成
blueice:/# mkswap /dev/ram8 -L ramswap
Setting up swapspace version 1, size = 8384 kB
LABEL=ramswap, UUID=0411573b-922c-4cb4-9014-de8344aba35a
blueice:/# swapon LABELL=ramswap
swapon: cannot find the device for LABELL=ramswap

从理论上来说应该是可以的,可能是ramdisk在某些方面做了限制吧。

在 Thursday 29 December 2005 19:52,江舜强 写道:
> >  我倒是有兴趣知道是什么样的应用需要这样的设置?
> > swap是物理内存的延伸,在内存里创建swap为的是什么?

-- 
====================
快乐着你的快乐!
幸福着你的幸福!!
====================

Reply to: