1b59d0baeSNamjae JeonWhat: /sys/fs/f2fs/<disk>/gc_max_sleep_time 2b59d0baeSNamjae JeonDate: July 2013 3b59d0baeSNamjae JeonContact: "Namjae Jeon" <namjae.jeon@samsung.com> 4b59d0baeSNamjae JeonDescription: 5b59d0baeSNamjae Jeon Controls the maximun sleep time for gc_thread. Time 6b59d0baeSNamjae Jeon is in milliseconds. 7b59d0baeSNamjae Jeon 8b59d0baeSNamjae JeonWhat: /sys/fs/f2fs/<disk>/gc_min_sleep_time 9b59d0baeSNamjae JeonDate: July 2013 10b59d0baeSNamjae JeonContact: "Namjae Jeon" <namjae.jeon@samsung.com> 11b59d0baeSNamjae JeonDescription: 12b59d0baeSNamjae Jeon Controls the minimum sleep time for gc_thread. Time 13b59d0baeSNamjae Jeon is in milliseconds. 14b59d0baeSNamjae Jeon 15b59d0baeSNamjae JeonWhat: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time 16b59d0baeSNamjae JeonDate: July 2013 17b59d0baeSNamjae JeonContact: "Namjae Jeon" <namjae.jeon@samsung.com> 18b59d0baeSNamjae JeonDescription: 19b59d0baeSNamjae Jeon Controls the default sleep time for gc_thread. Time 20b59d0baeSNamjae Jeon is in milliseconds. 21d2dc095fSNamjae Jeon 22d2dc095fSNamjae JeonWhat: /sys/fs/f2fs/<disk>/gc_idle 23d2dc095fSNamjae JeonDate: July 2013 24d2dc095fSNamjae JeonContact: "Namjae Jeon" <namjae.jeon@samsung.com> 25d2dc095fSNamjae JeonDescription: 26d2dc095fSNamjae Jeon Controls the victim selection policy for garbage collection. 273bac380cSJaegeuk Kim 283bac380cSJaegeuk KimWhat: /sys/fs/f2fs/<disk>/reclaim_segments 293bac380cSJaegeuk KimDate: October 2013 303bac380cSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 313bac380cSJaegeuk KimDescription: 323bac380cSJaegeuk Kim Controls the issue rate of segment discard commands. 333bac380cSJaegeuk Kim 343bac380cSJaegeuk KimWhat: /sys/fs/f2fs/<disk>/ipu_policy 353bac380cSJaegeuk KimDate: November 2013 363bac380cSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 373bac380cSJaegeuk KimDescription: 383bac380cSJaegeuk Kim Controls the in-place-update policy. 393bac380cSJaegeuk Kim 403bac380cSJaegeuk KimWhat: /sys/fs/f2fs/<disk>/min_ipu_util 413bac380cSJaegeuk KimDate: November 2013 423bac380cSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 433bac380cSJaegeuk KimDescription: 443bac380cSJaegeuk Kim Controls the FS utilization condition for the in-place-update 453bac380cSJaegeuk Kim policies. 463bac380cSJaegeuk Kim 47c1ce1b02SJaegeuk KimWhat: /sys/fs/f2fs/<disk>/min_fsync_blocks 48c1ce1b02SJaegeuk KimDate: September 2014 49c1ce1b02SJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 50c1ce1b02SJaegeuk KimDescription: 51c1ce1b02SJaegeuk Kim Controls the dirty page count condition for the in-place-update 52c1ce1b02SJaegeuk Kim policies. 53c1ce1b02SJaegeuk Kim 54*b32d73abSChao YuWhat: /sys/fs/f2fs/<disk>/min_hot_blocks 55*b32d73abSChao YuDate: March 2017 56*b32d73abSChao YuContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 57*b32d73abSChao YuDescription: 58*b32d73abSChao Yu Controls the dirty page count condition for redefining hot data. 59*b32d73abSChao Yu 603bac380cSJaegeuk KimWhat: /sys/fs/f2fs/<disk>/max_small_discards 613bac380cSJaegeuk KimDate: November 2013 623bac380cSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 633bac380cSJaegeuk KimDescription: 643bac380cSJaegeuk Kim Controls the issue rate of small discard commands. 653bac380cSJaegeuk Kim 66969d1b18SChao YuWhat: /sys/fs/f2fs/<disk>/discard_granularity 67969d1b18SChao YuDate: July 2017 68969d1b18SChao YuContact: "Chao Yu" <yuchao0@huawei.com> 69969d1b18SChao YuDescription: 70969d1b18SChao Yu Controls discard granularity of inner discard thread, inner thread 71969d1b18SChao Yu will not issue discards with size that is smaller than granularity. 72969d1b18SChao Yu The unit size is one block, now only support configuring in range 73969d1b18SChao Yu of [1, 512]. 74969d1b18SChao Yu 753bac380cSJaegeuk KimWhat: /sys/fs/f2fs/<disk>/max_victim_search 763bac380cSJaegeuk KimDate: January 2014 773bac380cSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 783bac380cSJaegeuk KimDescription: 793bac380cSJaegeuk Kim Controls the number of trials to find a victim segment. 80cdfc41c1SJaegeuk Kim 8191796825SJaegeuk KimWhat: /sys/fs/f2fs/<disk>/dir_level 8291796825SJaegeuk KimDate: March 2014 8391796825SJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 8491796825SJaegeuk KimDescription: 8591796825SJaegeuk Kim Controls the directory level for large directory. 8691796825SJaegeuk Kim 87cdfc41c1SJaegeuk KimWhat: /sys/fs/f2fs/<disk>/ram_thresh 88cdfc41c1SJaegeuk KimDate: March 2014 89cdfc41c1SJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 90cdfc41c1SJaegeuk KimDescription: 91cdfc41c1SJaegeuk Kim Controls the memory footprint used by f2fs. 92bba681cbSJaegeuk Kim 936f6d9fe2SChao YuWhat: /sys/fs/f2fs/<disk>/batched_trim_sections 94bba681cbSJaegeuk KimDate: February 2015 95bba681cbSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 96bba681cbSJaegeuk KimDescription: 97bba681cbSJaegeuk Kim Controls the trimming rate in batch mode. 9860b99b48SJaegeuk Kim 9960b99b48SJaegeuk KimWhat: /sys/fs/f2fs/<disk>/cp_interval 10060b99b48SJaegeuk KimDate: October 2015 10160b99b48SJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 10260b99b48SJaegeuk KimDescription: 10360b99b48SJaegeuk Kim Controls the checkpoint timing. 104ea1a29a0SChao Yu 105d0239e1bSJaegeuk KimWhat: /sys/fs/f2fs/<disk>/idle_interval 106d0239e1bSJaegeuk KimDate: January 2016 107d0239e1bSJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 108d0239e1bSJaegeuk KimDescription: 109d0239e1bSJaegeuk Kim Controls the idle timing. 110d0239e1bSJaegeuk Kim 111*b32d73abSChao YuWhat: /sys/fs/f2fs/<disk>/iostat_enable 112*b32d73abSChao YuDate: August 2017 113*b32d73abSChao YuContact: "Chao Yu" <yuchao0@huawei.com> 114*b32d73abSChao YuDescription: 115*b32d73abSChao Yu Controls to enable/disable IO stat. 116*b32d73abSChao Yu 117ea1a29a0SChao YuWhat: /sys/fs/f2fs/<disk>/ra_nid_pages 118ea1a29a0SChao YuDate: October 2015 119ea1a29a0SChao YuContact: "Chao Yu" <chao2.yu@samsung.com> 120ea1a29a0SChao YuDescription: 121ea1a29a0SChao Yu Controls the count of nid pages to be readaheaded. 1222304cb0cSChao Yu 1232304cb0cSChao YuWhat: /sys/fs/f2fs/<disk>/dirty_nats_ratio 1242304cb0cSChao YuDate: January 2016 1252304cb0cSChao YuContact: "Chao Yu" <chao2.yu@samsung.com> 1262304cb0cSChao YuDescription: 1272304cb0cSChao Yu Controls dirty nat entries ratio threshold, if current 1282304cb0cSChao Yu ratio exceeds configured threshold, checkpoint will 1292304cb0cSChao Yu be triggered for flushing dirty nat entries. 1308f1dbbbbSShuoran Liu 1318f1dbbbbSShuoran LiuWhat: /sys/fs/f2fs/<disk>/lifetime_write_kbytes 1328f1dbbbbSShuoran LiuDate: January 2016 1338f1dbbbbSShuoran LiuContact: "Shuoran Liu" <liushuoran@huawei.com> 1348f1dbbbbSShuoran LiuDescription: 1358f1dbbbbSShuoran Liu Shows total written kbytes issued to disk. 13656412894SChao Yu 137*b32d73abSChao YuWhat: /sys/fs/f2fs/<disk>/feature 138*b32d73abSChao YuDate: July 2017 139*b32d73abSChao YuContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 140*b32d73abSChao YuDescription: 141*b32d73abSChao Yu Shows all enabled features in current device. 142*b32d73abSChao Yu 14356412894SChao YuWhat: /sys/fs/f2fs/<disk>/inject_rate 14456412894SChao YuDate: May 2016 14556412894SChao YuContact: "Sheng Yong" <shengyong1@huawei.com> 14656412894SChao YuDescription: 14756412894SChao Yu Controls the injection rate. 14856412894SChao Yu 14956412894SChao YuWhat: /sys/fs/f2fs/<disk>/inject_type 15056412894SChao YuDate: May 2016 15156412894SChao YuContact: "Sheng Yong" <shengyong1@huawei.com> 15256412894SChao YuDescription: 15356412894SChao Yu Controls the injection type. 154daeb433eSChao Yu 155daeb433eSChao YuWhat: /sys/fs/f2fs/<disk>/reserved_blocks 156daeb433eSChao YuDate: June 2017 157daeb433eSChao YuContact: "Chao Yu" <yuchao0@huawei.com> 158daeb433eSChao YuDescription: 15980d42145SYunlong Song Controls target reserved blocks in system, the threshold 16080d42145SYunlong Song is soft, it could exceed current available user space. 16180d42145SYunlong Song 16280d42145SYunlong SongWhat: /sys/fs/f2fs/<disk>/current_reserved_blocks 16380d42145SYunlong SongDate: October 2017 16480d42145SYunlong SongContact: "Yunlong Song" <yunlong.song@huawei.com> 16580d42145SYunlong SongContact: "Chao Yu" <yuchao0@huawei.com> 16680d42145SYunlong SongDescription: 16780d42145SYunlong Song Shows current reserved blocks in system, it may be temporarily 16880d42145SYunlong Song smaller than target_reserved_blocks, but will gradually 16980d42145SYunlong Song increase to target_reserved_blocks when more free blocks are 17080d42145SYunlong Song freed by user later. 171d9872a69SJaegeuk Kim 172d9872a69SJaegeuk KimWhat: /sys/fs/f2fs/<disk>/gc_urgent 173d9872a69SJaegeuk KimDate: August 2017 174d9872a69SJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 175d9872a69SJaegeuk KimDescription: 176d9872a69SJaegeuk Kim Do background GC agressively 177d9872a69SJaegeuk Kim 178d9872a69SJaegeuk KimWhat: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time 179d9872a69SJaegeuk KimDate: August 2017 180d9872a69SJaegeuk KimContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 181d9872a69SJaegeuk KimDescription: 182d9872a69SJaegeuk Kim Controls sleep time of GC urgent mode 183