Zhiguo Niu
296b8cb34e
f2fs: fix to avoid use GC_AT when setting gc_mode as GC_URGENT_LOW or GC_URGENT_MID
If gc_mode is set to GC_URGENT_LOW or GC_URGENT_MID, cost benefit GC
approach should be used, but if ATGC is enabled at the same time,
Age-threshold approach will be selected, which can only do amount of
GC and it is much less than the numbers of CB approach.
some traces:
f2fs_gc-254:48-396 [007] ..... 2311600.684028: f2fs_gc_begin: dev = (254,48), gc_type = Background GC, no_background_GC = 0, nr_free_secs = 0, nodes = 1053, dents = 2, imeta = 18, free_sec:44898, free_seg:44898, rsv_seg:239, prefree_seg:0
f2fs_gc-254:48-396 [007] ..... 2311600.684527: f2fs_get_victim: dev = (254,48), type = No TYPE, policy = (Background GC, LFS-mode, Age-threshold), victim = 10, cost = 4294364975, ofs_unit = 1, pre_victim_secno = -1, prefree = 0, free = 44898
f2fs_gc-254:48-396 [007] ..... 2311600.714835: f2fs_gc_end: dev = (254,48), ret = 0, seg_freed = 0, sec_freed = 0, nodes = 1562, dents = 2, imeta = 18, free_sec:44898, free_seg:44898, rsv_seg:239, prefree_seg:0
f2fs_gc-254:48-396 [007] ..... 2311600.714843: f2fs_background_gc: dev = (254,48), wait_ms = 50, prefree = 0, free = 44898
f2fs_gc-254:48-396 [007] ..... 2311600.771785: f2fs_gc_begin: dev = (254,48), gc_type = Background GC, no_background_GC = 0, nr_free_secs = 0, nodes = 1562, dents = 2, imeta = 18, free_sec:44898, free_seg:44898, rsv_seg:239, prefree_seg:
f2fs_gc-254:48-396 [007] ..... 2311600.772275: f2fs_gc_end: dev = (254,48), ret = -61, seg_freed = 0, sec_freed = 0, nodes = 1562, dents = 2, imeta = 18, free_sec:44898, free_seg:44898, rsv_seg:239, prefree_seg:0
Fixes: 0e5e81114de1 ("f2fs: add GC_URGENT_LOW mode in gc_urgent")
Fixes: d98af5f45520 ("f2fs: introduce gc_urgent_mid mode")
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-11-01 01:24:41 +00:00
..
2020-10-30 13:10:03 +01:00
2021-05-13 09:13:25 -06:00
2021-05-13 09:13:25 -06:00
2017-02-15 09:51:28 -05:00
2020-10-30 13:07:01 +01:00
2015-10-04 20:28:58 +01:00
2018-10-11 12:12:55 +02:00
2024-07-11 12:03:23 +02:00
2023-01-19 14:14:44 +01:00
2024-09-03 09:54:16 +02:00
2020-11-13 15:03:49 -07:00
2020-10-30 13:14:29 +01:00
2024-01-27 17:39:21 -08:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2022-07-23 13:03:48 +02:00
2020-10-30 13:14:29 +01:00
2023-07-26 06:38:14 +02:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00
2015-12-20 19:40:45 -08:00
2024-08-13 18:11:35 +02:00
2017-06-19 09:22:47 +03:00
2024-08-13 10:37:05 +02:00
2023-03-29 08:51:26 +02:00
2020-10-30 13:14:29 +01:00
2022-08-24 02:37:07 +00:00
2024-07-10 17:12:42 -07:00
2023-05-09 11:54:42 +02:00
2023-01-06 17:51:42 -06:00
2021-05-13 09:13:25 -06:00
2024-06-23 09:53:04 +03:00
2024-02-09 12:57:18 +08:00
2023-12-29 11:25:56 +08:00
2020-10-30 13:07:01 +01:00
2024-02-17 09:09:16 +08:00
2024-02-17 09:09:16 +08:00
2024-02-17 09:09:16 +08:00
2019-11-21 20:10:44 -05:00
2024-08-10 11:17:34 +01:00
2024-08-03 14:36:45 +01:00
2024-03-01 13:51:19 +01:00
2021-04-09 14:54:23 -07:00
2024-04-29 12:06:21 +02:00
2020-10-30 13:14:29 +01:00
2023-01-04 14:44:13 -07:00
2023-01-20 11:41:11 +00:00
2023-01-20 14:11:38 +00:00
2024-05-31 16:32:20 +03:00
2021-04-09 14:54:23 -07:00
2023-12-04 14:29:39 -07:00
2020-10-30 13:14:29 +01:00
2021-08-13 13:18:15 +02:00
2020-10-30 13:07:01 +01:00
2018-01-16 14:15:35 -05:00
2021-09-28 12:45:42 +02:00
2024-01-22 10:47:53 +01:00
2023-08-01 08:17:25 -04:00
2018-08-10 22:12:32 +10:00
2020-11-13 15:02:19 -07:00
2020-11-13 15:02:19 -07:00
2020-11-13 15:02:19 -07:00
2023-08-18 11:28:40 -06:00
2022-07-03 18:08:49 -07:00
2021-09-21 18:31:16 +02:00
2019-12-18 10:37:20 +01:00
2022-04-13 19:11:20 +02:00
2022-09-19 13:48:38 +02:00
2022-09-22 17:42:53 +02:00
2022-06-09 09:25:25 +09:00
2018-02-23 08:17:28 -07:00
2023-05-22 17:05:19 -04:00
2018-02-23 08:20:11 -07:00
2021-04-20 08:59:04 -06:00
2024-09-09 16:39:09 -07:00
2020-10-30 13:14:29 +01:00
2024-07-11 14:17:03 -07:00
2022-09-27 13:21:43 -06:00
2024-01-04 17:01:13 +01:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:31 +01:00
2020-10-30 13:14:31 +01:00
2024-04-29 09:37:05 +01:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:31 +01:00
2024-04-29 09:37:05 +01:00
2024-04-29 09:37:05 +01:00
2021-04-06 16:05:38 -06:00
2023-01-16 10:16:15 +00:00
2023-08-16 09:41:29 -04:00
2023-01-13 14:15:07 +01:00
2024-03-12 12:34:11 -07:00
2024-02-22 10:24:40 -08:00
2020-10-30 13:14:29 +01:00
2021-01-07 15:21:27 +01:00
2021-01-07 15:21:27 +01:00
2023-10-27 15:05:08 +02:00
2020-10-30 13:12:39 +01:00
2021-04-25 21:46:12 +05:30
2024-05-03 17:08:20 -03:00
2020-10-30 13:07:01 +01:00
2024-05-02 11:36:11 +01:00
2020-10-30 13:14:29 +01:00
2023-08-16 23:54:49 +10:00
2023-02-03 11:06:08 +01:00
2021-07-02 15:58:40 +02:00
2022-09-27 13:21:43 -06:00
2021-05-13 09:13:25 -06:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:29 +01:00
2017-02-01 12:44:23 +01:00
2023-08-18 11:28:40 -06:00
2019-06-15 08:12:45 +02:00
2020-10-30 13:07:01 +01:00
2024-08-07 14:43:54 +02:00
2024-01-15 00:21:14 +01:00
2024-09-03 18:49:43 +01:00
2020-09-03 19:40:56 +01:00
2024-04-20 15:41:32 +01:00
2022-11-23 19:52:55 +00:00
2020-03-08 17:28:33 +00:00
2022-02-21 19:33:05 +00:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2022-11-23 19:43:59 +00:00
2023-09-12 10:42:04 +01:00
2020-11-08 16:20:18 +00:00
2024-02-28 19:26:37 +00:00
2020-10-30 13:14:29 +01:00
2022-09-21 18:42:56 +01:00
2022-08-15 22:30:01 +01:00
2024-08-21 21:27:24 +01:00
2021-10-19 08:27:31 +01:00
2018-02-17 12:39:46 +00:00
2020-10-30 13:07:01 +01:00
2024-08-03 10:13:37 +01:00
2021-01-22 08:52:05 +00:00
2016-11-13 13:07:15 +00:00
2024-08-03 10:13:37 +01:00
2020-10-30 13:07:01 +01:00
2021-03-25 19:13:49 +00:00
2019-12-29 15:20:09 +00:00
2024-08-03 10:12:48 +01:00
2020-10-30 13:14:29 +01:00
2021-05-17 13:49:10 +01:00
2021-12-23 11:53:48 +00:00
2022-02-21 19:33:06 +00:00
2021-05-17 13:49:10 +01:00
2021-03-25 19:13:45 +00:00
2019-04-04 20:20:13 +01:00
2024-08-03 10:13:41 +01:00
2024-06-13 19:19:26 +01:00
2018-07-23 19:18:10 +01:00
2020-10-30 13:14:29 +01:00
2021-05-17 13:49:10 +01:00
2018-07-23 19:18:11 +01:00
2016-11-13 13:07:33 +00:00
2020-09-16 19:11:59 +01:00
2020-10-30 13:07:01 +01:00
2017-05-07 14:39:17 +01:00
2016-11-13 11:40:26 +00:00
2022-09-27 13:21:43 -06:00
2021-03-25 19:13:49 +00:00
2023-10-12 09:20:50 +01:00
2019-04-04 20:19:44 +01:00
2020-03-21 10:28:20 +00:00
2022-07-18 18:55:59 +01:00
2022-07-18 18:38:27 +01:00
2022-07-18 18:38:34 +01:00
2015-08-16 10:51:23 +01:00
2022-06-19 17:22:49 +01:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:07:01 +01:00
2015-10-04 20:28:58 +01:00
2019-02-21 15:01:06 +02:00
2016-05-03 15:07:35 -07:00
2021-09-28 12:48:15 +02:00
2020-08-18 15:44:43 +02:00
2017-10-30 11:46:04 +01:00
2020-10-30 13:12:39 +01:00
2021-04-09 14:54:23 -07:00
2023-08-18 11:28:40 -06:00
2023-07-21 14:44:47 -06:00
2023-11-03 09:27:20 +01:00
2023-10-10 13:35:55 -06:00
2024-09-06 11:37:24 -05:00
2024-02-02 17:21:40 -06:00
2024-02-09 14:32:51 +00:00
2020-10-30 13:14:29 +01:00
2019-06-15 08:12:45 +02:00
2021-03-28 14:57:11 +02:00
2020-10-30 13:14:29 +01:00
2024-06-27 16:08:05 +02:00
2022-02-09 08:04:44 +01:00
2021-09-28 12:48:16 +02:00
2023-03-10 09:47:16 +01:00
2021-10-22 09:54:32 +10:30
2024-03-27 07:57:16 +01:00
2021-09-21 18:31:15 +02:00
2020-10-30 13:14:29 +01:00
2018-04-25 16:59:53 -07:00
2020-10-30 13:14:29 +01:00
2021-10-01 10:06:01 +05:30
2021-10-01 10:06:01 +05:30
2023-12-19 05:08:23 +02:00
2022-07-02 11:11:21 +02:00
2023-08-08 08:13:22 +03:00
2018-07-02 17:42:36 +02:00
2024-03-05 07:57:23 +00:00
2020-10-30 13:07:01 +01:00
2017-08-28 11:43:39 +02:00
2024-02-21 13:44:21 -07:00
2020-10-30 13:07:01 +01:00
2018-09-12 09:46:46 +02:00
2024-06-24 20:36:13 +03:00
2020-10-30 13:14:52 +01:00
2023-08-18 11:28:40 -06:00
2021-05-20 13:44:14 -06:00
2020-10-30 13:14:29 +01:00
2018-02-23 08:20:57 -07:00
2022-11-30 15:59:06 -08:00
2018-03-21 09:26:07 -06:00
2020-10-30 13:14:29 +01:00
2019-02-01 08:09:27 +00:00
2019-02-01 08:09:27 +00:00
2023-08-18 11:28:40 -06:00
2023-11-13 10:48:49 +09:00
2021-09-21 18:31:15 +02:00
2021-01-21 20:12:40 +01:00
2021-10-05 16:25:22 +02:00
2021-09-14 23:38:58 -04:00
2020-10-26 18:06:45 -04:00
2020-10-26 18:06:45 -04:00
2023-10-05 11:20:54 +02:00
2023-09-21 18:29:29 +02:00
2016-11-10 17:03:35 +01:00
2020-10-30 13:14:29 +01:00
2018-07-15 13:55:44 +02:00
2021-09-21 18:31:16 +02:00
2024-02-25 12:37:37 -08:00
2020-11-04 11:14:38 +00:00
2023-11-22 11:46:03 +00:00
2023-06-01 19:46:35 +01:00
2020-10-30 13:14:29 +01:00
2023-11-01 11:28:48 +00:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:48 +01:00
2024-03-07 08:47:58 +00:00
2016-08-29 15:06:32 +02:00
2024-05-02 17:32:01 +01:00
2024-03-07 08:47:59 +00:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00
2021-09-21 18:31:16 +02:00
2021-09-21 18:31:16 +02:00
2023-08-18 11:28:40 -06:00
2021-09-21 18:31:16 +02:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:29 +01:00
2021-01-29 21:24:39 -08:00
2023-02-02 17:39:25 +01:00
2021-03-11 12:47:27 -08:00
2023-07-03 09:25:50 +01:00
2024-03-08 10:23:26 +00:00
2024-02-12 12:13:50 +00:00
2020-10-30 13:12:39 +01:00
2023-01-04 14:44:13 -07:00
2024-09-03 23:33:25 +02:00
2021-01-13 00:46:34 +01:00
2020-10-30 13:14:29 +01:00
2023-02-03 17:09:42 +01:00
2023-02-03 14:39:20 +01:00
2021-04-08 14:30:28 +02:00
2020-10-30 13:14:29 +01:00
2023-08-18 11:28:40 -06:00
2019-07-15 20:44:49 -07:00
2022-07-14 16:46:53 +02:00
2021-09-21 18:31:17 +02:00
2021-09-21 18:31:17 +02:00
2021-09-21 18:31:17 +02:00
2022-05-04 15:31:26 +01:00
2023-08-18 11:28:40 -06:00
2021-04-20 08:59:04 -06:00
2020-12-04 09:41:10 -07:00
2018-03-17 14:20:54 +01:00
2020-10-30 13:14:29 +01:00
2022-07-28 16:32:33 +02:00
2022-07-28 16:32:33 +02:00
2020-10-30 13:07:01 +01:00
2021-06-11 12:23:10 +02:00
2016-05-03 14:59:30 -07:00
2015-10-04 20:28:58 +01:00
2019-07-15 11:03:02 -03:00
2024-08-26 13:16:20 +02:00
2023-08-18 11:28:40 -06:00
2022-06-12 06:49:47 +02:00
2023-10-02 16:38:29 +02:00
2024-02-17 17:02:42 +01:00
2022-06-27 16:42:52 +02:00
2019-08-21 00:20:40 +02:00
2023-02-18 15:11:40 +01:00
2020-10-30 13:14:29 +01:00
2021-01-21 20:12:40 +01:00
2018-01-23 09:47:05 +01:00
2018-05-10 07:27:15 -04:00
2022-11-24 11:09:24 +01:00
2024-09-01 20:43:37 -07:00
2023-08-18 11:28:40 -06:00
2022-04-27 09:51:57 +02:00
2020-10-30 13:14:29 +01:00
2022-07-28 16:32:33 +02:00
2020-10-30 13:07:01 +01:00
2021-09-21 18:31:17 +02:00
2020-10-30 13:14:29 +01:00
2023-12-07 06:16:34 +00:00
2020-10-30 13:07:01 +01:00
2022-07-20 21:03:26 -07:00
2020-10-30 13:12:39 +01:00
2018-03-21 09:35:01 -06:00
2022-07-28 16:32:33 +02:00
2021-09-28 12:45:22 +02:00
2022-07-14 16:46:55 +02:00
2018-11-26 18:19:11 +01:00
2023-03-10 09:06:22 +01:00
2021-01-21 20:12:40 +01:00
2024-09-01 20:43:37 -07:00
2020-10-30 13:07:01 +01:00
2022-09-21 14:15:11 -06:00
2020-07-10 15:24:56 +02:00
2021-02-23 10:07:11 -06:00
2019-06-15 08:12:45 +02:00
2022-02-08 09:52:41 +01:00
2022-06-06 12:16:59 -05:00
2023-07-20 22:13:16 +12:00
2023-08-10 11:10:56 +08:00
2023-05-29 15:55:16 +01:00
2018-03-14 19:11:00 +01:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2023-12-19 11:09:44 +02:00
2019-06-14 18:17:11 +02:00
2015-09-30 21:28:10 +02:00
2020-10-30 13:14:29 +01:00
2018-03-06 15:17:55 +01:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2016-04-28 07:51:59 -06:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00
2021-02-22 21:22:15 -08:00
2021-03-07 21:56:50 -08:00
2021-08-20 12:09:41 +02:00
2022-11-21 10:55:35 +01:00
2024-08-28 12:06:07 +05:30
2023-11-01 10:02:16 +00:00
2023-10-24 19:32:39 +02:00
2024-03-29 11:27:21 -04:00
2020-10-30 13:14:29 +01:00
2024-03-28 15:34:39 +00:00
2020-10-30 13:14:29 +01:00
2019-06-15 08:12:45 +02:00
2024-07-06 10:20:00 +10:00
2023-10-27 18:04:27 +08:00
2023-10-27 18:04:28 +08:00
2020-10-30 13:07:01 +01:00
2019-06-15 08:12:45 +02:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:07:01 +01:00
2023-01-06 16:36:03 +01:00
2023-01-20 12:06:26 +01:00
2019-04-25 11:03:53 +02:00
2024-08-12 22:11:24 -04:00
2020-10-30 13:14:29 +01:00
2020-11-12 08:50:13 +01:00
2020-10-30 13:07:01 +01:00
2021-04-05 13:15:52 +02:00
2022-08-12 12:13:51 +02:00
2022-08-12 12:13:54 +02:00
2023-01-20 13:09:30 +01:00
2023-03-09 17:33:19 +01:00
2023-08-18 11:28:40 -06:00
2023-09-11 08:13:18 +00:00
2019-08-08 11:10:25 +03:00
2021-09-21 18:31:17 +02:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:07:01 +01:00
2023-12-15 17:23:00 +01:00
2020-10-27 12:46:35 +01:00
2021-06-24 16:24:51 +02:00
2017-06-30 09:16:51 -05:00
2024-05-06 22:05:18 +10:00
2024-05-06 22:05:18 +10:00
2024-05-06 22:05:18 +10:00
2024-05-06 22:05:18 +10:00
2022-07-20 15:01:43 -06:00
2023-08-18 11:28:40 -06:00
2021-04-09 14:54:23 -07:00
2023-02-15 08:11:27 +08:00
2020-11-13 15:03:49 -07:00
2024-11-01 01:24:41 +00:00
2021-12-23 20:23:42 +01:00
2024-02-23 09:40:26 +01:00
2024-07-04 12:46:47 +05:30
2020-10-30 13:07:01 +01:00
2016-05-16 11:14:29 -04:00
2023-01-20 14:30:45 +01:00
2020-10-30 13:07:01 +01:00
2020-11-10 15:25:53 -08:00
2022-11-10 19:07:31 +01:00
2021-07-20 11:06:59 +02:00
2024-05-10 22:35:18 +10:00
2019-06-14 18:17:11 +02:00
2023-03-22 15:45:17 +01:00
2018-02-28 18:07:20 +01:00
2024-07-02 16:56:18 +02:00
2024-02-22 10:24:57 -08:00
2024-07-03 19:30:12 -07:00
2020-10-30 13:07:01 +01:00
2023-04-21 14:52:03 -07:00
2022-10-28 13:37:22 -07:00
2024-02-22 10:24:46 -08:00
2024-02-22 10:24:46 -08:00
2021-09-03 09:58:16 -07:00
2017-10-13 16:18:33 -07:00
2024-05-05 17:53:36 -07:00
2022-12-01 08:50:38 -08:00
2020-12-15 22:46:19 -08:00
2022-06-27 12:52:53 -07:00
2019-06-14 18:17:11 +02:00
2022-12-14 14:37:59 -08:00
2022-02-23 11:09:25 +01:00
2023-08-18 11:28:40 -06:00
2023-07-27 07:53:12 +02:00
2024-02-14 16:28:16 +01:00
2023-07-08 09:29:29 -07:00
2021-08-16 18:32:02 +02:00
2020-10-30 13:07:01 +01:00
2024-04-08 18:30:27 +02:00
2020-10-30 13:07:01 +01:00
2022-08-18 09:11:45 +03:00
2022-09-27 13:21:44 -06:00
2020-06-18 10:40:56 +02:00
2023-08-18 11:28:40 -06:00
2021-10-11 14:52:02 +02:00
2021-08-13 13:18:15 +02:00
2023-05-09 11:54:42 +02:00
2023-08-18 11:28:40 -06:00
2019-09-03 19:35:41 -07:00
2021-09-28 12:45:21 +02:00
2020-10-30 13:07:01 +01:00
2023-08-07 00:01:41 +05:30
2023-08-07 00:01:41 +05:30
2020-10-30 13:14:29 +01:00
2021-02-04 10:21:50 +01:00
2023-03-27 16:10:20 +02:00
2021-10-11 14:52:02 +02:00
2020-10-30 13:12:39 +01:00
2021-08-13 13:18:15 +02:00
2023-08-18 11:28:40 -06:00
2022-02-23 11:36:24 +01:00
2023-08-23 17:31:27 +02:00
2020-10-30 13:14:29 +01:00
2023-07-19 23:15:21 +02:00
2020-11-13 15:03:49 -07:00
2024-01-22 11:37:28 +01:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:12:39 +01:00
2023-04-20 19:06:12 +02:00
2020-10-30 13:14:29 +01:00
2021-09-21 18:31:17 +02:00
2023-02-13 22:34:33 +11:00
2024-09-03 15:37:48 +02:00
2023-09-18 11:14:43 +02:00
2020-10-30 13:07:02 +01:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00