Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Just a small bug.

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Feature Request/Bug Report
Author Message
different



Joined: 11 Mar 2008
Posts: 3

Posted: Fri Apr 04, 2008 5:15 am    Post subject: Just a small bug.  



Happened when I resized my swap partition.
Back to top  
jdlspeedy



Joined: 31 Jan 2008
Posts: 3

Posted: Fri Apr 04, 2008 5:47 am    Post subject:  

Looks like to me thats not a bug, all you have to do is change its label by clicking on the swap image and change it to 512MB instead of 256MB
Back to top  
Jay



Joined: 14 Nov 2004
Posts: 128
Location: NC, USA

Posted: Fri Apr 04, 2008 7:29 am    Post subject:  

If you need 512meg of swap, you're probably going to make your hostmates very unhappy.
Back to top  
marv



Joined: 09 Mar 2008
Posts: 9

Posted: Fri Apr 04, 2008 10:44 am    Post subject:  

Jay wrote: If you need 512meg of swap, you're probably going to make your hostmates very unhappy.
It really shouldn't matter how much swap he has. Doesn't Linux wait until it's out of physical memory before using the swap?

Also, I've always read that the swap should be 1.5-2 times the size of the physical memory. But that may not apply to Linodes. What's the recommended size for a swap partition for a Linode?
Back to top  
ArbitraryConstant



Joined: 10 Feb 2007
Posts: 54

Posted: Fri Apr 04, 2008 11:17 am    Post subject:  

marv wrote: It really shouldn't matter how much swap he has. Doesn't Linux wait until it's out of physical memory before using the swap? No, it will preemptively evict pages sometimes if it thinks it can find a better use for the memory. This doesn't really account for much though, most of the time.
marv wrote: Also, I've always read that the swap should be 1.5-2 times the size of the physical memory. But that may not apply to Linodes. What's the recommended size for a swap partition for a Linode? I think that rule of thumb largely comes from the 90s, when physical memory was scarce. Now on servers, you want to avoid situations where you have to swap at all. Your swap partition is basically an emergency brake, so you're not totally screwed if you run out. I would say that these days if you have to swap, you're not using an appropriately spec'd machine.

A few years back it was tough to fit apache, mail, spamassassin, mysql etc onto the cheaper linodes and you'd end up swapping a bit, which was mostly okay if your server wasn't very busy. These days you'd really have to be doing quite a bit to need that much swap. You'll also drain your I/O tokens in no time, so I'm not sure how much it would help.
Back to top  
sweh



Joined: 13 Apr 2004
Posts: 232

Posted: Fri Apr 04, 2008 7:29 pm    Post subject:  

The swap=2*RAM rule was for older BSD systems, and is a result of the paging/swapping algorithms in use on that (essentially if you only added RAM amount of swap then your total VM size was still only RAM!). This has never been true under Linux.
Back to top  
 
       Linode.com Forum Forum Index -> Feature Request/Bug Report
Page 1 of 1