How to change nr_requests or queue_depth for block device throught udev?

Solution Verified - 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, 6, 7, 8, 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content