sysfs-fs-f2fs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. What: /sys/fs/f2fs/<disk>/gc_max_sleep_time
  2. Date: July 2013
  3. Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
  4. Description:
  5. Controls the maximun sleep time for gc_thread. Time
  6. is in milliseconds.
  7. What: /sys/fs/f2fs/<disk>/gc_min_sleep_time
  8. Date: July 2013
  9. Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
  10. Description:
  11. Controls the minimum sleep time for gc_thread. Time
  12. is in milliseconds.
  13. What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time
  14. Date: July 2013
  15. Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
  16. Description:
  17. Controls the default sleep time for gc_thread. Time
  18. is in milliseconds.
  19. What: /sys/fs/f2fs/<disk>/gc_idle
  20. Date: July 2013
  21. Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
  22. Description:
  23. Controls the victim selection policy for garbage collection.
  24. What: /sys/fs/f2fs/<disk>/reclaim_segments
  25. Date: October 2013
  26. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  27. Description:
  28. Controls the issue rate of segment discard commands.
  29. What: /sys/fs/f2fs/<disk>/ipu_policy
  30. Date: November 2013
  31. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  32. Description:
  33. Controls the in-place-update policy.
  34. What: /sys/fs/f2fs/<disk>/min_ipu_util
  35. Date: November 2013
  36. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  37. Description:
  38. Controls the FS utilization condition for the in-place-update
  39. policies.
  40. What: /sys/fs/f2fs/<disk>/min_fsync_blocks
  41. Date: September 2014
  42. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  43. Description:
  44. Controls the dirty page count condition for the in-place-update
  45. policies.
  46. What: /sys/fs/f2fs/<disk>/min_seq_blocks
  47. Date: August 2018
  48. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  49. Description:
  50. Controls the dirty page count condition for batched sequential
  51. writes in ->writepages.
  52. What: /sys/fs/f2fs/<disk>/min_hot_blocks
  53. Date: March 2017
  54. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  55. Description:
  56. Controls the dirty page count condition for redefining hot data.
  57. What: /sys/fs/f2fs/<disk>/min_ssr_sections
  58. Date: October 2017
  59. Contact: "Chao Yu" <yuchao0@huawei.com>
  60. Description:
  61. Controls the fee section threshold to trigger SSR allocation.
  62. What: /sys/fs/f2fs/<disk>/max_small_discards
  63. Date: November 2013
  64. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  65. Description:
  66. Controls the issue rate of small discard commands.
  67. What: /sys/fs/f2fs/<disk>/discard_granularity
  68. Date: July 2017
  69. Contact: "Chao Yu" <yuchao0@huawei.com>
  70. Description:
  71. Controls discard granularity of inner discard thread, inner thread
  72. will not issue discards with size that is smaller than granularity.
  73. The unit size is one block, now only support configuring in range
  74. of [1, 512].
  75. What: /sys/fs/f2fs/<disk>/max_victim_search
  76. Date: January 2014
  77. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  78. Description:
  79. Controls the number of trials to find a victim segment.
  80. What: /sys/fs/f2fs/<disk>/dir_level
  81. Date: March 2014
  82. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  83. Description:
  84. Controls the directory level for large directory.
  85. What: /sys/fs/f2fs/<disk>/ram_thresh
  86. Date: March 2014
  87. Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
  88. Description:
  89. Controls the memory footprint used by f2fs.
  90. What: /sys/fs/f2fs/<disk>/batched_trim_sections
  91. Date: February 2015
  92. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  93. Description:
  94. Controls the trimming rate in batch mode.
  95. <deprecated>
  96. What: /sys/fs/f2fs/<disk>/cp_interval
  97. Date: October 2015
  98. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  99. Description:
  100. Controls the checkpoint timing.
  101. What: /sys/fs/f2fs/<disk>/idle_interval
  102. Date: January 2016
  103. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  104. Description:
  105. Controls the idle timing.
  106. What: /sys/fs/f2fs/<disk>/iostat_enable
  107. Date: August 2017
  108. Contact: "Chao Yu" <yuchao0@huawei.com>
  109. Description:
  110. Controls to enable/disable IO stat.
  111. What: /sys/fs/f2fs/<disk>/ra_nid_pages
  112. Date: October 2015
  113. Contact: "Chao Yu" <chao2.yu@samsung.com>
  114. Description:
  115. Controls the count of nid pages to be readaheaded.
  116. What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
  117. Date: January 2016
  118. Contact: "Chao Yu" <chao2.yu@samsung.com>
  119. Description:
  120. Controls dirty nat entries ratio threshold, if current
  121. ratio exceeds configured threshold, checkpoint will
  122. be triggered for flushing dirty nat entries.
  123. What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
  124. Date: January 2016
  125. Contact: "Shuoran Liu" <liushuoran@huawei.com>
  126. Description:
  127. Shows total written kbytes issued to disk.
  128. What: /sys/fs/f2fs/<disk>/features
  129. Date: July 2017
  130. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  131. Description:
  132. Shows all enabled features in current device.
  133. What: /sys/fs/f2fs/<disk>/inject_rate
  134. Date: May 2016
  135. Contact: "Sheng Yong" <shengyong1@huawei.com>
  136. Description:
  137. Controls the injection rate.
  138. What: /sys/fs/f2fs/<disk>/inject_type
  139. Date: May 2016
  140. Contact: "Sheng Yong" <shengyong1@huawei.com>
  141. Description:
  142. Controls the injection type.
  143. What: /sys/fs/f2fs/<disk>/reserved_blocks
  144. Date: June 2017
  145. Contact: "Chao Yu" <yuchao0@huawei.com>
  146. Description:
  147. Controls target reserved blocks in system, the threshold
  148. is soft, it could exceed current available user space.
  149. What: /sys/fs/f2fs/<disk>/current_reserved_blocks
  150. Date: October 2017
  151. Contact: "Yunlong Song" <yunlong.song@huawei.com>
  152. Contact: "Chao Yu" <yuchao0@huawei.com>
  153. Description:
  154. Shows current reserved blocks in system, it may be temporarily
  155. smaller than target_reserved_blocks, but will gradually
  156. increase to target_reserved_blocks when more free blocks are
  157. freed by user later.
  158. What: /sys/fs/f2fs/<disk>/gc_urgent
  159. Date: August 2017
  160. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  161. Description:
  162. Do background GC agressively
  163. What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
  164. Date: August 2017
  165. Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
  166. Description:
  167. Controls sleep time of GC urgent mode
  168. What: /sys/fs/f2fs/<disk>/readdir_ra
  169. Date: November 2017
  170. Contact: "Sheng Yong" <shengyong1@huawei.com>
  171. Description:
  172. Controls readahead inode block in readdir.
  173. What: /sys/fs/f2fs/<disk>/extension_list
  174. Date: Feburary 2018
  175. Contact: "Chao Yu" <yuchao0@huawei.com>
  176. Description:
  177. Used to control configure extension list:
  178. - Query: cat /sys/fs/f2fs/<disk>/extension_list
  179. - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
  180. - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
  181. - [h] means add/del hot file extension
  182. - [c] means add/del cold file extension