Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 one clarification of setting swap space in Linux EL server. Generally the swap space is double of the memory that server has, AS per my dell poweredge server , it has 4GB RAM by default. Could that be possible to set swap the double of Memory as 8 GB?.
Are you asking if it is possible to set the swap to 8GB? As long as you have 8GB of space to allocate to swap, it is. I once created a 60GB swap on a spare partition because something I was doing was using all my RAM and all my swap.
Are you asking if you need to set the swap to as much as 8GB? The 1x's to 2x's RAM thumbrule was derived in the days when hard drives weren't even 4GB. IMO, it depends on what you're going to be doing with the machine. I still follow it on my machines with 2GB or less (I use 1x's), but rarely do I see it being used extensively. On my machines with 4GB, I set it to 2GB. But, these are not machines being used in a business environment.
I that's not a rule is a suggestion, and of course it depends on your aplications.
I created a 6gb swap in a 64 bit kernel 2.6 .
in the days of 2.4(i think ) you can use more than 2.0 gb of swap but in diferents partitions. I dont know for the kernel 2.6 - 32 bits and exist a limitation.
In a dns server I only use a swap partition whit the same size of the phisical ram, and have no problems, of course monitoring the swap and if it increase to much , better increment the ram.
If your machine starts to swap it will slow down dramatically. The solution to a swap performance problem is not to increase the amount of swap space. Instead you would either buy more RAM or decrease the number of programs that you are trying to run simultaneously. Therefore 512 Meg is enough swap for anybody.
The one exception is if you use the suspend to disk function. Then you will need a swap size of about 1.5 times your RAM size in order to accommodate suspend to disk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.