How increase in Linux Swap

  1. Show Swap space system 

  [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 space to create the appropriate documents 

  [Root @ jumper usr] # mkdir swap 
  [Root @ jumper usr] # cd swap 
  [Root @ jumper swap] # dd if = / dev / zero of = count swapfile bs = 1024 = 10000 
  10000 +0 records in 
  10000 +0 records out 
  [Root @ jumper swap] # ls-al 
  Total 10024 
  Drwxr-xr-x 2 root root 4096 at 14:58 on July 28. 
  Drwxr-xr-x 19 root root 4096 at 14:57 on July 28 .. 
  - Rw-r - r - 1 root root 10240000 at 14:58 on July 28 swapfile 

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

  3. Activated swap documents 
  [Root @ jumper swap] # swapon swapfile 
  [Root @ jumper swap] # ls-l 
  Total 10016 
  - Rw-r - r - 1 root root 10240000 at 14:58 on July 28 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] # 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags:

Releated Articles


0 Comments to “How increase in Linux Swap”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.