Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Just a small bug.
PostPosted: Fri Apr 04, 2008 6:15 am 
Offline
Senior Newbie

Joined: Tue Mar 11, 2008 4:08 pm
Posts: 8
Image

Happened when I resized my swap partition.


Top
   
 Post subject:
PostPosted: Fri Apr 04, 2008 6:47 am 
Offline
Senior Newbie

Joined: Thu Jan 31, 2008 8:25 pm
Posts: 6
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


Top
   
 Post subject:
PostPosted: Fri Apr 04, 2008 8:29 am 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
If you need 512meg of swap, you're probably going to make your hostmates very unhappy.

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Fri Apr 04, 2008 11:44 am 
Offline
Senior Newbie

Joined: Sun Mar 09, 2008 8:12 pm
Posts: 9
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?


Top
   
 Post subject:
PostPosted: Fri Apr 04, 2008 12:17 pm 
Offline
Senior Member

Joined: Sat Feb 10, 2007 7:49 pm
Posts: 96
Website: http://www.arbitraryconstant.com/
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.


Top
   
 Post subject:
PostPosted: Fri Apr 04, 2008 8:29 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
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.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group