]> 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)
commit55c89e243d7d7c8ff66ac3e26fc4ce39deb6e5d2
tree92d23a5608cdfa17635fe78da7b979704e61eed5
parent457e232d12f6c1aee63f8fe6bb3993967d7c572a
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