ufs-impaired-storage.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. UFS-Impaired-Storage
  2. ====================
  3. Contents
  4. --------
  5. 1. Overview
  6. 2. Quick reference guide
  7. 3. Detailed information
  8. 1. Overview
  9. -----------
  10. Flash storage performance can be degraded over time due to the storage and
  11. file system aging as well as complicated internal structure.
  12. Impaired Storage emulate degraded storage latencies by adding delay for each
  13. I/O request.
  14. 2. Quick reference guide
  15. ------------------------
  16. * Case1: delay all read requests by 1.5x
  17. echo 150 > /sys/.../impaired/read_delay_percent
  18. echo 1 > /sys/.../impaired/enabled
  19. * Case 2: delay all write requests by 300us
  20. echo 300 > /sys/.../impaired/write_delay_us
  21. echo 1 > /sys/.../impaired/enabled
  22. * Case 3: delay both read and write requests by 2x, then add 100us
  23. echo 200 > /sys/.../impaired/read_delay_percent
  24. echo 200 > /sys/.../impaired/write_delay_percent
  25. echo 100 > /sys/.../impaired/read_delay_us
  26. echo 100 > /sys/.../impaired/write_delay_us
  27. echo 1 > /sys/.../impaired/enabled
  28. * Case 4: emulate impaired read latencies.
  29. echo fragftl > /sys/.../impaired/read_model
  30. echo 1 > /sys/.../impaired/enabled
  31. 3. Detailed information
  32. -----------------------
  33. http://go/impairedstorage