eygle.com   eygle.com
eygle.com  
 

« 如何查询redo logfile的使用率 | Blog首页 | 经典图书推荐系列-之一 »

如何在Linux下增加Swap区

作者:eygle |【转载时请以超链接形式标明文章和作者信息及本声明
链接:

1.查看系统Swap空间使用

[root@jumper usr]# free
             total       used       free     shared    buffers     cached
Mem:        513980     493640      20340          0     143808     271780
-/+ buffers/cache:      78052     435928
Swap:      1052248      21256    1030992

2.在空间合适处创建swap文件

[root@jumper usr]# mkdir swap
[root@jumper usr]# cd swap
[root@jumper swap]# dd if=/dev/zero of=swapfile bs=1024 count=10000
10000+0 records in
10000+0 records out
[root@jumper swap]# ls -al
total 10024
drwxr-xr-x    2 root     root         4096  7月 28 14:58 .
drwxr-xr-x   19 root     root         4096  7月 28 14:57 ..
-rw-r--r--    1 root     root     10240000  7月 28 14:58 swapfile


[root@jumper swap]# mkswap swapfile
Setting up swapspace version 1, size = 9996 KiB

3.激活swap文件
[root@jumper swap]# swapon swapfile
[root@jumper swap]# ls -l
total 10016
-rw-r--r--    1 root     root     10240000  7月 28 14:58 swapfile
[root@jumper swap]# free
             total       used       free     shared    buffers     cached
Mem:        513980     505052       8928          0     143900     282288
-/+ buffers/cache:      78864     435116
Swap:      1062240      21256    1040984
[root@jumper swap]#


历史上的今天...
      >> 2009-07-27文章:
      >> 2006-07-27文章:
             见识了一次Oracle9i标准版
             《深入浅出Oracle》的购买途径
      >> 2005-07-27文章:
             瑞典游记-正章- Drottningholm
------
这篇 【如何在Linux下增加Swap区】来自 eygle.com | CSDN网摘| del.icio.us|Google订阅 | 鲜果订阅 | 抓虾订阅

By eygle on 2004-07-27 00:04 | Comments (0) | Posted to Unix&Linux | Edit |

相关文章 随机文章
  • OEL Linux与Oracle Validated Configurations
  • Linux下如何查看文件秒级修改及访问时间
  • Linux + Oracle 数据库系统启动能有多快?
  • 使用Linux下script工具记录Oracle输出
  • 使用kudzu命令查看网卡型号
  • Oracle诊断案例-Sql_trace之一
    断电故障导致 ASM DiskGroup 故障及恢复案例
    Oracle Database 11g 体系结构图下载
    赏画:展子虔之游春图
    Oracle X$ table 参考手册
    搜索本站:

    留言 (0)

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004~2010 eygle.com, All rights reserved.