Re: [PATCH RFC 10/22] block, bfq: add full hierarchical scheduling and cgroups support
From: Tejun Heo
Date: Mon Apr 25 2016 - 15:24:44 EST
Hello, Paolo.
On Sat, Apr 23, 2016 at 09:07:47AM +0200, Paolo Valente wrote:
> There is certainly something I donât know here, because I donât
> understand why there is also a workqueue containing root-group I/O
> all the time, if the only process doing I/O belongs to a different
> (sub)group.
Hmmm... maybe metadata updates?
> Anyway, if this is expected, then there is no reason to bother you
> further on it. In contrast, the actual problem I see is the
> following. If one third or half of the bios belong to a different
> group than the writer that one wants to isolate, then, whatever
> weight is assigned to the writer group, we will never be able to let
> the writer get the desired share of the time (or of the bandwidth
> with bfq and all quasi-sequential workloads). For instance, in the
> scenario that you told me to try, the writer will never get 50% of
> the time, with any scheduler. Am I missing something also on this?
While a worker may jump across different cgroups, the IOs are still
coming from somewhere and if the only IO generator on the machine is
the test dd, the bios from that cgroup should dominate the IOs. I
think it'd be helpful to investigate who's issuing the root cgroup
IOs.
Thanks.
--
tejun