Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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 am installing Gentoo onto my computer and I was wondering if I need to have swap space. I have 512 megs of ram, definitely more than enough for what I am using this computer for, do I even need to have a swap partition? If so can it be 32 mb? I have heard that no form of linux uses over 128 megs of ram per partition of swap space, so I was wondering what the bare minimum needs to be for linux to successfully install and run. Is Swap detrimental to linux kernel compiling and booting successfully?
You don't need a swap partition. A swap partition is handy if you don't have that much ram. I believe i had problems compiling kde with only 256MB of ram. Otherwise it's a complete waste of a partition.
IF you later decide for some reason that you need it, you can create a swap file on your file system that functions the same way - hence no need to pollute your drive or your partition table.
to create a swap file:
dd if=/dev/zero of=/mnt/swap bs=1k count=65536 (example 64MB swap file)
mkswap /mnt/swap
swapon /mnt/swap
you will need to place an entry in fstab for the swap to mounted at boot time. Or you can place it in a script if you like.
This is a better solution for when you really need it. I solved my kde compile by just creating a 64MB swap file and then removing it once i was done.
You don't really need one.
I have a GB and I've only once come close/exceeded it
and if you all of a sudden need swap space
(b/c your friend brought over an unbelievably large picture
of the earth from space)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.