Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: more host45 slowness...
PostPosted: Mon Aug 14, 2006 2:53 pm 
Offline
Junior Member

Joined: Tue Jul 20, 2004 11:32 am
Posts: 41
Website: http://www.insanum.com
The last couple days host45 has been a dog for me. My linode is completely idle and 'ls' will sometimes take 30 seconds to return.
The load will spike occasionally and I'll see it upwards of 4+. Anyone else experiencing slowneess on host45?

% cat /proc/io_status
io_count=83319305 io_rate=0 io_tokens=500 token_refill=50 token_max=500

% vmstat 2 5
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 4888 29564 12600 57752 0 0 7 2 6 1 3 3 94 0
0 0 4888 29560 12600 57752 0 0 0 0 103 64 0 1 99 0
0 0 4888 29560 12600 57752 0 0 0 0 102 69 1 0 99 0
0 0 4888 29552 12608 57752 0 0 0 45 122 73 0 0 100 0
0 0 4888 29552 12608 57752 0 0 0 0 103 84 0 0 100 0


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 3:43 pm 
Offline
Junior Member

Joined: Tue Jul 20, 2004 11:32 am
Posts: 41
Website: http://www.insanum.com
So I rebooted and things are better. I'm curious why my io_tokens got so low and never came back. For debugging I kill all my servers, waited a while, and my token levels never came back. Anyone know why?


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 6:30 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Your token_refill and token_max have been drastically reduced from the standard values, most likely due to swap thrashing or similar disk i/o overuse. Figure out what caused it, fix it (or at least take steps to reduce the problem) and raise a ticket to have the values reset to normal.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 11:34 pm 
Offline
Senior Newbie

Joined: Sat Oct 01, 2005 12:54 am
Posts: 13
Are you the one that was thrashing host45 all weekend? :x

Yeah, host45's been really slow for me all weekend. Only today did it get better.

_________________
--Bdragon


Top
   
 Post subject:
PostPosted: Tue Aug 15, 2006 11:40 am 
Offline
Junior Member

Joined: Tue Jul 20, 2004 11:32 am
Posts: 41
Website: http://www.insanum.com
Bdragon wrote:
Are you the one that was thrashing host45 all weekend? :x

Yeah, host45's been really slow for me all weekend. Only today did it get better.


Gosh, I don't think so. Like I said... I shutdown everything and it was still slow and never recovered. Finally rebooted a day later and, like you, it is better. Before I rebooted lsof only showed a handful of files open and I had absolutely no io_tokens. I don't understand why they didn't come back.


Top
   
 Post subject:
PostPosted: Tue Aug 15, 2006 12:59 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
edavis wrote:
Before I rebooted lsof only showed a handful of files open and I had absolutely no io_tokens. I don't understand why they didn't come back.


default values: token_refill = 512; token_max = 400000

your values: token_refill = 50; token_max = 500

In your first post you have io_tokens=500, i.e. the maximum value currently allowed for your Linode. You need to raise a ticket to have token_refill and token_max reset to the default values once you have fixed whatever caused them to be reduced in the first place.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Aug 16, 2006 1:12 pm 
Offline
Junior Member

Joined: Tue Jul 20, 2004 11:32 am
Posts: 41
Website: http://www.insanum.com
Here we go again, slow as molassas...

top - 10:11:53 up 1 day, 21:33, 1 user, load average: 11.68, 13.23, 10.56
Tasks: 114 total, 1 running, 112 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.0% user, 1.0% system, 0.0% nice, 99.0% idle
Mem: 195620k total, 185532k used, 10088k free, 5688k buffers
Swap: 263160k total, 12k used, 263148k free, 72868k cached

io_count=4243005 io_rate=8 io_tokens=399968 token_refill=512 token_max=400000


Top
   
 Post subject:
PostPosted: Wed Aug 16, 2006 1:22 pm 
Offline
Senior Newbie

Joined: Sat Oct 01, 2005 12:54 am
Posts: 13
Um, your load average is a tad high. :shock:

_________________
--Bdragon


Top
   
 Post subject:
PostPosted: Wed Aug 16, 2006 1:23 pm 
Offline
Junior Member

Joined: Tue Jul 20, 2004 11:32 am
Posts: 41
Website: http://www.insanum.com
Waited for the load to settle down. It got to .5-ish. I then looked at my io_status and then performed an ls -l... top running in the background... the load immediately shot up to 3+ and ls took 30+ seconds to return. Here was my io_status at the time:

io_count=4251010 io_rate=13 io_tokens=399982 token_refill=512 token_max=400000


Top
   
 Post subject:
PostPosted: Thu Aug 17, 2006 1:51 pm 
Offline
Senior Member

Joined: Thu Aug 28, 2003 12:57 am
Posts: 273
edavis wrote:
Waited for the load to settle down. It got to .5-ish. I then looked at my io_status and then performed an ls -l... top running in the background... the load immediately shot up to 3+ and ls took 30+ seconds to return. Here was my io_status at the time:

io_count=4251010 io_rate=13 io_tokens=399982 token_refill=512 token_max=400000


In the bad old days when the host that I was on was suffering from other Linodes hogging all of the disk I/O, this is the behavior that I would get. All of my processes that wanted to touch the disk would get stuck, and the load average would go up, I guess those processes were somehow counted as runnable and adding to the load average instead of sleeping on I/O for some reason.

Anyway, it was the I/O tokens mechanism that solved most of this problem by keeping other Linodes from thrashing the box so hard, and the remainder of the problem was mostly solved by moving me to a quieter host. Now there are rare occasions where this kind of poor performance happens, but it's not very frequent and doesn't last very long.

My guess, and it's just a guess, is that other Linodes on your host are totally swamping the I/O. If 4 or 5 Linodes are all constantly doing disk I/O even at the maximum rate allowed by the token system, performance for everyone else on your host will suffer. Sounds like this is happening to you.


Top
   
 Post subject:
PostPosted: Thu Aug 17, 2006 2:16 pm 
Offline
Senior Newbie

Joined: Sat Oct 01, 2005 12:54 am
Posts: 13
Do a "vmstat 5" and look at the number in the "wa" column (should be the last one)

If it's high, you have processes waiting for disk io from the host to complete. If it's 98-100 for more than a couple readings, the host is probabaly thrashing somewhat...

(I think this column only works properly on 2.6 kernels)

_________________
--Bdragon


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