sysfs-class-bdi 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. What: /sys/class/bdi/<bdi>/
  2. Date: January 2008
  3. Contact: Peter Zijlstra <a.p.zijlstra@chello.nl>
  4. Description:
  5. Provide a place in sysfs for the backing_dev_info object. This allows
  6. setting and retrieving various BDI specific variables.
  7. The <bdi> identifier can be either of the following:
  8. MAJOR:MINOR
  9. Device number for block devices, or value of st_dev on
  10. non-block filesystems which provide their own BDI, such as NFS
  11. and FUSE.
  12. default
  13. The default backing dev, used for non-block device backed
  14. filesystems which do not provide their own BDI.
  15. Files under /sys/class/bdi/<bdi>/
  16. ---------------------------------
  17. read_ahead_kb (read-write)
  18. Size of the read-ahead window in kilobytes
  19. min_ratio (read-write)
  20. Under normal circumstances each device is given a part of the
  21. total write-back cache that relates to its current average
  22. writeout speed in relation to the other devices.
  23. The 'min_ratio' parameter allows assigning a minimum
  24. percentage of the write-back cache to a particular device.
  25. For example, this is useful for providing a minimum QoS.
  26. max_ratio (read-write)
  27. Allows limiting a particular device to use not more than the
  28. given percentage of the write-back cache. This is useful in
  29. situations where we want to avoid one device taking all or
  30. most of the write-back cache. For example in case of an NFS
  31. mount that is prone to get stuck, or a FUSE mount which cannot
  32. be trusted to play fair.