Question on setting swap partition(size and spltting it to 2 drives)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Question on setting swap partition(size and spltting it to 2 drives)
I know generally twice the size of your RAM is recommended for swap but for 1GB of RAM is 2GB swap really necessary?
My other question regarding splitting the swap space to 2 disk. I've read this improves performance. Do these two partitions have to be the same size? Also, to have linux write to these swap partitions in a parallel manner, would the lines in /etc/fstab look like the following:
Setting them to have the same priority level does basically give the swap partitions RAID like behavior. But no you aren't actually creating a software RAID partition.
i have a linux server in production with 1gb of ram and a 2gb page file, it has a mail server, fily/print with samba, and a web server connected to mysql. the most page usage i have seen is during my backups at 20% normal usage is around 5%
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.