cpufreq
cpufreq copied to clipboard
10sec+ delay when opening app
On my system it takes longer than 10sec to open the preference UI. I had issues with pkexec earlier but was able to fix those (see https://gitlab.freedesktop.org/polkit/polkit/issues/87).
Appended is a log which shows the time between the different commands are invoked. Any idea what could cause this? If I invoke the commands with pkexec in the terminal they return quickly:
time pkexec --user root /usr/bin/cpufreqctl on 10
Power on CPU Core10
pkexec --user root /usr/bin/cpufreqctl on 10 0.03s user 0.01s system 67% cpu 0.047 total
Jul 30 12:08:13 nk-zbook pkexec[11868]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:13 nk-zbook pkexec[11868]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 3]
Jul 30 12:08:14 nk-zbook pkexec[11895]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:14 nk-zbook pkexec[11895]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 4]
Jul 30 12:08:14 nk-zbook pkexec[11904]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:14 nk-zbook pkexec[11904]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 5]
Jul 30 12:08:15 nk-zbook pkexec[11911]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:15 nk-zbook pkexec[11911]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 6]
Jul 30 12:08:16 nk-zbook pkexec[11925]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:16 nk-zbook pkexec[11925]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 7]
Jul 30 12:08:17 nk-zbook pkexec[11932]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:17 nk-zbook pkexec[11932]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 8]
Jul 30 12:08:17 nk-zbook kernel: smpboot: Booting Node 0 Processor 8 APIC 0x5
Jul 30 12:08:18 nk-zbook pkexec[11942]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:18 nk-zbook pkexec[11942]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 9]
Jul 30 12:08:18 nk-zbook kernel: smpboot: Booting Node 0 Processor 9 APIC 0x7
Jul 30 12:08:19 nk-zbook pkexec[11949]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:19 nk-zbook pkexec[11949]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 10]
Jul 30 12:08:19 nk-zbook kernel: smpboot: Booting Node 0 Processor 10 APIC 0x9
Jul 30 12:08:20 nk-zbook pkexec[11956]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:20 nk-zbook pkexec[11956]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 11]
Jul 30 12:08:20 nk-zbook kernel: smpboot: Booting Node 0 Processor 11 APIC 0xb
Jul 30 12:08:21 nk-zbook pkexec[11965]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:21 nk-zbook pkexec[11965]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl min 0]
Jul 30 12:08:22 nk-zbook pkexec[11972]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:22 nk-zbook pkexec[11972]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl max 100]
Jul 30 12:08:22 nk-zbook pkexec[11979]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:22 nk-zbook pkexec[11979]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl turbo 1]
Jul 30 12:08:23 nk-zbook pkexec[11986]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:23 nk-zbook pkexec[11986]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl turbo 1]
Jul 30 12:08:24 nk-zbook pkexec[11993]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:24 nk-zbook pkexec[11993]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 0 performance]
Jul 30 12:08:24 nk-zbook pkexec[12000]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:24 nk-zbook pkexec[12000]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 1 performance]
Jul 30 12:08:25 nk-zbook pkexec[12007]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:25 nk-zbook pkexec[12007]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 2 performance]
Jul 30 12:08:26 nk-zbook pkexec[12019]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:26 nk-zbook pkexec[12019]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 3 performance]
Jul 30 12:08:26 nk-zbook pkexec[12026]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:26 nk-zbook pkexec[12026]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 4 performance]
Jul 30 12:08:27 nk-zbook pkexec[12033]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:27 nk-zbook pkexec[12033]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 5 performance]
Jul 30 12:08:27 nk-zbook pkexec[12040]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:27 nk-zbook pkexec[12040]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 6 performance]
Jul 30 12:08:28 nk-zbook pkexec[12047]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:28 nk-zbook pkexec[12047]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 7 performance]
Jul 30 12:08:29 nk-zbook pkexec[12054]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:29 nk-zbook pkexec[12054]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 8 performance]
Jul 30 12:08:29 nk-zbook pkexec[12061]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:29 nk-zbook pkexec[12061]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 9 performance]
Jul 30 12:08:30 nk-zbook pkexec[12068]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:30 nk-zbook pkexec[12068]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 10 performance]
Jul 30 12:08:31 nk-zbook pkexec[12079]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:31 nk-zbook pkexec[12079]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl coreg 11 performance]
Jul 30 12:08:31 nk-zbook pkexec[12096]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:31 nk-zbook pkexec[12096]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl turbo 0]
Jul 30 12:08:32 nk-zbook pkexec[12103]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:32 nk-zbook pkexec[12103]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl min 50]
Jul 30 12:08:32 nk-zbook pkexec[12117]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:32 nk-zbook pkexec[12117]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl max 100]
Jul 30 12:08:33 nk-zbook pkexec[12124]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:33 nk-zbook pkexec[12124]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 1]
Jul 30 12:08:33 nk-zbook pkexec[12131]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:33 nk-zbook pkexec[12131]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 2]
Jul 30 12:08:33 nk-zbook pkexec[12138]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:33 nk-zbook pkexec[12138]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 3]
Jul 30 12:08:34 nk-zbook pkexec[12145]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:34 nk-zbook pkexec[12145]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 4]
Jul 30 12:08:34 nk-zbook pkexec[12152]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:34 nk-zbook pkexec[12152]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 5]
Jul 30 12:08:35 nk-zbook pkexec[12159]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:35 nk-zbook pkexec[12159]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 6]
Jul 30 12:08:35 nk-zbook pkexec[12166]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:35 nk-zbook pkexec[12166]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 7]
Jul 30 12:08:35 nk-zbook pkexec[12174]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:35 nk-zbook pkexec[12174]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 8]
Jul 30 12:08:36 nk-zbook pkexec[12181]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:36 nk-zbook pkexec[12181]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 9]
Jul 30 12:08:36 nk-zbook pkexec[12188]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:36 nk-zbook pkexec[12188]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 10]
Jul 30 12:08:36 nk-zbook pkexec[12195]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:36 nk-zbook pkexec[12195]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl on 11]
Jul 30 12:08:37 nk-zbook pkexec[12211]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Jul 30 12:08:37 nk-zbook pkexec[12211]: nils: Executing command [USER=root] [TTY=unknown] [CWD=/home/nils] [COMMAND=/usr/bin/cpufreqctl turbo 1]
Unfortunately, I can't reproduce such behaviour. Actually, There are some users with even 128 core threads and there is no issues.
Can you tell about your distro? Maybe I could test it.
Thanks for your report!
I faced the same issue. It takes so long to open app. Distro: Ubuntu 18.04 gnome-shell: 3.28.4-0ubuntu18.04.3 amd64 kernel: 5.3.0-26-generic driver: intel_pstate CPU: Intel(R) Xeon(R) CPU E3-1220 v5 @ 3.00GHz (cores=4 threads=4)