Re: smart fans
- To: debian-user@lists.debian.org
- Subject: Re: smart fans
- From: David Christensen <dpchrist@holgerdanske.com>
- Date: Fri, 3 Sep 2021 18:45:54 -0700
- Message-id: <[🔎] 9ce6b322-1a0c-fe9a-1364-6c418d77e1e4@holgerdanske.com>
- In-reply-to: <[🔎] 87a6ktjowo.fsf@zoho.eu>
- References: <87mtpa1hjv.fsf@zoho.eu> <1966905d-a099-e45f-0fd3-40162d2c190a@holgerdanske.com> <87y28tx68s.fsf@zoho.eu> <ff7e532c-9e31-a1c8-8a76-0a4ef2e7c5b6@holgerdanske.com> <87mtp940pv.fsf@zoho.eu> <7dc4cfda-7c81-1c5f-bf32-47b081cada84@holgerdanske.com> <875yvx3udi.fsf@zoho.eu> <d64b65b6-bc84-7b3d-4a5a-af88963c36f7@holgerdanske.com> <8735r0rokn.fsf@zoho.eu> <b6eba018-6f5b-880a-45f5-6f2ab73d72a8@holgerdanske.com> <87o89npv0l.fsf@zoho.eu> <c356c15b-3006-54ba-a6d8-205564c0bece@holgerdanske.com> <8735qzpg7d.fsf@zoho.eu> <53479267-5406-f873-6df4-8318d2528be9@holgerdanske.com> <87ilzumqsb.fsf@zoho.eu> <b5d0eb71-89c0-7145-787b-c5f906c7b324@holgerdanske.com> <87sfyt9o1x.fsf@zoho.eu> <f064ecef-1e52-7d9d-c64f-679f22b30131@holgerdanske.com> <[🔎] 87a6ktjowo.fsf@zoho.eu>
On 9/3/21 3:05 PM, Emanuel Berg wrote:
David Christensen wrote:
Feeding the raw data into LibreOffice Calc was problematic
<snip>
OK, changed.
Your data format still has issues. This is what LibreOffice Calc wants:
time,governor,processes,CPU_temperature,system_load,CPU_fan_speed,core1_freq,core2_freq,core3_freq,core4_freq
1630072652,conservative,157,33.25,0,0,1685.535,1416.164,3029.758,1415.421
1630072712,conservative,157,33.25,0,0,1537.245,1402.528,3118.173,1286.09
1630072772,conservative,157,33.25,0.06,0,1426.077,1356.078,1358.613,3049.18
Note:
1. No extraneous characters anywhere -- e.g. spaces.
2. No spaces in column names; use underscores and abbreviations.
3. One column name for each and every column.
4. Number of columns is same in every row.
5. Commas (field separator) between every row item.
5. Newlines (record separator) at the end of every row.
The system *must* be otherwise idle before and during the
test. The data indicates it was not.
I didn't use the computer and there was no download or
anything explicit run by me in the background, so I don't know
what more to do in that regard?
Then the "cpu-stats" function must be causing the spikes in the
"core*_freq" values, by the several child processes it creates in rapid
succession. Get rid of the useless CPU_fan_speed call. Insert a 1
second sleep ahead of each of the remaining data point collection calls.
Adjust the iteration counts and the sleep times in the calling loops
to compensate.
<snip>
There is supposed to be a cool-down delay at the start of
each governor sub-run. My WAG was 3 minutes. Your test did 2
minutes (off by 1 error).
Weird, if you mean this part of the pseudocode
loop 3 times
sleep 60 seconds
print statistics
endloop
then that's this part of the zsh code
repeat 3 {
sleep 60
cpu-stats
}
so I don't know what that isn't 3 minutes ... ?
I was off-by-one -- there is no "print statistics" at the top of the
script, which means the first data row comes out after 60 seconds.
Please add a 10 second sleep and a call to "cpu-stats" prior to the
governor loop.
But, a fundamental reality is the Nyquist–Shannon sampling theorem:
https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem
Each of the data points your script is collecting has some signal
processing behind it; notably a sampling period. Please RTFM and see if
you can determine the periods of the CPU temperature sensor readings and
the core frequency readings, and if you can adjust those periods so that
they are longer than your data collection period.
It might be best to rework the loops so that the data collection period
is constant throughout the entire test.
After each loading cycle, the load processes must be killed.
OK.
Looking at the "processes", "system_load", and "core*_freq" fields, the
overall test data indicates that the "conservative" sub-run loaded the
machine to 100% and that the loading processes never were killed. The
second and subsequent governor sub-runs just added more load. Debug the
code related to "pids" and kill.
<snip>
Have you isolated and identified the primary noise
source(s)? Have you quantified them (e.g.
sound measurement)?
No?
If the loudest sound source is the PSU or GPU fan, then tuning the CPU
and/or chassis fans isn't going to help.
<snip>
David
Reply to: