中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 操作系统 > SCO_Unix
加大增加SCO UNIXWARE下的swap空间
作者:佚名 时间:2006-11-25 01:42 出处:互连网 责编:月夜寒箫
              摘要:加大增加SCO UNIXWARE下的swap空间

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.

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有