]> git.neil.brown.name Git - history.git/commit
[PATCH] fix AS crappy performance
authorNick Piggin <piggin@cyberone.com.au>
Fri, 26 Sep 2003 00:55:16 +0000 (17:55 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 26 Sep 2003 00:55:16 +0000 (17:55 -0700)
commit41b986b6b4c32a223b0871c4b546ff86961964ad
treec3e9a799e028b8cecd4aedc6e59a7f84d8d94f8e
parent5daa5a408467246821cb6be3152cf0e0915bd0b8
[PATCH] fix AS crappy performance

A while ago some guy complained that his server connections / sec was
way down due to AS. The server would fork a process which would then read
some tiny bit of random data and hang around for a while doing nothing.
This defeated all AS's heuristics, and due to a new process being a good
anticipation candidate by default, his performance went bad.

The fix was just to treat new processes as being unsuitable for
anticipation. Fixed. Unfortunately ls, cat, grep, small programs
starting up, find | xargs, etc only submit a couple of requests, and they
really want anticipation to be on.

This patch keeps a simple goodness value per queue based on how successful
anticipation has been for new processes.
drivers/block/as-iosched.c