Results 1 to 10 of 10

Thread: Swap partition size

  1. #1
    Join Date
    Apr 2012
    Beans
    178
    Distro
    Ubuntu 14.04 Trusty Tahr

    Swap partition size

    I have 8GB of RAM how big should the swap partition be?
    Last edited by garyzw; December 14th, 2013 at 11:37 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Swap partition size

    There are many threads related to this here on the forums. A recent one for ex : http://ubuntuforums.org/showthread.php?t=2087889
    Please have a look here too : https://help.ubuntu.com/community/SwapFaq
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests by PM, thanks |

  3. #3
    Join Date
    Apr 2012
    Beans
    178
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Swap partition size

    Thanks for the reply but i did search the forum and could not get a direct answer. the link you gave says "25% larger than your actual ram" another response is "At 8 GB, you really don't even need a swap unless you intend on having a dozen major apps open at once or wish to work on huge graphics files." another is "double your installed ram"

    I don't plan on hibernating my system, or mess with huge graphic files or have tons of apps open.

  4. #4
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Swap partition size

    From the older days, I usually set it up to the RAM size (twice the RAM size for 1GB or less). I've not really bothered trying differently. I suppose you do have a drive big enough not to consider 8GB being lost space
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests by PM, thanks |

  5. #5
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,330
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Swap partition size

    If you want to hibernate, your swap should be at least the size of your ram (mind the difference between GB and GiB). If not, you're unlike to ever need it. Most people never fill 8 GB ram. On the other hand, your hard disk is probably so large that a few GB more or less don't matter.

  6. #6
    Join Date
    Jul 2007
    Location
    UK
    Beans
    16,844
    Distro
    Ubuntu Development Release

    Re: Swap partition size

    Quote Originally Posted by garyzw View Post
    I have 8GB of RAM how big should the swap partition be?
    Do you intend to hibernate?

    See this too.

    https://access.redhat.com/site/docum...html#id4394007


    I don't use hibernate. Got 2 gig ram and 2 gig swap. Some say if you not intending to hibernate and you have say 4 gig ram that you dont even need swap.
    Last edited by philinux; December 14th, 2013 at 08:17 PM.

  7. #7
    Join Date
    Apr 2012
    Beans
    178
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Swap partition size

    Quote Originally Posted by philinux View Post
    Do you intend to hibernate?

    See this too.

    https://access.redhat.com/site/docum...html#id4394007


    I don't use hibernate. Got 2 gig ram and 2 gig swap. Some say if you not intending to hibernate and you have say 4 gig ram that you dont even need swap.
    I don't use hibernate. The link you gave says for 8GB I need 8GB of swap. I also read that if I have 8GB then I do not need swap. My hard drive is 2TB so I guess 8GB of swap will not kill me- but then I hate to assign 8GB if it will never be used.

  8. #8
    Join Date
    Jul 2007
    Location
    UK
    Beans
    16,844
    Distro
    Ubuntu Development Release

    Re: Swap partition size

    As always the choice is yours.

    Another take on this.

    http://arstechnica.com/civis/viewtop...f=16&t=1208699

  9. #9
    Join Date
    Oct 2005
    Location
    Holland
    Beans
    670
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Swap partition size

    If you have a HDD of 2 TB, which is 2000 GB, or see next, what is the problem of assigning 8+ GB to a swap partition?

    If you hate to lose the minute 8+ GB, have you ever wondered about the difference between 2 TB and 2 TiB? The first is decimal, the second is binary, 1024 (2^10) bytes in stead of 1000 bytes, 1024^2 bytes in stead of 1000^2 bytes, so you may calculate yourself how many TiB your HDD really has (far less than 2). The capacity of HDD's are (nearly?) always expressed in decimal.

    I only write this to put everything in the real perspective, there really is no problem.

    Howgh

    Topsiho

  10. #10
    Join Date
    Apr 2012
    Beans
    178
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Swap partition size

    Thanks for all the replies. i willl make it 8GB

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
  •