Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239653

Re: smart fans

Path csiph.com!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Emanuel Berg <moasenwood@zoho.eu>
Newsgroups linux.debian.user
Subject Re: smart fans
Date Sat, 04 Sep 2021 00:10:01 +0200
Message-ID <CTpxL-2OF-1@gated-at.bofh.it> (permalink)
References <COJ46-2g1-13@gated-at.bofh.it> <COQoV-6VM-3@gated-at.bofh.it> <COQyB-6YX-1@gated-at.bofh.it> <CP1km-5sn-3@gated-at.bofh.it> <CP3vP-6Gx-5@gated-at.bofh.it> <CP3Pb-74q-1@gated-at.bofh.it> <CP5xD-7Wp-1@gated-at.bofh.it> <CP6N3-oP-1@gated-at.bofh.it> <CPnkT-26c-21@gated-at.bofh.it> <CPqsq-49v-5@gated-at.bofh.it> <CPsaR-5e0-3@gated-at.bofh.it> <CPtTj-6b9-1@gated-at.bofh.it> <CPxay-8tD-1@gated-at.bofh.it> <CPzm1-1tF-3@gated-at.bofh.it> <CPMVY-1VZ-5@gated-at.bofh.it> <CPO1I-2xD-3@gated-at.bofh.it> <CRfsS-gg-9@gated-at.bofh.it> <CRpLz-6Xs-5@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Fri Sep 3 22:05:58 2021
Old-Return-Path <gldu-debian-user-2@m.gmane-mx.org>
X-Amavis-Spam-Status No, score=-6.25 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, MONEY=0.5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
X-Injected-Via-Gmane http://gmane.org/
Mail-Followup-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cancel-Lock sha1:T1+gIGgQOx7uXHoKpjVI5Yy4sbY=
Mail-Copies-To never
X-Mailing-List <debian-user@lists.debian.org> archive/latest/780355
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/87a6ktjowo.fsf@zoho.eu
Approved robomod@news.nic.it
Lines 148
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 04 Sep 2021 00:05:27 +0200
X-Original-Message-ID <87a6ktjowo.fsf@zoho.eu>
X-Original-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>
Xref csiph.com linux.debian.user:239653

Show key headers only | View raw


David Christensen wrote:

> Feeding the raw data into LibreOffice Calc was problematic
> -- header line field names do not have a one-to-one with
> data line field values. I reworked the header line as
> follows:
>
> 	time, governor, processes, CPU_temperature, system_load,
> 	CPU_fan_speed, core1_freq, core2_freq, core3_freq,
> 	core4_freq

OK, changed.

> 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?

> The "CPU_fan_speed" was 0 throughout. Your data collection
> code for that field value is broken.

That's what's reported by sensors(1), I don't know how else
one would retrieve that information?

> 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 ... ?

> After each loading cycle, the load processes must be killed.

OK.

> Incremental load period -- the output variables must have
> reached their steady-state values when each incremental load
> period ends (10 loops * 6 seconds). Adjust and/or
> code accordingly.

Again I don't understand why that isn't what

  repeat 10 {
    sleep 6
    cpu-stats
  }

does?

> Have you isolated and identified the primary noise
> source(s)? Have you quantified them (e.g.
> sound measurement)?

No?

> Can you get that data into your test script?

I don't know?

Anyway here is the new script with a URL to the output:

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/cpu
#
# example output:
#   https://dataswamp.org/~incal/ebchw/cpu.txt

cpu-stats-print () {
    local time=$1
    local gov=$2
    local pro=$3
    local temp=$4
    local load=$5
    local fan=$6
    shift 6
    local freq=($@)
    echo -n "${time}, ${gov}, ${pro}, ${temp}, ${load}, ${fan}"
    for f in $freq; do
        echo -n ", $f"
    done
    echo
}

cpu-stats () {
    local time=$(date +%s)
    local gov=$(cpufreq-info -p | awk '{print $3}')
    local pro=$(ps -ea | wc -l) # 'jobs -l' DNC
    local temp=$(sensors -j | jq -a '.["k10temp-pci-00c3"].Tdie.temp1_input')
    local load=$(awk '{print $1}' /proc/loadavg)
    local fan=$(sensors | awk '/cpu_fan/{print $2}') # always 0
    local freq=("${(@f)$(awk '/cpu MHz/{print $4}' /proc/cpuinfo)}")
    cpu-stats-print $time $gov $pro $temp $load $fan $freq
}

test-cpu () {
    echo -n "time, governor, processes, CPU_temperature, system_load, CPU_fan_speed"
    local cores=$(getconf _NPROCESSORS_ONLN)
    for c in {1..$cores}; do
        echo -n ", core${c}_freq"
    done
    echo

    local ori=$(cpufreq-info -p | awk '{print $3}')
    local pids
    local g
    local p
    for g in $(cpufreq-info -g); do
        pids=()
        sudo cpufreq-set -g $g
        repeat 3 {
            sleep 60
            cpu-stats
        }
        repeat $cores {
            perl -e '1 while 1' &
            pids+=($!)
            repeat 10 {
                sleep 6
                cpu-stats
            }
        }
        for p in $pids; do
          kill $p
        done
    done
    sudo cpufreq-set -g $ori
}

