Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Dec 04, 2011 3:57 pm 
Offline
Senior Newbie

Joined: Sun Dec 04, 2011 4:37 am
Posts: 9
Hello,

I hope one of you can help me out here.

I'm having a hard time figuring out why my linode is swapping. Around 80% memory is going to disk cache, so I thought it would be logical to release a bit of that instead of swapping.

Take a look at this munin-graph:

Image

When all free memory has been eaten by disk cache, it starts to swap. It shouldn't be like that, right?

I'm running:

3.0.4-linode38
Ubuntu 10.04.3 LTS
PHP, Apache, Mysql

I haven't touched vm.swappiness (still at 60).

Any ideas?

- Magnus


Top
   
PostPosted: Sun Dec 04, 2011 9:01 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
looper wrote:
Around 80% memory is going to disk cache, so I thought it would be logical to release a bit of that instead of swapping.

Your kernel disagrees.

If the disk is frequently accessed but there are some idle apps, it makes more sense for the kernel to swap out the idle apps instead of sacrificing disk performance. Besides, you're only swapping a few kilobytes per second, compared to several gigabytes of disk cache. Nothing to worry about.


Top
   
 Post subject:
PostPosted: Mon Dec 05, 2011 9:28 am 
Offline
Senior Newbie

Joined: Sun Dec 04, 2011 4:37 am
Posts: 9
Hi hybinet

You got a point there. I don't like the idea that machinery disagrees with me, though.

Thanks for your response.

- Magnus


Top
   
 Post subject:
PostPosted: Mon Dec 05, 2011 10:19 am 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
looper wrote:
I don't like the idea that machinery disagrees with me, though.

looper wrote:
I haven't touched vm.swappiness (still at 60).


It is doing what you told it to do by leaving swappiness at the default. If you would rather lose disk cache than swap, then change the setting lower.


Top
   
 Post subject:
PostPosted: Mon Dec 05, 2011 11:09 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
http://www.linuxatemyram.com/


Top
   
 Post subject:
PostPosted: Mon Dec 05, 2011 8:47 pm 
Offline
Junior Member

Joined: Thu Jan 07, 2010 8:12 pm
Posts: 21
Guspaz wrote:
http://www.linuxatemyram.com/

Nobody's registered linuxatemyswap.com yet? :(


Top
   
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