Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
what is the need of swap partition in linux.as far as i know every os uses the hard disk for swapping pages then why do i require a separate swap partition for linux.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
A partition is on the hard disk, it's just a compartiment or logical drive, which would get a drive letter of it's own under windows ... so for all practical purposes it is a hard drive.
As I understand it the swap partition gives a performance advantage over having a swap file on a normal partition as you don't have the extra file system layer that need processing between read/writes. The swap partition is the filesystem if you see what I mean.
Sorry for the interruption but I have a simple question regarding swap partition, too. If I am to install 2 distros on the same machine, is one swap partition enough for me or do I have to make 2 of them?
the swap file is used as "ram" once your ram is full
on most newer systems this isnt an issue with linux
its more of an issue with windows due too the poor memory management
the swap file came in handy back in the day when ram was really expensive
debian for example will allow you to procede with the install without a swap
the distro i use i set my swap so small its really of no use
but at a gig of ram ill never fill it up
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.