Do i have to cut the swap?

Discussion in 'General Linux' started by laohe912, Jul 10, 2014.

  1. laohe912

    laohe912 New Member

    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    3
    Do I have to cut the swap?

    Someone said I needn't to cut the swap,just the "/" is enough.

    Right?why?

    DevynCJohnson likes this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,336
    Likes Received:
    1,074
    Trophy Points:
    113
    Best Answer
    In general, swap is very useful. Technically, you do not need it. In other words, your system still boots and works just as it usually does. However, the swap space allows your system to have extra temporary memory if your real memory gets too full. Also, when you hibernate your system (not suspend or sleep), all of the memory is written to the swap space. If you do not have a swap space or swap-file (rarely used), your system may become slow when the memory fills up, but your system still works. The swap space is highly recommended, but technically, it is not a requirement. I hope this helps.
    laohe912 and Darren Hale like this.
  3. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,273
    Likes Received:
    431
    Trophy Points:
    83
    What is the context? The problem? We need more information.
  4. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,336
    Likes Received:
    1,074
    Trophy Points:
    113
    Best Answer
    In general, swap is very useful. Technically, you do not need it. In other words, your system still boots and works just as it usually does. However, the swap space allows your system to have extra temporary memory if your real memory gets too full. Also, when you hibernate your system (not suspend or sleep), all of the memory is written to the swap space. If you do not have a swap space or swap-file (rarely used), your system may become slow when the memory fills up, but your system still works. The swap space is highly recommended, but technically, it is not a requirement. I hope this helps.
    laohe912 and Darren Hale like this.
  5. laohe912

    laohe912 New Member

    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    3
    I'm just the fresh linux learner,I'm read a document by birdman form TAIWAN.
    This opinin mentioned.
    Jim Laughlan likes this.
  6. laohe912

    laohe912 New Member

    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    3
    tyvm!!
    DevynCJohnson likes this.
  7. Jim Laughlan

    Jim Laughlan Active Member

    Messages:
    119
    Likes Received:
    65
    Trophy Points:
    28
    You have to begin somewhere :)...
  8. Darren Hale

    Darren Hale Active Member

    Messages:
    281
    Likes Received:
    120
    Trophy Points:
    43
    I say don't compare yourself to others knowledge wise - Take your time and learn more in doing so.
    DevynCJohnson likes this.
  9. laohe912

    laohe912 New Member

    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    3
    All right.Thank you!
  10. laohe912

    laohe912 New Member

    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    3
    :)
  11. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,336
    Likes Received:
    1,074
    Trophy Points:
    113
    Thanks! I am glad that helped.
  12. Darren Hale

    Darren Hale Active Member

    Messages:
    281
    Likes Received:
    120
    Trophy Points:
    43
    Best wishes
    laohe912 hope you enjoy the Linux journey.
  13. MikeyD

    MikeyD Active Member

    Messages:
    232
    Likes Received:
    112
    Trophy Points:
    43
    Generally swap is considered an advantage, but it does have disadvantages as well and can slow down your PC if not properly configured.

    Since swap uses your hard disk it is much slower than RAM memory and can cause swap thrashing if overused.

    If you decide to configure swap space I'd recommend following the bottom-part of this guide: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-6

    Specifically where it talks about configuring kernel 'swappiness'. This will tell the kernel how often to rely on swap space. I would configure a low number, the tutorial uses 10 which is good but nothing higher than 40-50 imho. Not sure if the steps will apply to all distros as this tutorial relates to Centos but just my 2 cents.
    DevynCJohnson likes this.

Share This Page