public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v2 0/7] blk-iocost: support to build iocost as kernel module
@ 2024-06-18  3:17 Yu Kuai
  2024-06-18  3:17 ` [PATCH RFC v2 1/7] blk-cgroup: add a new helper pr_cont_blkg_path() Yu Kuai
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Yu Kuai @ 2024-06-18  3:17 UTC (permalink / raw)
  To: axboe, tj, gregkh, bvanassche, hch, josef, lizefan.x, hannes
  Cc: linux-block, linux-kernel, cgroups, yukuai3, yukuai1, yi.zhang,
	yangerkun

From: Yu Kuai <yukuai3@huawei.com>

Changes from RFC v1:
 - replace the first patch.
 - add commit message of our motivation and advantages to build iocost
 as kernel module.

The motivation is that iocost is not used widely in our production, and
some customers don't want to increase kernel size to enable iocost that
they will never use, and it'll be painful to maintain a new downstream
kernel. Hence it'll be beneficially to build iocost as kernel module:

- Kernel Size and Resource Usage, modules are loaded only when their
specific functionality is required.

- Flexibility and Maintainability, allows for dynamic loading and unloading
of modules at runtime without the need to recompile and restart the kernel,
for example we can just replace blk-iocost.ko to fix iocost CVE in our
production environment.

Yu Kuai (7):
  blk-cgroup: add a new helper pr_cont_blkg_path()
  cgroup: export cgroup_parse_float
  block: export some API
  blk-iocost: factor out helpers to handle params from ioc_qos_write()
  blk-iocost: parse params before initializing iocost
  blk-iocost: support to free iocost
  blk-iocost: support to build iocost as kernel module

 block/Kconfig             |   2 +-
 block/blk-cgroup.c        |  10 ++
 block/blk-cgroup.h        |   1 +
 block/blk-iocost.c        | 225 ++++++++++++++++++++++++++------------
 block/blk-rq-qos.c        |   2 +
 include/linux/blk_types.h |   2 +-
 kernel/cgroup/cgroup.c    |   1 +
 7 files changed, 170 insertions(+), 73 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2024-06-20  6:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-18  3:17 [PATCH RFC v2 0/7] blk-iocost: support to build iocost as kernel module Yu Kuai
2024-06-18  3:17 ` [PATCH RFC v2 1/7] blk-cgroup: add a new helper pr_cont_blkg_path() Yu Kuai
2024-06-18  3:17 ` [PATCH RFC v2 2/7] cgroup: export cgroup_parse_float Yu Kuai
2024-06-18  3:17 ` [PATCH RFC v2 3/7] block: export some API Yu Kuai
2024-06-18  7:14   ` Christoph Hellwig
2024-06-18  7:58     ` Yu Kuai
2024-06-20  6:48       ` Christoph Hellwig
2024-06-18  3:17 ` [PATCH RFC v2 4/7] blk-iocost: factor out helpers to handle params from ioc_qos_write() Yu Kuai
2024-06-18  3:17 ` [PATCH RFC v2 5/7] blk-iocost: parse params before initializing iocost Yu Kuai
2024-06-18  3:17 ` [PATCH RFC v2 6/7] blk-iocost: support to free iocost Yu Kuai
2024-06-18  3:17 ` [PATCH RFC v2 7/7] blk-iocost: support to build iocost as kernel module Yu Kuai
2024-06-18  7:12 ` [PATCH RFC v2 0/7] " Christoph Hellwig
2024-06-18  8:03   ` Yu Kuai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox