Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 24, 2004 4:33 pm 
Offline
Senior Newbie

Joined: Sun May 16, 2004 8:16 pm
Posts: 6
My linode is on host24 and disk performance lately has been terrible. I first saw this when I ran a Debian "apt-get update" or "apt-get upgrade". Upon further analysis I can even see the problem by simply issuing a "man" command. ANY command that does disk I/O is slow, really slow. I can see the apt-get or man processes stuck in "D" state.

Fortunately, the one website I have on this linode appears to be cachable and is not badly affected.

_________________
--
Larry Cannell


Top
   
 Post subject:
PostPosted: Mon May 24, 2004 4:37 pm 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
This may be due to alot of swapping happening.

Take a look at

cat /proc/io_status

to see what things are like

if io_tokens in negative then you have problems.

Adam


Top
   
 Post subject: No swapping happening
PostPosted: Mon May 24, 2004 4:44 pm 
Offline
Senior Newbie

Joined: Sun May 16, 2004 8:16 pm
Posts: 6
I can't find the /proc file you mentioned. However, I do not see any significant swapping. This problem is also sporadic. For example, I just did another test and the disk I/O is moving along just fine. But, 20 minutes ago it was extremely slow.

_________________
--

Larry Cannell


Top
   
 Post subject:
PostPosted: Mon May 24, 2004 5:57 pm 
Offline
Senior Newbie

Joined: Mon Dec 08, 2003 1:46 pm
Posts: 19
ICQ: 148043
WLM: vitre0us@yahoo.com
Yahoo Messenger: vitre0us
AOL: vitre0us
Location: Socal
may need to reboot to find it, it's a new addition to the kernel...


Top
   
 Post subject:
PostPosted: Mon May 24, 2004 6:11 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Or:
Code:
ssh linodeUsername@host24.linode.com io_status

-Chris


Top
   
PostPosted: Tue May 25, 2004 8:14 am 
Offline
Senior Newbie

Joined: Sun May 16, 2004 8:16 pm
Posts: 6
Rebooted last night and I now see /proc/io_status. The io_tokens run between 175K and 200K.

So, what do the various parameters in io_status mean?

Still watching disk performance. Guessing it is related to load on other Linodes on same host.

_________________
--

Larry Cannell


Top
   
PostPosted: Wed Sep 01, 2004 8:44 pm 
Offline
Senior Newbie

Joined: Wed Sep 01, 2004 8:34 pm
Posts: 7
ICQ: 135170333
I'm on host 7. I've been with linode more than a year. For the first few months, disk performance was good. I suppose as more users joined, the performance got worse. I'm guessing that other users with heavy swap are killing everybody's disk usage. If this is the case then I have a suggestion. Put aside a seperate disk just for swap usage. That way normal usage doesn't have to suffer because someone else is swapping heavy. If I'm wrong, please tell me why the disk performance is poor. Here is the output from cat /proc/io_status
Code:
io_count=16945028 io_rate=0 io_tokens=20000 token_refill=100 token_max=20000

I just ran apt-get update and it crawled like a 386 accessing a floppy.


Top
   
PostPosted: Wed Sep 01, 2004 8:46 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
berryman77 wrote:
Here is the output from cat /proc/io_status.

Please check again. Those were old values.

Still though, those values don't indicate that you actually hit the limiter. I'll keep an eye on things on host7.

Thanks,
-Chris


Top
   
PostPosted: Wed Sep 01, 2004 10:28 pm 
Offline
Senior Newbie

Joined: Wed Sep 01, 2004 8:34 pm
Posts: 7
ICQ: 135170333
Not sure what you mean by 'old values'. I took them when I made the post. Anyway, I took some more values and here they are:
Code:
io_count=16953351 io_rate=0 io_tokens=399995 token_refill=512 token_max=400000

I'm not familiar with 'the limiter'. Is that something that limits my disk access?

I love my linode. There's nothing else that compares to it. This disk issue is my only gripe and I just assumed it was inherent in the setup and could not be fixed. But if it can, that's great news and I would like to get it fixed.

Randall


Top
   
PostPosted: Wed Sep 01, 2004 11:57 pm 
Offline
Senior Newbie

Joined: Wed Sep 01, 2004 8:34 pm
Posts: 7
ICQ: 135170333
O.K. As usual, looks like I'm gonna eat my words. Maybe you made a change. My disk access is zipping. So fast, I would think the whole file system is in RAM. Wow!


Top
   
 Post subject:
PostPosted: Thu Sep 02, 2004 1:51 am 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
The limiter is what keeps other people's swapping activities from killing your disk usage, so actually, it was probably your own usage at one point that slowed it down for a minute at a time after you've hit the limit once. I'm unfortunately familiar with the limiter's behaviour, all being my own fault. =)


Top
   
 Post subject:
PostPosted: Tue Sep 28, 2004 7:59 pm 
Offline
Senior Newbie

Joined: Thu Jul 29, 2004 4:51 pm
Posts: 5
This is my /proc/Io_status:

io_count=26896456 io_rate=101 io_tokens=-21 token_refill=100 token_max=400000

Is this because I'm using my linode account improperly (ie., grinding on the disk too much), or is it something on the host?

--

(What follows is an edit of my original post...)

I have a much better handle on this now -- watching io_status really helps understand the limiter and what it does (it's pretty simple, obviously).

My refill rate seems to have been upped a little -- thanks for that, if that is what happened. It makes a huge difference.

I'm curious about how the parameters were selected, though -- it seems like the max is pretty high, and that the default refill rate is a little low. But that's just me eyeballing it, I don't have a rigorous argument to support what I'm saying.

Anyway, I understand the system now, I think I can avoid sinking myself, and everything's right with the world. :D


Top
   
 Post subject:
PostPosted: Wed Sep 29, 2004 1:40 am 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
astrashe wrote:
I'm curious about how the parameters were selected, though -- it seems like the max is pretty high, and that the default refill rate is a little low. But that's just me eyeballing it, I don't have a rigorous argument to support what I'm saying.


This gives a little more info on the numbers:
http://www.linode.com/forums/viewtopic.php?t=1151

As for how they were chosen, that was up to caker. I would assume he based those values off of the behaviour he was seeing with Linodes.

As for the refill rate being low, there's two sides to that. The first being that that the io_rate isn't a measurement of seconds, and actually, I'm not sure what they are a measure of, but it's small whatever it is. The second being that if it was coming down to you using all your tokens up, and then relying on the io_rate to handle the load your putting on the server, your using much more io than is meant for a Linode. I like the limiter for the fact that it tends to point out that you've made mistakes in your server config and can be like a signal saying one of your services is doing something it shouldn't be and you need to fix it. That's just me though =/


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