forked from glorious1/spin_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinpid.config
executable file
·52 lines (37 loc) · 1.87 KB
/
spinpid.config
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/local/bin/bash
# Configuration file for spinpid.sh beginning version 2020-06-17, for Supermicro boards with single fan zone
DUTY_MIN=20 # Fan minimum duty cycle (%) (to avoid stalling)
################# IPMITOOL ################
# Path to ipmitool. If you're doing VM
# you may need to add (inside quotes) the following to
# remotely execute commands.
# -H <hostname/ip> -U <username> -P <password>
IPMITOOL="/usr/local/bin/ipmitool"
################# OUTPUT SETTINGS ################
# Change to your desired log location/name:
# LOG=/mnt/MyPool/MyDataSet/MyDirectory/spinpid.log
# Where do you want output to go? Comment/uncomment (#) to select.
# First sends output to the log file AND to the console, good for testing.
# Second sends it only to the log file, so no feedback if running manually, but it won't take over the console.
# In the first, if you want to append to existing log, add '-a' to the tee command.
exec > >(tee -i $LOG) 2>&1 # Log + console
# exec &> $LOG # Log only
################# DRIVE SETTINGS ################
SP=33.57 # Setpoint mean drive temperature (C)
# Time interval for checking drives (minutes). Drives change
# temperature slowly; 5 minutes is probably frequent enough.
DRIVE_T=5
Kp=4 # Proportional tunable constant (for drives)
Kd=40 # Derivative tunable constant (for drives)
################# CPU SETTINGS ################
# Time interval for checking CPU (seconds).
# 1 to 12 may be appropriate.
CPU_T=5
# Reference temperature (C) for scaling CPU_DUTY (NOT a setpoint).
# At and below this temperature, CPU will demand minimum
# fan speed (drive temp or DUTY_MIN above will control fans).
CPU_REF=54 # Integer only!
# Scalar for scaling CPU_DUTY.
# CPU will demand this number of percentage points in additional
# duty cycle for each degree of temperature above CPU_REF.
CPU_SCALE=6 # Integer only!