-- 
underground experts united
https://dataswamp.org/~incal

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 02:00 +0200
  Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 02:50 +0200
    Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 03:10 +0200
      Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 05:00 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 05:10 +0200
      Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 05:10 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 05:30 +0200
          Re: FOSS "BIOS" (UEFI) (was: Re: smart fans) Reco <recoverym4n@enotuniq.net> - 2021-08-22 07:30 +0200
            Re: FOSS "BIOS" (UEFI) (was: Re: smart fans) Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 08:30 +0200
              Re: FOSS "BIOS" (UEFI) (was: Re: smart fans) Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:30 +0200
              Re: FOSS "BIOS" (UEFI) The Wanderer <wanderer@fastmail.fm> - 2021-08-22 12:10 +0200
                Re: FOSS "BIOS" (UEFI) Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 13:30 +0200
              Re: FOSS "BIOS" (UEFI) (was: Re: smart fans) Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 15:20 +0200
                Re: FOSS "BIOS" (UEFI) (was: Re: smart fans) Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 16:30 +0200
                Re: FOSS "BIOS" (UEFI) (was: Re: smart fans) Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 18:50 +0200
          FOSS "BIOS" (UEFI) (was: Re: smart fans) Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 07:30 +0200
  Re: smart fans <tomas@tuxteam.de> - 2021-08-22 09:10 +0200
    Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 09:50 +0200
      Re: smart fans <tomas@tuxteam.de> - 2021-08-22 10:00 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:10 +0200
          Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 10:10 +0200
            Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:20 +0200
          Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 10:30 +0200
            Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:50 +0200
              Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 15:10 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 16:10 +0200
                Re: smart fans The Wanderer <wanderer@fastmail.fm> - 2021-08-22 16:10 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 16:20 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 18:50 +0200
      Re: smart fans Hans <hans.ullrich@loop.de> - 2021-08-22 17:30 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 17:50 +0200
  Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-22 09:50 +0200
    Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:00 +0200
      Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 10:20 +0200
      Re: smart fans <tomas@tuxteam.de> - 2021-08-22 10:30 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:40 +0200
        Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 10:40 +0200
          Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 10:40 +0200
            Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 10:50 +0200
              Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 11:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 11:50 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 15:10 +0200
                Re: smart fans didier gaumet <didier.gaumet@gmail.com> - 2021-08-22 11:50 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 15:10 +0200
              Re: smart fans didier gaumet <didier.gaumet@gmail.com> - 2021-08-22 11:30 +0200
          Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 11:00 +0200
            Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 15:10 +0200
              Re: smart fans <tomas@tuxteam.de> - 2021-08-22 15:50 +0200
                Re: smart fans rhkramer@gmail.com - 2021-08-22 16:10 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 16:50 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 16:10 +0200
                Re: smart fans <tomas@tuxteam.de> - 2021-08-22 16:30 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 18:50 +0200
                Re: smart fans Gene Heskett <gheskett@shentel.net> - 2021-08-22 23:10 +0200
                Re: smart fans Gene Heskett <gheskett@shentel.net> - 2021-08-23 00:20 +0200
                Re: smart fans "Thomas Schmitt" <scdbackup@gmx.net> - 2021-08-22 16:30 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 18:50 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-22 19:00 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-22 23:10 +0200
                Re: smart fans <tomas@tuxteam.de> - 2021-08-23 10:10 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 21:10 +0200
                Re: smart fans <tomas@tuxteam.de> - 2021-08-23 21:10 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-23 21:30 +0200
                Re: smart fans <tomas@tuxteam.de> - 2021-08-23 21:40 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 22:30 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 00:30 +0200
            Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-22 22:30 +0200
              Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 23:20 +0200
      Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-22 21:30 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 22:00 +0200
          Re: smart fans didier gaumet <didier.gaumet@gmail.com> - 2021-08-22 23:20 +0200
            Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 23:40 +0200
              Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-22 23:50 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-23 00:40 +0200
              Re: smart fans didier gaumet <didier.gaumet@gmail.com> - 2021-08-23 09:30 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 22:20 +0200
          Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-22 23:10 +0200
            Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 23:30 +0200
        Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-22 23:50 +0200
          Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-23 00:10 +0200
            Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 02:00 +0200
              Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 02:10 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 02:40 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 03:00 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-23 03:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 21:00 +0200
                Re: smart fans "Andrew M.A. Cater" <amacater@einval.com> - 2021-08-24 18:20 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 23:00 +0200
                Re: smart fans Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-08-23 03:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 21:00 +0200
              Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-23 03:20 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 21:00 +0200
                Re: smart fans "Thomas Schmitt" <scdbackup@gmx.net> - 2021-08-23 22:50 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-23 23:00 +0200
                Re: smart fans "Thomas Schmitt" <scdbackup@gmx.net> - 2021-08-23 23:30 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 00:50 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 01:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 02:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 03:00 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 04:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 05:20 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 09:00 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 23:20 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 23:40 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 00:40 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 00:20 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 02:10 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 04:00 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-24 07:30 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 09:50 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-25 00:20 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-25 01:30 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-08-29 01:00 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-29 12:00 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-09-04 00:10 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-09-04 03:50 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-09-04 04:50 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-09-04 23:00 +0200
                Re: smart fans Emanuel Berg <moasenwood@zoho.eu> - 2021-09-07 03:10 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-09-07 23:20 +0200
                Re: smart fans David Christensen <dpchrist@holgerdanske.com> - 2021-08-24 11:20 +0200

csiph-web