hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/ABI/testing/sysfs-fs-f2fs
....@@ -271,11 +271,16 @@
271271 What: /sys/fs/f2fs/<disk>/gc_urgent
272272 Date: August 2017
273273 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
274
-Description: Do background GC agressively when set. When gc_urgent = 1,
275
- background thread starts to do GC by given gc_urgent_sleep_time
276
- interval. When gc_urgent = 2, F2FS will lower the bar of
277
- checking idle in order to process outstanding discard commands
278
- and GC a little bit aggressively. It is set to 0 by default.
274
+Description: Do background GC aggressively when set. Set to 0 by default.
275
+ gc urgent high(1): does GC forcibly in a period of given
276
+ gc_urgent_sleep_time and ignores I/O idling check. uses greedy
277
+ GC approach and turns SSR mode on.
278
+ gc urgent low(2): lowers the bar of checking I/O idling in
279
+ order to process outstanding discard commands and GC a
280
+ little bit aggressively. uses cost benefit GC approach.
281
+ gc urgent mid(3): does GC forcibly in a period of given
282
+ gc_urgent_sleep_time and executes a mid level of I/O idling check.
283
+ uses cost benefit GC approach.
279284
280285 What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
281286 Date: August 2017
....@@ -506,7 +511,7 @@
506511 Contact: "Daeho Jeong" <daehojeong@google.com>
507512 Description: Show how many segments have been reclaimed by GC during a specific
508513 GC mode (0: GC normal, 1: GC idle CB, 2: GC idle greedy,
509
- 3: GC idle AT, 4: GC urgent high, 5: GC urgent low)
514
+ 3: GC idle AT, 4: GC urgent high, 5: GC urgent low 6: GC urgent mid)
510515 You can re-initialize this value to "0".
511516
512517 What: /sys/fs/f2fs/<disk>/gc_segment_mode