Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I have a dual-boot setup (boots Windows and Linux) and the Linux partition only serves one function: to backup / restore the windows partition. The Linux partition is a very minimal setup- minimal packages,no X, just runs ntfsclone via command line (also uses ntfs-3g to copy some windows files).
This setup is used on all our client systems, so they can backup restore snapshots of Windows.
My question is, having such minimal requirements and all systems having a minimum of 512MB RAM, is a swap really necessary?
I understand that a swap is only required if you are short of physical RAM, but I am still undecided about whether I should keep a swap just for a precaution.
I ran the 'top' command after doing a full ntfsclone backup(the most memory intensive operation the system will perform) and top showed:
Cached data is not swappable, but Linux can still elect to swap out valid memory in favor of more cache space. There is no difference from using a file or partition. If you already have a partition, then why create a file? Given your requirements, i don't think you need any swap space.
I am creating a new master drive (for all the others to be cloned off), so I thought that now is the time to get rid of the swap partition. I think I'll just use a swap file instead of a dedicated partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.