poelzi / ulatencyd

daemon to minimize latency on a linux system using cgroups
GNU General Public License v3.0
243 stars 30 forks source link

Fix minimum blkio weight #36

Closed ghedo closed 10 years ago

ghedo commented 12 years ago

The blkio weight range is 100..1000 on Linux versions before 3.2.0 and 10..1000 on 3.2.0. Currently ulatencyd uses 1 for poisonous and idle processes and makes them having no penalty on disk usage (at least here, since they stay with blkio.weight=500).

gajdusek commented 10 years ago

Hi ghedo,

The minimum weight in the master branch is set to 10 for some... long time. I didn't know that Linux pre 3.2 versions have minimal of value of 100. I never closed this issue, IIRC because each time I wanted to, I got an idea to implement some transparent way of setting minimum weights, e.g. by some string that will be replaced at parsing time by an auto detected minimal value; or by a variable, or even make all weights proportional and transparently recalculating them to "absolute" values.

But I was inactive for long time, and even now this is not priority in my list.

I just want ensure, that you know this issue is fixed (for Linux >= 3.2) in case you still care. If you don't mind, I keep this issue open as a reminder to myself.

Cheers, Petr