Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

This is a discussion on Swap in the VPS & Dedicated forum
Hi, I am trying to help a friend that is with a new server His server has 1GB of RAM and just 512MB of swap. ...

  1. #1
    JPC Addict winger's Avatar
    Join Date
    Nov 2006
    Location
    Rio de Janeiro - BR
    Posts
    135

    Swap

    Hi,
    I am trying to help a friend that is with a new server
    His server has 1GB of RAM and just 512MB of swap.
    Would not the correct be 2GB of swap?
    Is it possible to resize the swap area?
    Regards,
    winger.
    WebHostingTalk now in portuguese
    www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web

  2. #2
    DEHE Milovan's Avatar
    Join Date
    Apr 2005
    Posts
    438
    Hi,

    This is a dedicated server I suppose?
    Milovan Milic


    DEHE.com - Definition of Hosting Experts

  3. #3
    JPC Addict winger's Avatar
    Join Date
    Nov 2006
    Location
    Rio de Janeiro - BR
    Posts
    135
    Hi Milovan,

    Yes it is!

    regards,
    Ricardo.
    WebHostingTalk now in portuguese
    www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web

  4. #4
    DEHE Milovan's Avatar
    Join Date
    Apr 2005
    Posts
    438
    Here is a good explanation on how to do this:

    http://www.redhat.com/docs/manuals/l...ap-adding.html

    ----
    To add a swap file:

    1. Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.
    2. At a shell prompt as root, type the following command with count being equal to the desired block size:

    dd if=/dev/zero of=/swapfile bs=1024 count=65536

    3. Setup the swap file with the command:

    mkswap /swapfile

    4. To enable the swap file immediately but not automatically at boot time:

    swapon /swapfile

    5. To enable it at boot time, edit /etc/fstab to include:

    /swapfile swap swap defaults 0 0

    The next time the system boots, it will enable the new swap file.
    6. After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.

    ----

    Hope it helps.
    Milovan Milic


    DEHE.com - Definition of Hosting Experts

  5. #5
    JPC Addict winger's Avatar
    Join Date
    Nov 2006
    Location
    Rio de Janeiro - BR
    Posts
    135

    Talking Thank you

    Of course you helped!

    take a look:

    [root@t295 ~]# free
    total used free shared buffers cached
    Mem: 1004184 30660 973524 0 3560 14688
    -/+ buffers/cache: 12412 991772
    Swap: 2066128 0 2066128

    I make a file with 1.5GB + 512MB swap partition = 2GB

    Thank you very much!

    Best regards,
    Ricardo.
    WebHostingTalk now in portuguese
    www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •