rt
looxb 回复于:2003-05-30 20:13:22 |
除了重装系统 |
agent-agent 回复于:2003-05-30 20:44:45 |
rt |
xzh2002 回复于:2003-05-30 20:45:45 |
用swap命令建立一个虚拟内存文件 |
answer 回复于:2003-05-31 10:19:33 |
Adding swap space
-------------------------------------------------------------------------------- NOTE: An attempt to use a regular file larger than 512K blocks (or 256MB) as swap can result in a kernel hang due to the requirement on the filesystem to allocate a backing store map. A swap requirement larger than 256MB should be satisfied by a swap slice, not by a regular file. See the Getting Started Guide for instructions on using the ``Customize filesystems and slices screen'' to modify a swap slice during installation. -------------------------------------------------------------------------------- To add swap space on an already installed system: Log in as root. Use the dd(1M) command to create a file equivalent in size to the amount of swap space you are adding: dd if=/dev/null of=file oseek=num bs=blocksize where file is the full pathname of the new file, blocksize is the block size of the root file system, and num is chosen so that num multiplied by the blocksize equals the number of MBs of swap space desired. The file must be in the root filesystem (``/''). This example creates a 200MB file on the default vxfs root filesystem: dd if=/dev/null of=/outputfile oseek=200 bs=1024k Use a text editor to edit the /etc/swaptab file and add information for device_name, start_offset, and size: file 0 - The device_name is the name of the file you created using the dd command, the start_offset is ``0'', and the minus sign indicates that the entire file is to be used as the size of the new swap space. Reboot the system to make the new swap space available for use. For example, the following sequence of commands configures 32MB of swap space: # dd if=/dev/null of=swapfile oseek=32 bs=1024k 0=0 records in 0=0 records out # ls -l swapfile -rw-r---r-- 1 root sys 33554432 Jul 18 11:58 swapfile # swap -a swapfile # swap -l path dev swaplo blocks free /dev/swap 38,2 0 819312 819312 swapfile 38,513 0 65536 65536 See swaptab(4) for more information about the /etc/swaptab file and dd(1M) for information about the data dump command. |
lsw 回复于:2003-05-31 10:25:05 |
感觉这样做不是很安全 |
sunlan 回复于:2003-05-31 16:05:49 |
我装系统的时候/tmp、/var/tmp两项都是做off处理的.这样就可以不去管大小了! |
洪哥 回复于:2003-05-31 16:12:42 |
SCO UNIX里可以用 swap -a 增加,要不你看看man swap吧,我觉得应该也可以增加的吧! |
unixuser 回复于:2003-06-01 08:24:03 |
SCO UNIX里可以用 swap -a 增加 |
answer 回复于:2003-06-01 09:26:32 |
[quote:488c47bd03="lsw"]感觉这样做不是很安全[/quote:488c47bd03]
这是UW标准添加SWAP的方法。 这篇文章可以在线文档中找到 |
tuxedoccb 回复于:2003-06-14 17:21:34 |
我的方法是用divvy找一块空的地方加 |
alanlql 回复于:2003-06-14 22:52:04 |
我用swap -a加的,用了二年,没发现问题。 |
圣诞老人 回复于:2003-10-20 20:55:03 |
我也用过swap -a
挺管用的 |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/