文谷首页 | 业界传真 | 网络技术 | 服务器 | 数据库 | 存储技术 | 系统安全 | 无线技术 | Cisco | .Net | Windows | Linux | Unix | Java
电子商务 | 网站工程 | 网页设计 | 平面设计 | 多媒体 | 编程语言 | Oracle | MSSQL | Photoshop | ASP | PHP | 实用技巧 | 进程查询 | 文谷论坛
Unix频道
 系统管理   Unix   Solaris   FreeBSD
您现在的位置: IT文谷 >> Unix >> Unix >> 文章正文
加大增加SCO UNIXWARE下的swap空间加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间
加大增加SCO UNIXWARE下的swap空间
加大增加SCO UNIXWARE下的swap空间加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间
加大增加SCO UNIXWARE下的swap空间加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加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.
加大增加SCO UNIXWARE下的swap空间加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间
  • 上一篇文章:

  • 下一篇文章:
  • 进入论坛讨论

    相关文章
    阻挡非法用户登陆SCO UNIX
    创建 SCO Openservers UNIX 5 应急引导盘
    构建SCO UNIX下的Web服务器
    sco unixware 7.1.1 全面学习资料
    SCO UNIX 5.06 + INFORMIX ONLINE 7.31安装和配置文档
    HP 服务器安装 SCO UNIX 5.0.4/5(下)
    HP 服务器安装 SCO UNIX 5.0.4/5(上)
    SCO Unix网络环境中广播发送的实现
    SCO OpenServer 5.0.5中DNS和DHCP的配置
    使用usermod命令控制口令选择
    SCO UNIX下的socket编
    在SCO5下安装Oracle 7.3.4 (4)
    热门文章最新推荐

    版权与免责声明:
    ① 本网转载其他媒体稿件是为传播更多的信息,此类稿件不代表本网观点,版权归原作者所有,本网不承担此类稿件侵权行为的连带责任。
    ② 本站原创文章,转载时请注明出自文谷及作者姓名
    ③在本网BBS上发表言论者,文责自负。
    ④如您因版权等问题需要与本网联络,请在30日内联系 。
    加大增加SCO UNIXWARE下的swap空间加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间
    加大增加SCO UNIXWARE下的swap空间加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间2006-3-31 0:13:43加大增加SCO UNIXWARE下的swap空间

    全站热点
    最新推荐
    关于文谷 | 联系文谷 | 免责声明 | 文谷论坛
    Tel: 0577-65690019      E-mail: ichenjian@gmail.com    MSN:ichenjian@hotmail.com    QQ:2911194
    Copyright © 2004-2008 wengu.com 文谷 All Rights Reserved
    浙ICP备05000327号