-
Notifications
You must be signed in to change notification settings - Fork 79
/
linux_performance_tweeks.txt
34 lines (20 loc) · 1.66 KB
/
linux_performance_tweeks.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-agentpath:/usr/share/sdfs/linux-x86-128/libyjpagent.so=port=9000 \
for i in $(echo {e..z}); do (echo n; echo p; echo 1; echo 2048; echo 2145386495; echo t;echo fd;echo w) | fdisk /dev/sd$i; done
for i in $(echo {a..h}); do (echo n; echo p; echo 1; echo 2048; echo 2145386495; echo t;echo fd;echo w) | fdisk /dev/sda$i; done
for i in $(echo {a..z}); do cat /sys/block/sd$i/queue/scheduler; done
for i in $(echo {a..z}); do echo deadline > /sys/block/sd$i/queue/scheduler; done
for i in $(echo {a..z}); do cat /sys/block/sd$i/queue/scheduler; done
for i in $(echo {a..z}); do echo 24 > /sys/block/sd$i/queue/nr_requests; done
for i in $(echo {a..h}); do echo 24 > /sys/block/sda$i/queue/nr_requests; done
for i in $(echo {a..z}); do cat /sys/block/sd$i/queue/nr_requests; done
for i in $(echo {a..g}); do cat /sys/block/sda$i/queue/nr_requests; done
for i in $(echo {a..z}); do echo 0 > /sys/block/sd$i/queue/add_random; done
for i in $(echo {a..g}); do echo 0 > /sys/block/sda$i/queue/add_random; done
for i in $(echo {a..z}); do cat /sys/block/sd$i/queue/add_random; done
for i in $(echo {a..g}); do cat /sys/block/sda$i/queue/add_random; done
for i in $(echo {a..z}); do echo 0 > /sys/block/sd$i/queue/rq_affinity; done
for i in $(echo {a..g}); do echo 0 > /sys/block/sda$i/queue/rq_affinity; done
for i in $(echo {a..z}); do cat /sys/block/sd$i/queue/rq_affinity; done
for i in $(echo {a..g}); do cat /sys/block/sda$i/queue/rq_affinity; done
for i in $(echo {a..i}); do sdfscli --snapshot --snapshot-path bu$i --file-path bu; done
-agentpath:/usr/share/sdfs/bin/libyjpagent.so=port=9000 \