diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2019-08-08 21:03:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-14 16:50:01 +0200 |
commit | b8e24a9300b0836a9d39f6b20746766b3b81f1bd (patch) | |
tree | 2b992e084f3e88eca44d34c427745fed595e6149 /include | |
parent | blk-mq: Fix memory leak in blk_mq_init_allocated_queue error handling (diff) | |
download | linux-b8e24a9300b0836a9d39f6b20746766b3b81f1bd.tar.xz linux-b8e24a9300b0836a9d39f6b20746766b3b81f1bd.zip |
block: annotate refault stalls from IO submission
psi tracks the time tasks wait for refaulting pages to become
uptodate, but it does not track the time spent submitting the IO. The
submission part can be significant if backing storage is contended or
when cgroup throttling (io.latency) is in effect - a lot of time is
spent in submit_bio(). In that case, we underreport memory pressure.
Annotate submit_bio() to account submission time as memory stall when
the bio is reading userspace workingset pages.
Tested-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blk_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index d6ce7b3ec8b1..5a1118d4ef7e 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -209,6 +209,7 @@ enum { BIO_BOUNCED, /* bio is a bounce bio */ BIO_USER_MAPPED, /* contains user pages */ BIO_NULL_MAPPED, /* contains invalid user pages */ + BIO_WORKINGSET, /* contains userspace workingset pages */ BIO_QUIET, /* Make BIO Quiet */ BIO_CHAIN, /* chained bio, ->bi_remaining in effect */ BIO_REFFED, /* bio has elevated ->bi_cnt */ |