forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linu…
…x/kernel/git/akpm/mm Pull MM updates from Andrew Morton: - More userfaultfs work from Peter Xu - Several convert-to-folios series from Sidhartha Kumar and Huang Ying - Some filemap cleanups from Vishal Moola - David Hildenbrand added the ability to selftest anon memory COW handling - Some cpuset simplifications from Liu Shixin - Addition of vmalloc tracing support by Uladzislau Rezki - Some pagecache folioifications and simplifications from Matthew Wilcox - A pagemap cleanup from Kefeng Wang: we have VM_ACCESS_FLAGS, so use it - Miguel Ojeda contributed some cleanups for our use of the __no_sanitize_thread__ gcc keyword. This series should have been in the non-MM tree, my bad - Naoya Horiguchi improved the interaction between memory poisoning and memory section removal for huge pages - DAMON cleanups and tuneups from SeongJae Park - Tony Luck fixed the handling of COW faults against poisoned pages - Peter Xu utilized the PTE marker code for handling swapin errors - Hugh Dickins reworked compound page mapcount handling, simplifying it and making it more efficient - Removal of the autonuma savedwrite infrastructure from Nadav Amit and David Hildenbrand - zram support for multiple compression streams from Sergey Senozhatsky - David Hildenbrand reworked the GUP code's R/O long-term pinning so that drivers no longer need to use the FOLL_FORCE workaround which didn't work very well anyway - Mel Gorman altered the page allocator so that local IRQs can remnain enabled during per-cpu page allocations - Vishal Moola removed the try_to_release_page() wrapper - Stefan Roesch added some per-BDI sysfs tunables which are used to prevent network block devices from dirtying excessive amounts of pagecache - David Hildenbrand did some cleanup and repair work on KSM COW breaking - Nhat Pham and Johannes Weiner have implemented writeback in zswap's zsmalloc backend - Brian Foster has fixed a longstanding corner-case oddity in file[map]_write_and_wait_range() - sparse-vmemmap changes for MIPS, LoongArch and NIOS2 from Feiyang Chen - Shiyang Ruan has done some work on fsdax, to make its reflink mode work better under xfstests. Better, but still not perfect - Christoph Hellwig has removed the .writepage() method from several filesystems. They only need .writepages() - Yosry Ahmed wrote a series which fixes the memcg reclaim target beancounting - David Hildenbrand has fixed some of our MM selftests for 32-bit machines - Many singleton patches, as usual * tag 'mm-stable-2022-12-13' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (313 commits) mm/hugetlb: set head flag before setting compound_order in __prep_compound_gigantic_folio mm: mmu_gather: allow more than one batch of delayed rmaps mm: fix typo in struct pglist_data code comment kmsan: fix memcpy tests mm: add cond_resched() in swapin_walk_pmd_entry() mm: do not show fs mm pc for VM_LOCKONFAULT pages selftests/vm: ksm_functional_tests: fixes for 32bit selftests/vm: cow: fix compile warning on 32bit selftests/vm: madv_populate: fix missing MADV_POPULATE_(READ|WRITE) definitions mm/gup_test: fix PIN_LONGTERM_TEST_READ with highmem mm,thp,rmap: fix races between updates of subpages_mapcount mm: memcg: fix swapcached stat accounting mm: add nodes= arg to memory.reclaim mm: disable top-tier fallback to reclaim on proactive reclaim selftests: cgroup: make sure reclaim target memcg is unprotected selftests: cgroup: refactor proactive reclaim code to reclaim_until() mm: memcg: fix stale protection of reclaim target memcg mm/mmap: properly unaccount memory on mas_preallocate() failure omfs: remove ->writepage jfs: remove ->writepage ...
- Loading branch information
Showing
237 changed files
with
9,281 additions
and
5,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,17 @@ Description: | |
The writeback_limit file is read-write and specifies the maximum | ||
amount of writeback ZRAM can do. The limit could be changed | ||
in run time. | ||
|
||
What: /sys/block/zram<id>/recomp_algorithm | ||
Date: November 2022 | ||
Contact: Sergey Senozhatsky <[email protected]> | ||
Description: | ||
The recomp_algorithm file is read-write and allows to set | ||
or show secondary compression algorithms. | ||
|
||
What: /sys/block/zram<id>/recompress | ||
Date: November 2022 | ||
Contact: Sergey Senozhatsky <[email protected]> | ||
Description: | ||
The recompress file is write-only and triggers re-compression | ||
with secondary compression algorithms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,21 @@ Description: | |
|
||
(read-write) | ||
|
||
What: /sys/class/bdi/<bdi>/min_ratio_fine | ||
Date: November 2022 | ||
Contact: Stefan Roesch <[email protected]> | ||
Description: | ||
Under normal circumstances each device is given a part of the | ||
total write-back cache that relates to its current average | ||
writeout speed in relation to the other devices. | ||
|
||
The 'min_ratio_fine' parameter allows assigning a minimum reserve | ||
of the write-back cache to a particular device. The value is | ||
expressed as part of 1 million. For example, this is useful for | ||
providing a minimum QoS. | ||
|
||
(read-write) | ||
|
||
What: /sys/class/bdi/<bdi>/max_ratio | ||
Date: January 2008 | ||
Contact: Peter Zijlstra <[email protected]> | ||
|
@@ -55,6 +70,59 @@ Description: | |
mount that is prone to get stuck, or a FUSE mount which cannot | ||
be trusted to play fair. | ||
|
||
(read-write) | ||
|
||
What: /sys/class/bdi/<bdi>/max_ratio_fine | ||
Date: November 2022 | ||
Contact: Stefan Roesch <[email protected]> | ||
Description: | ||
Allows limiting a particular device to use not more than the | ||
given value of the write-back cache. The value is given as part | ||
of 1 million. This is useful in situations where we want to avoid | ||
one device taking all or most of the write-back cache. For example | ||
in case of an NFS mount that is prone to get stuck, or a FUSE mount | ||
which cannot be trusted to play fair. | ||
|
||
(read-write) | ||
|
||
What: /sys/class/bdi/<bdi>/min_bytes | ||
Date: October 2022 | ||
Contact: Stefan Roesch <[email protected]> | ||
Description: | ||
Under normal circumstances each device is given a part of the | ||
total write-back cache that relates to its current average | ||
writeout speed in relation to the other devices. | ||
|
||
The 'min_bytes' parameter allows assigning a minimum | ||
percentage of the write-back cache to a particular device | ||
expressed in bytes. | ||
For example, this is useful for providing a minimum QoS. | ||
|
||
(read-write) | ||
|
||
What: /sys/class/bdi/<bdi>/max_bytes | ||
Date: October 2022 | ||
Contact: Stefan Roesch <[email protected]> | ||
Description: | ||
Allows limiting a particular device to use not more than the | ||
given 'max_bytes' of the write-back cache. This is useful in | ||
situations where we want to avoid one device taking all or | ||
most of the write-back cache. For example in case of an NFS | ||
mount that is prone to get stuck, a FUSE mount which cannot be | ||
trusted to play fair, or a nbd device. | ||
|
||
(read-write) | ||
|
||
What: /sys/class/bdi/<bdi>/strict_limit | ||
Date: October 2022 | ||
Contact: Stefan Roesch <[email protected]> | ||
Description: | ||
Forces per-BDI checks for the share of given device in the write-back | ||
cache even before the global background dirty limit is reached. This | ||
is useful in situations where the global limit is much higher than | ||
affordable for given relatively slow (or untrusted) device. Turning | ||
strictlimit on has no visible effect if max_ratio is equal to 100%. | ||
|
||
(read-write) | ||
What: /sys/class/bdi/<bdi>/stable_pages_required | ||
Date: January 2008 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,10 @@ Description: Writing 'on' or 'off' to this file makes the kdamond starts or | |
makes the kdamond reads the user inputs in the sysfs files | ||
except 'state' again. Writing 'update_schemes_stats' to the | ||
file updates contents of schemes stats files of the kdamond. | ||
Writing 'update_schemes_tried_regions' to the file updates | ||
contents of 'tried_regions' directory of every scheme directory | ||
of this kdamond. Writing 'clear_schemes_tried_regions' to the | ||
file removes contents of the 'tried_regions' directory. | ||
|
||
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/pid | ||
Date: Mar 2022 | ||
|
@@ -283,3 +287,31 @@ Date: Mar 2022 | |
Contact: SeongJae Park <[email protected]> | ||
Description: Reading this file returns the number of the exceed events of | ||
the scheme's quotas. | ||
|
||
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/start | ||
Date: Oct 2022 | ||
Contact: SeongJae Park <[email protected]> | ||
Description: Reading this file returns the start address of a memory region | ||
that corresponding DAMON-based Operation Scheme's action has | ||
tried to be applied. | ||
|
||
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/end | ||
Date: Oct 2022 | ||
Contact: SeongJae Park <[email protected]> | ||
Description: Reading this file returns the end address of a memory region | ||
that corresponding DAMON-based Operation Scheme's action has | ||
tried to be applied. | ||
|
||
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/nr_accesses | ||
Date: Oct 2022 | ||
Contact: SeongJae Park <[email protected]> | ||
Description: Reading this file returns the 'nr_accesses' of a memory region | ||
that corresponding DAMON-based Operation Scheme's action has | ||
tried to be applied. | ||
|
||
What: /sys/kernel/mm/damon/admin/kdamonds/<K>/contexts/<C>/schemes/<S>/tried_regions/<R>/age | ||
Date: Oct 2022 | ||
Contact: SeongJae Park <[email protected]> | ||
Description: Reading this file returns the 'age' of a memory region that | ||
corresponding DAMON-based Operation Scheme's action has tried | ||
to be applied. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.