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.
Generally, you want your swap space to be twice that of your physical ram. Doing the math based on what you've posted your swap size is 512MB? Is your ram 256? Maybe a bit too small, although you can run linux comfortably on ram less than 1GB, it may be too little for a server (depends on what kind of server though).
My poor spanish + translator...hopefully makes sense...
En general, desea que su swap a ser el doble del ram física. Hacer las matemáticas en base a lo que ha publicado su tamaño de swap es de 512 MB, ¿correcto? ¿Así su memoria ram física está cerca de 256MB o más, verdad? Aunque linux puede funcionar cómodamente en RAM a menos de 1GB, quizás es demasiado pequeño para un servidor.
Short answer: No, it shouldn't cause any problems.
Think of your swap like extra desk-space for your computer. If the computer has too much on its mind, it might put some of it down for a while so it can come back to it. There is no solid rule but most people like to give their computer enough desk space to set-aside what its thinking about two times.
If you have no desk space, the computer can't work on more than it can remember at once. If you only have a little desk-space, that might help but it can also be a waste of time. If the desk is too big, the computer has to reach further when its coming back to retrieve information. Too much or too little might cause unneccessary complication but I've never heard of it causing a problem.
Using swap space is perfectly normal and helps your system run more efficiently. Your swap partition should be 2Xmemory in size. If your computer has enough memory to run everything you need it to run, it may not use the swap much at all. If it does use it, the kernel knows how to manage the space so it won't reach >100% usage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.