]> git.baikalelectronics.ru Git - kernel.git/commit
mm: skip readahead if the cgroup is congested
authorJosef Bacik <jbacik@fb.com>
Tue, 3 Jul 2018 15:15:03 +0000 (11:15 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:54 +0000 (09:07 -0600)
commit0fde12d6e76492d4c8e55d6ba2933983a43ba297
tree92d23a5608cdfa17635fe78da7b979704e61eed5
parent338f9dd16a086ebecda7c57cb4cafb053dc4e790
mm: skip readahead if the cgroup is congested

We noticed in testing we'd get pretty bad latency stalls under heavy
pressure because read ahead would try to do its thing while the cgroup
was under severe pressure.  If we're under this much pressure we want to
do as little IO as possible so we can still make progress on real work
if we're a throttled cgroup, so just skip readahead if our group is
under pressure.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/readahead.c