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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
1. what are the right size for swap : double ; the same ; as much as you want : more than one? My reason for asking this is because i sized my swap partition in different ways during many instalations and i realized that if you widen it for about 1Gb the system becomes very slow and instable(?). tell me if i'm wrong, please. Does slowliness have really something to do with swap size?
PS : Can i be disconnected from the net by someone on your site ? hacked (i mean)?
General rule of thumb that I've heard is twice the amount of RAM. Anymore than that and your system will bog down...I have 196mbRAM and 380mb Swap. I tried it with more, but found I got diminishing returns (ie greater slow down the bigger the swap).
But then, if you're running 512 meg of RAM, then the chance of ever getting near a swap file a pretty small. well i've got 256, and my box has been up a few days, been compiling code etc, but i';ve onyl used 4meg of swap... 156mb currently doing sod all, could easily be used elsewhere.
Here's another take on the whole swap issue, written by someone in a local LUG: (thanks Alan, if you read this)
Both Linux Weekly Newsletter and Kernel Traffic News have covered swap
requirements of recent kernels so to get the exact story consult those
references. IIRC, it was a strong recommendation that 2.4.x kernels with
the "Rik" VM demand should always have swap >= 2x RAM. With the AA VM used
in kernel 2.4.10 and beyond (but not ac kernels, yet, which still have the
"Rik" VM), I believe this recommendation is relaxed, but I don't know how
far. With virtual memory systems, there are no hard and fast rules. Thus,
running without swap or a small swap that violates the "rules" is certainly
possible, but you could run into trouble if you ever start too many jobs so
it is not recommended in general.
That's a good take. I think it comes down to preference though if you have enough RAM. If not then sure, swap away. Having 512M of ram and a swap of 115MB I have yet to even use the swap...So with newer higher performance machines it is debatable I think. But that's just my 2 pents...
i was taught from a linux guru a long time ago, when making your swap space, it was then you usually doubled your swap space according to your ram size, in those days most had usually 16 or 32 was common, now with most machines using 256 or more, there is no need to double your swap of your ram as it will never be used totally and your wasting hard drive space then.
so to make it short, there is never a need to usually go over 100 megs of space for swap, it should always work fine using 100 meg to 125 meg. anything more is just waste.