Public bug reported:

I am using Linux Mint 21.3, with gnome-system-monitor 42.0 (gnome-
system-monitor/jammy,jammy,now 42.0-1 amd64 [installed]). I have a
laptop with `12th Gen Intel(R) Core(TM) i5-12500H` CPU.

For power-saving reason, I parked some of the cores when the laptop is
on battery.

```
CPU(s):                   16
  On-line CPU(s) list:    0,2,4,6,8,10
  Off-line CPU(s) list:   1,3,5,7,9,11-15
```

When running `stress`, `glances` shows that the 6 active cores are all
fully in use:

```
Ajax-Laptop (Linux Mint 21.3 64bit / Linux 6.8.0-45-generic)    Uptime: 11:54:44

                CPU -   100.0%   MEM -   26.0%   SWAP -    0.0%   LOAD    6-core
CPU  [100.0%]   user     99.3%   total   15.2G   total    7.63G   1 min:    5.41
MEM  [ 26.0%]   system    0.7%   used    3.97G   used         0   5 min:    1.96
SWAP [  0.0%]   iowait    0.0%   free    11.3G   free     7.63G   15 min:   1.33

NETWORK       Rx/s   Tx/s   TASKS 405 (1152 thr), 13 run, 238 slp, 154 oth 
lo            768b   768b
wlo1          888b    1Kb   CPU%   MEM%      PID USER       THR  NI S 
                            >59.3  0.0     10363 ajax       1     0 R stress -c
DefaultGateway        8ms    55.0  0.0     10359 ajax       1     0 R stress -c
                             53.3  0.0     10356 ajax       1     0 R stress -c
DISK I/O      R/s    W/s     51.4  0.0     10361 ajax       1     0 R stress -c
nvme0n1          0    59K    50.9  0.0     10365 ajax       1     0 R stress -c
nvme0n1p1        0      0    47.4  0.0     10366 ajax       1     0 R stress -c
nvme0n1p2        0      0    45.7  0.0     10364 ajax       1     0 R stress -c
nvme0n1p3        0    59K    44.3  0.0     10355 ajax       1     0 R stress -c
                             43.8  0.0     10360 ajax       1     0 R stress -c
FILE SYS      Used  Total    43.6  0.0     10358 ajax       1     0 R stress -c
/             278G   930G    43.1  0.0     10357 ajax       1     0 R stress -c

SENSORS                     High CPU user mode
2024-10-05 11:23:40 CST7C   2024-10-05 11:23:12 (ongoing) - CPU_TOTAL (100.0)
```

However, the gnome system monitor thinks only `CPU1` is active, `CPU2-6`
are idle with 0% usage in resources panel. After some debugging, it
seems that gnome-system-monitor recognizes the active CPU count, but if
one CPU is parked, all subsequent CPU usage is reported as 0.

For example, if I only park cpu1, then gnome-system-monitor can only
recognize cpu0 usage (CPU1 on the panel); but if I park cpu15, usage of
cpu0-14 is displayed correctly.

** Affects: gnome-system-monitor (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-system-monitor in Ubuntu.
https://bugs.launchpad.net/bugs/2083729

Title:
  Gnome system monitor reports incorrect CPU usage when a CPU is parked

Status in gnome-system-monitor package in Ubuntu:
  New

Bug description:
  I am using Linux Mint 21.3, with gnome-system-monitor 42.0 (gnome-
  system-monitor/jammy,jammy,now 42.0-1 amd64 [installed]). I have a
  laptop with `12th Gen Intel(R) Core(TM) i5-12500H` CPU.

  For power-saving reason, I parked some of the cores when the laptop is
  on battery.

  ```
  CPU(s):                   16
    On-line CPU(s) list:    0,2,4,6,8,10
    Off-line CPU(s) list:   1,3,5,7,9,11-15
  ```

  When running `stress`, `glances` shows that the 6 active cores are all
  fully in use:

  ```
  Ajax-Laptop (Linux Mint 21.3 64bit / Linux 6.8.0-45-generic)    Uptime: 
11:54:44

                  CPU -   100.0%   MEM -   26.0%   SWAP -    0.0%   LOAD    
6-core
  CPU  [100.0%]   user     99.3%   total   15.2G   total    7.63G   1 min:    
5.41
  MEM  [ 26.0%]   system    0.7%   used    3.97G   used         0   5 min:    
1.96
  SWAP [  0.0%]   iowait    0.0%   free    11.3G   free     7.63G   15 min:   
1.33

  NETWORK       Rx/s   Tx/s   TASKS 405 (1152 thr), 13 run, 238 slp, 154 oth 
  lo            768b   768b
  wlo1          888b    1Kb   CPU%   MEM%      PID USER       THR  NI S 
                              >59.3  0.0     10363 ajax       1     0 R stress 
-c
  DefaultGateway        8ms    55.0  0.0     10359 ajax       1     0 R stress 
-c
                               53.3  0.0     10356 ajax       1     0 R stress 
-c
  DISK I/O      R/s    W/s     51.4  0.0     10361 ajax       1     0 R stress 
-c
  nvme0n1          0    59K    50.9  0.0     10365 ajax       1     0 R stress 
-c
  nvme0n1p1        0      0    47.4  0.0     10366 ajax       1     0 R stress 
-c
  nvme0n1p2        0      0    45.7  0.0     10364 ajax       1     0 R stress 
-c
  nvme0n1p3        0    59K    44.3  0.0     10355 ajax       1     0 R stress 
-c
                               43.8  0.0     10360 ajax       1     0 R stress 
-c
  FILE SYS      Used  Total    43.6  0.0     10358 ajax       1     0 R stress 
-c
  /             278G   930G    43.1  0.0     10357 ajax       1     0 R stress 
-c

  SENSORS                     High CPU user mode
  2024-10-05 11:23:40 CST7C   2024-10-05 11:23:12 (ongoing) - CPU_TOTAL (100.0)
  ```

  However, the gnome system monitor thinks only `CPU1` is active,
  `CPU2-6` are idle with 0% usage in resources panel. After some
  debugging, it seems that gnome-system-monitor recognizes the active
  CPU count, but if one CPU is parked, all subsequent CPU usage is
  reported as 0.

  For example, if I only park cpu1, then gnome-system-monitor can only
  recognize cpu0 usage (CPU1 on the panel); but if I park cpu15, usage
  of cpu0-14 is displayed correctly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/2083729/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to