queue-sysfs.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Queue sysfs files
  2. =================
  3. This text file will detail the queue files that are located in the sysfs tree
  4. for each block device. Note that stacked devices typically do not export
  5. any settings, since their queue merely functions are a remapping target.
  6. These files are the ones found in the /sys/block/xxx/queue/ directory.
  7. Files denoted with a RO postfix are readonly and the RW postfix means
  8. read-write.
  9. hw_sector_size (RO)
  10. -------------------
  11. This is the hardware sector size of the device, in bytes.
  12. max_hw_sectors_kb (RO)
  13. ----------------------
  14. This is the maximum number of kilobytes supported in a single data transfer.
  15. max_sectors_kb (RW)
  16. -------------------
  17. This is the maximum number of kilobytes that the block layer will allow
  18. for a filesystem request. Must be smaller than or equal to the maximum
  19. size allowed by the hardware.
  20. nomerges (RW)
  21. -------------
  22. This enables the user to disable the lookup logic involved with IO
  23. merging requests in the block layer. By default (0) all merges are
  24. enabled. When set to 1 only simple one-hit merges will be tried. When
  25. set to 2 no merge algorithms will be tried (including one-hit or more
  26. complex tree/hash lookups).
  27. nr_requests (RW)
  28. ----------------
  29. This controls how many requests may be allocated in the block layer for
  30. read or write requests. Note that the total allocated number may be twice
  31. this amount, since it applies only to reads or writes (not the accumulated
  32. sum).
  33. read_ahead_kb (RW)
  34. ------------------
  35. Maximum number of kilobytes to read-ahead for filesystems on this block
  36. device.
  37. rq_affinity (RW)
  38. ----------------
  39. If this option is '1', the block layer will migrate request completions to the
  40. cpu "group" that originally submitted the request. For some workloads this
  41. provides a significant reduction in CPU cycles due to caching effects.
  42. For storage configurations that need to maximize distribution of completion
  43. processing setting this option to '2' forces the completion to run on the
  44. requesting cpu (bypassing the "group" aggregation logic).
  45. scheduler (RW)
  46. --------------
  47. When read, this file will display the current and available IO schedulers
  48. for this block device. The currently active IO scheduler will be enclosed
  49. in [] brackets. Writing an IO scheduler name to this file will switch
  50. control of this block device to that new IO scheduler. Note that writing
  51. an IO scheduler name to this file will attempt to load that IO scheduler
  52. module, if it isn't already present in the system.
  53. Jens Axboe <jens.axboe@oracle.com>, February 2009