News for hackers. Stuff that matters.
Re:How Con Kolivas's BFS CPU scheduler works by viraptor on Friday October 16, 2009 @06:17PM (#886288)
> how do you benchmark that?

By getting statistics from the scheduler itself: how long did the process have to wait before it started executing. Also by looking at global effects: run N mplayers at the same time and look for dropped frames ; run an app that maps similar amount of work to N children and measure the run time ; measure the time needed for compiling [big project] with concurency == number of cpus ; ...

Re:How Con Kolivas's BFS CPU scheduler works by Tuna-Fish on Friday October 16, 2009 @08:50PM (#886451)
run an app that maps similar amount of work to N children and measure the run time ; measure the time needed for compiling [big project] with concurency

These are both the kind of tasks Kolivas is willing to totally throw under the bus for better worst case latency.

Remember, the single goal of the project is to get worst-case latency for all non-cpu-limited processes on the system as low as it possibly can get. Throughput, and even best- and average case latency are considered entirely expendable. This is why the BFS is hard to benchmark.

Re:How Con Kolivas's BFS CPU scheduler works by scott_s on Friday October 16, 2009 @10:49PM (#886544)
Then measure worst case latency. I don't see what the difficulty is.

If you're purporting to improve the performance of something, but you aren't always measuring the impact your changes have on the actual performance of that something, you're working blind.

Re:How Con Kolivas's BFS CPU scheduler works by mquander on Friday October 16, 2009 @10:09PM (#886518)
Actually, Kolivas states in the FAQ that compiling in particular is measured to be significantly faster with BFS:

"For years we've been doing our workloads on linux to have more work than we had CPUs because we thought that the "jobservers" were limited in their ability to utilise the CPUs effectively (so we did make -j6 or more on a quad core machine for example). This scheduler proves that the jobservers weren't at fault at all, because make -j4 on a quad core machine with BFS is faster than any choice of job numbers on CFS." [1]

[1] http://ck.kolivas.org/patches/bfs/bfs-faq.txt

Re:How Con Kolivas's BFS CPU scheduler works by nailer on Saturday October 17, 2009 @04:13PM (#887366)
> Remember, the single goal of the project is to get worst-case latency for all non-cpu-limited processes on the system as low as it possibly can get. Throughput, and even best- and average case latency are considered entirely expendable.

I've just been listing to lectures from MIT's introduction to algorithms, where more emphasis is placed on worst-case scenarios than otherwise, the reasoning being that these make guarantees possible. So more power to BFS.