Find the answer to your Linux question:
Results 1 to 6 of 6
well I only have 1GB of ram and just because i like round numbers and had enough space. I made a 5GB swap partition. I don't really need the space, ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    15

    is it possible to have too much swap space?

    well I only have 1GB of ram and just because i like round numbers and had enough space. I made a 5GB swap partition. I don't really need the space, but can having a swap partition too big hinder my preformance?

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Really when you get to 1GB of space you don't need swap anymore unless you are running particularly large programs/processes like databases/3d modelling/large graphic processing - and in that case you'd be better of with more RAM. Swap never performs as well as RAM so where possible ensure its use is at a minimum.

    You can turn off your swap and see how you get on and enable it later on if you wish. Whichever way you go you certainly don't need 5GB of it, 1GB is enough for anyone.

    To disable swap as root run
    Code:
    swapoff
    and enable with
    Code:
    swapon

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Big SWAP space dont affect performance. SWAP size depends on how much RAM do you have and what application you are running.
    If you have 1GB or more RAM then you dont need SWAP space. To be on safer side, create 1GB SWAP. It will be a disk space wastage otherwise.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Quote Originally Posted by rob1101 View Post
    well I only have 1GB of ram and just because i like round numbers and had enough space. I made a 5GB swap partition. I don't really need the space, but can having a swap partition too big hinder my preformance?
    I also have 1 GB of RAM but I do always create a 512 MB swap partition although it never gets used by the system, so I really don't need it at all. Of course I don't run lots of memory intensive programs at one time.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by rob1101 View Post
    well I only have 1GB of ram and just because i like round numbers and had enough space. I made a 5GB swap partition. I don't really need the space, but can having a swap partition too big hinder my preformance?
    Linux is good at these things, you shouldn't have a problem (performance-wise) for the fact of having a big swap partition.

    The performance problem comes if you are using all that swap. In that case, the problem is not the swap itself (if you wouldn't have it the kernel would just close whatever it "thinks" it's appropriate. In that case, the problem would be that you would need more ram.

  6. #6
    Just Joined!
    Join Date
    Feb 2008
    Posts
    15
    ok thanks guys im glad to know that it wont affect my preformance i will resize the partition when/if i need the space.

Posting Permissions

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