How to change I/O schedule for block device throught udev?

Solution Unverified - Updated -

Issue

  • How to change nr_requests and queue_depth for block device through udev?
  • Want to set nr_requests and queue_depth as below, but the disk name may be changed some time, so want to achieve it by udev.
# echo 64 > /sys/block/sdab/device/queue_depth
# echo 1024 > /sys/block/sdab/queue/nr_requests

Environment

  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.