-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
f2fs: add a sysfs entry to request donate file-backed pages
1. ioctl(fd1, F2FS_IOC_DONATE_RANGE, {0,3}); 2. ioctl(fd2, F2FS_IOC_DONATE_RANGE, {1,2}); 3. ioctl(fd3, F2FS_IOC_DONATE_RANGE, {3,1}); 4. echo 3 > /sys/fs/f2fs/blk/donate_caches will reclaim 3 page cache ranges, registered by #1, #2, and #3. Signed-off-by: Jaegeuk Kim <[email protected]>
- Loading branch information
Jaegeuk Kim
committed
Jan 17, 2025
1 parent
490b551
commit b3514e6
Showing
4 changed files
with
44 additions
and
0 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 |
---|---|---|
|
@@ -828,3 +828,10 @@ Date: November 2024 | |
Contact: "Chao Yu" <[email protected]> | ||
Description: It controls max read extent count for per-inode, the value of threshold | ||
is 10240 by default. | ||
|
||
What: /sys/fs/f2fs/<disk>/donate_caches | ||
Date: December 2024 | ||
Contact: "Jaegeuk Kim" <[email protected]> | ||
Description: It reclaims the certian file-backed pages registered by | ||
ioctl(F2FS_IOC_DONATE_RANGE). | ||
For example, writing N tries to drop N address spaces in LRU. |
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