linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] *** introduce content activity based ioprio ***
@ 2024-02-21  7:53 zhaoyang.huang
  2024-02-21  7:53 ` [PATCH 1/2] block: introduce content activity based ioprio zhaoyang.huang
  2024-02-21  7:53 ` [PATCH 2/2] fs: " zhaoyang.huang
  0 siblings, 2 replies; 4+ messages in thread
From: zhaoyang.huang @ 2024-02-21  7:53 UTC (permalink / raw)
  To: Jens Axboe, Darrick J . Wong, Alexander Viro, Christian Brauner,
	linux-block, linux-fsdevel, linux-kernel, Zhaoyang Huang,
	steve.kang

From: Zhaoyang Huang <zhaoyang.huang@unisoc.com>

Currently, request's ioprio are set via task's schedule priority(when no
blkcg configured), which has high priority tasks possess the privilege on
both of CPU and IO scheduling. Furthermore, most of the write requestes
are launched asynchronosly from kworker which can't know the submitter's
priorities.
This commit works as a hint of original policy by promoting the request
ioprio based on the page/folio's activity. The original idea comes from
LRU_GEN which provides more precised folio activity than before. This
commit try to adjust the request's ioprio when certain part of its folios
are hot, which indicate that this request carry important contents and
need be scheduled ealier.

Zhaoyang Huang (2):
  block: introduce content activity based ioprio
  fs: introduce content activity based ioprio

 block/Kconfig          | 15 +++++++++++++++
 block/bio.c            | 34 ++++++++++++++++++++++++++++++++++
 fs/iomap/buffered-io.c |  3 +++
 fs/mpage.c             |  2 ++
 include/linux/bio.h    |  1 +
 5 files changed, 55 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-21 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21  7:53 [PATCH 0/2] *** introduce content activity based ioprio *** zhaoyang.huang
2024-02-21  7:53 ` [PATCH 1/2] block: introduce content activity based ioprio zhaoyang.huang
2024-02-21 12:53   ` Matthew Wilcox
2024-02-21  7:53 ` [PATCH 2/2] fs: " zhaoyang.huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).