Discussion in 'General Linux' started by laohe912, Jul 10, 2014.
Do I have to cut the swap?
Someone said I needn't to cut the swap,just the "/" is enough.
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.
What is the context? The problem? We need more information.
I'm just the fresh linux learner,I'm read a document by birdman form TAIWAN.
This opinin mentioned.
You have to begin somewhere ...
I say don't compare yourself to others knowledge wise - Take your time and learn more in doing so.
All right.Thank you!
Thanks! I am glad that helped.
laohe912 hope you enjoy the Linux journey.
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.
Separate names with a comma.