SlackwareThis Forum is for the discussion of Slackware Linux.
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 think 2-3x is an old standard. I have 256 megs in my box, and only use a swap partition of 128 megs. I think once you're have > 128 MB RAM, 1x swap should be plenty.
I don't push my box hard and run a slim Slack but I have 512 and usually hover in the 50% range without ever touching swap. I have 512 and, unless you're doing radically RAM-heavy stuff, wouldn't recommend any more.
I'm playing around in 10 now (so it's still a-building) and I've got:
That's remarkably low even for me, but still - a gig of *total* RAM 'is more than enough for anybody'. The 2 times thing is outdated - and I've never heard 3. So put me down in major.tom's camp. 128,256,512 - whatever you want for some leeway, but no need to waste a lot of disk space on slow fake RAM.
One nice thing about a swapfile instead of a swap partition is that you can change the size and experiment. my mini- distros that use windowmaker will easily run with 16MB RAM and 8MB swap. FFor the browser to have any cache, obviously more swap is needed. And if you run KDE or gnome you'll need more.
In your case 64MB should more than enough. People who do video editing or are 'remastering' ISO's may need up 3x the size of what they are working on. For instance to remaster a CD ISO of 700MB you will want at least 1.5GB and possible 2.1 GB.
Some people try to run without any swap at all, but this is not agood idea, either, since the kernel expects to find swap space and will tra to use it for a few bytes even if you have lots of RAM. Take a tip from ZipSlack and have at least a 512K swapfile around somewhere.
many people notice no problems running with no swap, but as I've said before a bit of swap is linus' security blanket, he doesn't REALLY need it, but he does like to know it's there. If you have a way of testing, you may notice a performance improvement throught the use of a swap file of even 4K which is the minimum size recognized by the kernel. On some systems the kernel will actually spend quite a lot of time looking for a few bytes of swap space.
If you plan on using suspend or software suspend you will need at least 1x the amout of your ram.
As a rule of thumb, I always do this. . .
64 megs of ram and lower = 3x swap.
96 megs to 256 megs of ram = 2x swap.
384 megs to 768 megs of ram = 1x swap.
768 megs and higher = .5x swap (unless you want to suspend to disk or software suspend)
From everything I've read so far, while you can get by without any swapfile if you have enough RAM, it is usually a good idea to have a swapfile size of around 512MB total, which can be split up into smaller sizes for each hard drive you have.................For example, I have two swapfiles on two hard drives of 256MB each.......................
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.