caveman8
January 2nd, 2009, 12:55 PM
I'm trying to change the string within
"/sys/block/sda/queue/nr_requests"
from 128 to 512 in order to improve performance of a recently installed 3ware hardware RAID controller.
Whenever I attempt to do so I get an error message.
Below is the command I used and the result:
joe@hilltop:/$ sudo echo 512 > /sys/block/sda/queue/nr_requests
-bash: /sys/block/sda/queue/nr_requests: Permission denied
I am able to edit the file directly if I open it with an editor. However, those edits do not survive across server reboots.
Since I originally ran in to this I have discovered that Ubuntu doesn't allow echoing values to this file. Instead, one is supposed to edit the sysctl.conf file. This would work, except that I am unable to find the appropriate tokens to add or edit.
Thus my question boils down to: how can I edit the value of
/sys/block/sda/queue/nr_requests
so as to have it retain the new value across reboots?
Thanks for any help on this.
I'm running Ubuntu server 8.04, 64 bit.
Thanks again,
Caveman8
"/sys/block/sda/queue/nr_requests"
from 128 to 512 in order to improve performance of a recently installed 3ware hardware RAID controller.
Whenever I attempt to do so I get an error message.
Below is the command I used and the result:
joe@hilltop:/$ sudo echo 512 > /sys/block/sda/queue/nr_requests
-bash: /sys/block/sda/queue/nr_requests: Permission denied
I am able to edit the file directly if I open it with an editor. However, those edits do not survive across server reboots.
Since I originally ran in to this I have discovered that Ubuntu doesn't allow echoing values to this file. Instead, one is supposed to edit the sysctl.conf file. This would work, except that I am unable to find the appropriate tokens to add or edit.
Thus my question boils down to: how can I edit the value of
/sys/block/sda/queue/nr_requests
so as to have it retain the new value across reboots?
Thanks for any help on this.
I'm running Ubuntu server 8.04, 64 bit.
Thanks again,
Caveman8