Path: blob/master/Documentation/block/queue-sysfs.txt
10821 views
Queue sysfs files1=================23This text file will detail the queue files that are located in the sysfs tree4for each block device. Note that stacked devices typically do not export5any settings, since their queue merely functions are a remapping target.6These files are the ones found in the /sys/block/xxx/queue/ directory.78Files denoted with a RO postfix are readonly and the RW postfix means9read-write.1011hw_sector_size (RO)12-------------------13This is the hardware sector size of the device, in bytes.1415max_hw_sectors_kb (RO)16----------------------17This is the maximum number of kilobytes supported in a single data transfer.1819max_sectors_kb (RW)20-------------------21This is the maximum number of kilobytes that the block layer will allow22for a filesystem request. Must be smaller than or equal to the maximum23size allowed by the hardware.2425nomerges (RW)26-------------27This enables the user to disable the lookup logic involved with IO28merging requests in the block layer. By default (0) all merges are29enabled. When set to 1 only simple one-hit merges will be tried. When30set to 2 no merge algorithms will be tried (including one-hit or more31complex tree/hash lookups).3233nr_requests (RW)34----------------35This controls how many requests may be allocated in the block layer for36read or write requests. Note that the total allocated number may be twice37this amount, since it applies only to reads or writes (not the accumulated38sum).3940read_ahead_kb (RW)41------------------42Maximum number of kilobytes to read-ahead for filesystems on this block43device.4445rq_affinity (RW)46----------------47If this option is enabled, the block layer will migrate request completions48to the CPU that originally submitted the request. For some workloads49this provides a significant reduction in CPU cycles due to caching effects.5051scheduler (RW)52--------------53When read, this file will display the current and available IO schedulers54for this block device. The currently active IO scheduler will be enclosed55in [] brackets. Writing an IO scheduler name to this file will switch56control of this block device to that new IO scheduler. Note that writing57an IO scheduler name to this file will attempt to load that IO scheduler58module, if it isn't already present in the system.59606162Jens Axboe <[email protected]>, February 2009636465