Hi,
thanks for testing BFQ, and congratulations for your very nice (and, in my opinion, professional) video.
Unfortunately, your results are not very surprising for me. As I had the opportunity to say also in this group, I have defined the main heuristics of BFQ for PCs. In fact, the video of mine that you mention does show results on a PC. Then, several people wondered: “Hey, if BFQ is so good on a PC, why not to use it on an Android system? In the end, PC and smartphone systems are becoming more and more similar”.
Well, they are not yet similar enough. So, on some devices, especially low and med-level ones, BFQ happens to be better than the other schedulers, on others it does not. But on all devices, all schedulers do not perform well, and this is the actual problem. As your tests show, even the best scheduler suffers from about a 100% increase of latencies with just one writer. You may get much worse results by adding also one reader (which would mimic more closely what happens in a modern Android device, during unlucky time intervals).
So, this is the problem. Next interesting questions may be: what are the causes? are there solutions?
Here comes the first surprise (at least it was a surprise for me when we discovered it): the causes have nothing to do with the schedulers! The causes just interact in different ways with different schedulers, but the increase in latency is not the schedulers' fault. It is a blocking problem occurring inside the kernel, and due to virtual-memory handling and journaling.
Are there solutions? Yes. And we have already developed a first set of these solutions. They have still a long way to go before becoming production solutions. I am working on these solutions with my brave students, plus other volunteer collaborators. This work is now also supported by Linaro. As of now, I can only anticipate: with your test, and after applying our solution, the start-up time with and without writes would have been the same. I hope we will able soon to share at least some initial prototype.
Sorry for the long response. If you have further questions, do not hesitate to ask.
Paolo
> --
> You received this message because you are subscribed to the Google Groups "bfq-iosched" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
bfq-iosched...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.