/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/openib-mount/tune-ddn.sh.cin
ViewVC logotype

Contents of /trunk/nl.nikhef.ndpf.tools/openib-mount/tune-ddn.sh.cin

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1183 - (show annotations) (download)
Wed Nov 25 15:22:28 2009 UTC (12 years, 10 months ago) by tsuerink
File size: 1730 byte(s)
adding the tune script for ddn stuff
1 #!/bin/sh
2
3 UNIT=$1
4 DEVICE=$2
5
6 max_hw_sectors=`cat /sys/block/${DEVICE}/queue/max_hw_sectors_kb`
7
8 EF2915_TIMEOUT=120
9
10 EF3010_TIMEOUT=90
11
12
13 S2A9900_TIMEOUT=69
14 S2A9900_nr_requests=8192
15 S2A9900_scheduler=deadline
16 S2A9900_max_sectors=$max_hw_sectors
17 S2A9900_ra=4096 # read_ahead_kb, real tuning required
18
19 S2A9550_TIMEOUT=70
20 S2A9550_nr_requests=8192
21 S2A9550_scheduler=deadline
22 S2A9550_max_sectors=$max_hw_sectors
23 S2A9550_ra=8192 # read_ahead_kb, real tuning required
24
25
26
27 # Config file to overwrite defaults
28 config_file=/etc/ddn/raid_settings.sh
29 if [ -f $config_file ]; then
30 source /etc/ddn/raid_settings.sh
31 fi
32
33 case "$UNIT" in
34 EF2915)
35 echo $EF2915_TIMEOUT >/sys/block/${DEVICE}/device/timeout
36 ;;
37 EF3010)
38 echo $EF3010_TIMEOUT >/sys/block/${DEVICE}/device/timeout
39 ;;
40 S2A9900)
41 echo $S2A9900_TIMEOUT >/sys/block/${DEVICE}/device/timeout
42 echo $S2A9900_max_sectors >/sys/block/${DEVICE}/queue/max_sectors_kb
43 echo $S2A9900_nr_requests >/sys/block/${DEVICE}/queue/nr_requests
44 echo $S2A9900_scheduler >/sys/block/${DEVICE}/queue/scheduler
45 /sbin/blockdev --setra $S2A9900_ra /dev/${DEVICE}
46 ;;
47 S2A9550)
48 echo $S2A9550_TIMEOUT >/sys/block/${DEVICE}/device/timeout
49 echo $S2A9550_max_sectors >/sys/block/${DEVICE}/queue/max_sectors_kb
50 echo $S2A9550_nr_requests >/sys/block/${DEVICE}/queue/nr_requests
51 echo $S2A9550_scheduler >/sys/block/${DEVICE}/queue/scheduler
52 /sbin/blockdev --setra $S2A9900_ra /dev/${DEVICE}
53 ;;
54 *)
55 echo "Unknown unit \"$UNIT\""
56 esac
57
58

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28