Software: Apache. PHP/5.6.40 uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) Safe-mode: OFF (not secure) /lib/udev/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # # For the request-based multipath driver, the I/O scheduler runs on the # multipath device, not the underlying "slave" devices. This script # checks the ID_BUS attribute for each of the slave devices. If it finds # an ata device, it leaves the I/O scheduler tunings alone. For any other # device, we tune the I/O scheduler to try to keep the device busy. # PATH=/sbin:$PATH needs_tuning=1 for slave in /sys${DEVPATH}/slaves/*; do bus_type=$(udevadm info --query=property --path=$slave | grep ID_BUS | awk -F= '{print $2}') if [ "$bus_type" = "ata" ]; then needs_tuning=0 break fi done if [ $needs_tuning -eq 1 ]; then echo 0 > /sys${DEVPATH}/queue/iosched/slice_idle echo 32 > /sys${DEVPATH}/queue/iosched/quantum fi exit 0 |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0101 ]-- |