Skip to content

Commit

Permalink
include FIXMEs on my roadmap
Browse files Browse the repository at this point in the history
  • Loading branch information
spacelama committed Dec 20, 2019
1 parent 0511c32 commit 1e4fb44
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R710-IPMI-TEMP/fan-speed-control.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
use List::MoreUtils qw( apply );

my $static_speed_low=0x04;
my $static_speed_high=0x26;
my $static_speed_high=0x26; # this is the speed value at 100% demand
# ie what we consider the point we don't
# really want to get hotter but still
# tolerate
my $ipmi_inlet_sensorname="Inlet Temp";

my $default_threshold=32; # the ambient temperature we use above
Expand Down Expand Up @@ -106,6 +109,9 @@ sub set_fans_servo {
if ($demand>255) {
$demand=255;
}
# ramp down the fans quickly upon lack of demand, don't ramp them up
# to tiny spikes of 1 fan unit. FIXME: But should implement long
# term smoothing of +/- 1 fan unit
if (!defined $lastfan or $demand < $lastfan or $demand > $lastfan + 1) {
$lastfan = $demand;
$demand = sprintf("0x%x", $demand);
Expand Down Expand Up @@ -139,6 +145,9 @@ sub set_fans_servo {
@coretemps = apply { s/.*: *([^ ]*)°C.*/$1/ } @coretemps;
@ambient_ipmitemps = apply { s/.*\| ([^ ]*) degrees C.*/$1/ } @ambient_ipmitemps;
@hddtemps = apply { s/.*: *([^ ]*)°C.*/$1/ } @hddtemps;
#FIXME: it is more important to keep hdds cool than CPUs. We should
#put differnt offsets on them - possibly as easily as adding "10" to
#hddtemp (but need to work out how to keep log output sane)

print "\n";

Expand Down

0 comments on commit 1e4fb44

Please sign in to comment.