Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Is there a limit to the size of swap (file or partition) I can have on my Linux machine? I know since it is a 32-bit architecture I can only have a file up to 4GB (so I know even if Linux allowed me to have a huge swap file 4GB is the limit if there is no other kernel limits) Anyone have any insight to this?
I search google and came across a bunch of posts regarding this and some said 2GB but all the posts were old and not from a trusted source.
There is no limit.. but if your going to be using this as a desktop.. I never exceed 200 megs for swap.. there's really no reason to use more as it won't be used ever or rarely, if it does get used constantly, that just means your RAM isn't doing its job efficiently.
For servers, just all depends on what kind of load your going to have, but just like a desktop, if your server ever hits swap in most cases, means there is something wrong or you need more RAM.
PS. Old rule of thumb, create your swap double the size of the amount of RAM you have.. but if you have 256 or more.. I wouldn't exceed 256mb for it.. unless its a server, etc.
We have a cluster and each node has dual processors and and 1GB of RAM, that is no where near enough -- and the current swap is 2GB, but we are upgrading the RAM to 3GB or 4GB and need to increase the swap too... Since the datasets we use in our mpi application get to be huge and will max out the memory (and occasionally if numerous mpi applications are running need to do some swapping which is fine since it won't happen to terribly often). This application is used to running on a Cray X1 which can have 32768GB of RAM which I don't think Linux will allow so I was just curious if we could allocate 8GB of swap or if we have to create 4 seperate 2GB swap (partitions or files)...
Originally posted by podollb We have a cluster and each node has dual processors and and 1GB of RAM, that is no where near enough -- and the current swap is 2GB, but we are upgrading the RAM to 3GB or 4GB and need to increase the swap too... Since the datasets we use in our mpi application get to be huge and will max out the memory (and occasionally if numerous mpi applications are running need to do some swapping which is fine since it won't happen to terribly often). This application is used to running on a Cray X1 which can have 32768GB of RAM which I don't think Linux will allow so I was just curious if we could allocate 8GB of swap or if we have to create 4 seperate 2GB swap (partitions or files)...
Like mentioned above as this info was not mentioned.. there is no limit to swap.. at least not with the later kernels.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.