Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin 

Post new topic Reply to topic
Author Message
PostPosted: Wed Aug 27, 2008 2:41 am 
Offline
Senior Newbie

Joined: Wed Dec 26, 2007 11:40 am
Posts: 10
I just thought I'd share this with you:

http://etbe.coker.com.au/?p=735


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 3:23 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
This totally looks like forum spam, but I braved it and it's legit.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 5:45 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 938
Location: Netherlands
The whole etbe blog is pretty interesting.

_________________
/ Peter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 9:39 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 734
The swap issue is well known on linodes. The UML IO tokens system helps mitigate this to some extent ( a UML linode swapping intensively will run out of I/O tokens and so no longer chew up host I/O bandwidth, freeing the other linodes on the same host to continue on as normal).

FWIW, "swap = twice RAM" wasn't a myth. On older BSD systems (eg SunOS 4 and of the like; we're talking a decade old) swap was allocated in a much different way; every program running must have swap space available to swap it to, so you can never run more than the amount of swap space you had. So 16Mb RAM and 16MB swap only resulted in 16MB of VM space available! 16MB RAM and 32MB swap meant 32MB VM. Thus "swap = twice RAM" made a good rule-of-thumb. Performance still went to hell when swapping that badly; it was designed to let your SA do emergency work :-)

(see http://sunsite.uakom.sk/sunworldonline/ ... -perf.html for more details on this).

However this has NEVER been true on Linux. And I don't think it's true on any system, any more. The equivalent rule of thumb these days would be "swap = RAM", but you'll still suffer crap performance if you swap too much.

So... "swap = twice RAM" is not a myth. But it's now an old out-of-date rule of thumb that people ignorantly repeat because they didn't know _why_ the rule existed.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 1:32 pm 
Offline
Senior Newbie

Joined: Sun Oct 09, 2005 4:52 pm
Posts: 13
I've been bitten by bad neighbors on several of the Linode hosts we have used. There's not much the staff are able to do unless you raise a ticket when it happens. That or move you to another host, which is not a feasible solution for everyone -- can't give the whole host over to the thrasher, right?

I certainly like the idea of isolating swap storage to a separate physical disk on the dom0 (this main focus of the article). Even if all domU clients shared a single disk for swap it would punish the thrashers and prevent them from effecting well-behaved clients too much.

It would be cheap to implement too. Seeing as most people allocate swap space somewhere in the range of RAM to 2 x RAM it wouldn't need to be a very big disk. Good use for retired main storage drives.

Of course, this would all require some changes to the way Linode works. Currently you have one bucket for storage and can divide it up as you see fit. Also, you can swap to a file in one of your filesystem partitions. It's not clear to me how to prevent that... plus there can always be disk contention that's not related to swap at all.

Interesting discussion though!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 5:10 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
For those that don't recognize the name, Russell Coker is a long-time Debian maintainer and all-round smart guy.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


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


Who is online

Users browsing this forum: No registered users and 1 guest


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

Home | Manager | Contact Us | Jobs | Terms of Service | Privacy Policy | ™ © 2003-2012 Linode, LLC. All rights reserved.