doubleg wrote:
so bare with me... I'm just learning about this IO limits function of UML.
More info here:
http://www.theshore.net/~caker/patches/doubleg wrote:
This all came to my attention when our linode on server host6 seemed to suffer from lack of being able to get to disk. After digging around the forums it appears that I'm not the only person seeing this issue and it seems that linodes can have different Token_refill and token_max values.
I've read that some people can have a token_refill=100 for being a hassle and using too much IO ... then later to have it set to a higher limit after someone deeming it appropriate to do so. Did this happen to me? If so… no big deal… but I want to avoid having issues with Disk IO and if I need to change something, knowing that I have been a problem with Disk IO, would help me understand that I have an issue that needs further attention..
It's usually one of two reasons: either you're using too much I/O because of swap-thrashing, or I tweak the values at certain times when the hosts are very busy to more evenly distribute disk bandwidth. Host kernel upgrades (coming soon) have some decent improvements for sharing I/O, so I'm looking forward to that.
Anyway, if this is the account I'm thinking of, your swap was completely full. Not a good sign. You might want to double check swap usage next time you witness slowness (cat /proc/swaps).
doubleg wrote:
My linode at this time shows this, which shows that it’s a lower amount then other linodes. (Again I don’t know anything about this stuff... so lower numbers could be indeed better... who knows!!?)
io_count=888185 io_rate=0 io_tokens=19989 token_refill=100 token_max=20000
If io_tokens is zero or negative, you're effectively being limited to no more than token_refill IO operations/sec.
doubleg wrote:
1. How does it get decided what values are used for our linode?
The defaults are token_refill of 512, token_max of 400k
doubleg wrote:
2. How do I know that I've surpassed “appropriate" disk IO usage?
Look for negative io_tokens.
Hope that helps,
-Chris