The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)
Перейти к файлу
Stefan Roesch 9c84819bd6 mm: add /sys/class/bdi/<bdi>/min_bytes knob
bdi has two existing knobs to limit the amount of dirty memory:
min_ratio and max_ratio. However the granularity of the knobs is limited
and often it is more convenient to specify limits in terms of bytes.
This change adds the min_bytes knob.

It does not store the min_bytes value, instead it converts the max_bytes
value to a ratio. The value is therefore more an approximation than an
absolute value.

It also maintains the sum over all the bdi min_ratio values stored in
the variable bdi_min_ratio.

Link: https://lkml.kernel.org/r/20221119005215.3052436-14-shr@devkernel.io
Signed-off-by: Stefan Roesch <shr@devkernel.io>
Cc: Chris Mason <clm@meta.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-11-30 15:59:05 -08:00
Documentation mm: document /sys/class/bdi/<bdi>/max_bytes knob 2022-11-30 15:59:04 -08:00
LICENSES
arch mm/uffd: sanity check write bit for uffd-wp protected ptes 2022-11-30 15:58:55 -08:00
block
certs
crypto
drivers zram: remove unused stats fields 2022-11-30 15:59:01 -08:00
fs ext4: convert move_extent_per_page() to use folios 2022-11-30 15:59:02 -08:00
include mm: add bdi_set_min_bytes() function 2022-11-30 15:59:05 -08:00
init
io_uring
ipc
kernel percpu_counter: add percpu_counter_sum_all interface 2022-11-30 15:58:40 -08:00
lib maple_tree: allow TEST_MAPLE_TREE only when DEBUG_KERNEL is set 2022-11-30 15:59:03 -08:00
mm mm: add /sys/class/bdi/<bdi>/min_bytes knob 2022-11-30 15:59:05 -08:00
net
rust
samples
scripts
security
sound
tools selftests/vm: use memfd for hugepage-mmap test 2022-11-30 15:59:01 -08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.