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]#

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

相关文章 随机文章
  • 使用Linux下script工具记录Oracle输出
  • 使用kudzu命令查看网卡型号
  • Oracle10g Rac For Linux安装环境检查
  • Linux RAC OCFS文件系统与INODES
  • 一则简单的磁盘的iops测试
  • 终于收到ITPUB的T-Shirt衫
    Oracle热备期间的过量Redo生成控制
    Oracle OTN Lounge的活动安排
    How Big SCN can be?
    Oracle Database 11g 的相关文档
    搜索本站:

    留言 (0)

    发表留言:



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



    CopyRight © 2004 eygle.com, All rights reserved.