sysfs-class-bdi 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. MAJOR:MINOR-fuseblk
  13. Value of st_dev on fuseblk filesystems.
  14. default
  15. The default backing dev, used for non-block device backed
  16. filesystems which do not provide their own BDI.
  17. Files under /sys/class/bdi/<bdi>/
  18. ---------------------------------
  19. read_ahead_kb (read-write)
  20. Size of the read-ahead window in kilobytes
  21. min_ratio (read-write)
  22. Under normal circumstances each device is given a part of the
  23. total write-back cache that relates to its current average
  24. writeout speed in relation to the other devices.
  25. The 'min_ratio' parameter allows assigning a minimum
  26. percentage of the write-back cache to a particular device.
  27. For example, this is useful for providing a minimum QoS.
  28. max_ratio (read-write)
  29. Allows limiting a particular device to use not more than the
  30. given percentage of the write-back cache. This is useful in
  31. situations where we want to avoid one device taking all or
  32. most of the write-back cache. For example in case of an NFS
  33. mount that is prone to get stuck, or a FUSE mount which cannot
  34. be trusted to play fair.
  35. stable_pages_required (read-only)
  36. If set, the backing device requires that all pages comprising a write
  37. request must not be changed until writeout is complete.