Retrieve power consumption on without battery computer #5

Open
opened 2024-03-04 02:54:24 +01:00 by Benjamin_Loison · 5 comments
Related to [OverClock3000/issues/8](https://codeberg.org/Benjamin_Loison/OverClock3000/issues/8).
Author
Owner

Concerning the NVIDIA GPU when the screen is off since a few minutes but Minecraft is in theory on main menu on the main screen:

nvidia-smi
Output:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA TITAN Xp                On  | 00000000:02:00.0 Off |                  N/A |
| 23%   39C    P8              10W / 250W |   1360MiB / 12288MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3467      G   /usr/lib/xorg/Xorg                          801MiB |
|    0   N/A  N/A      5385      G   /usr/lib/thunderbird/thunderbird            193MiB |
|    0   N/A  N/A      5435      G   /usr/lib/firefox-esr/firefox-esr             79MiB |
|    0   N/A  N/A    368554      G   /app/jdk/17/bin/java                        116MiB |
|    0   N/A  N/A    373347      G   ...erProcess --variations-seed-version       51MiB |
|    0   N/A  N/A    381806      G   /usr/bin/gnome-shell                         17MiB |
+---------------------------------------------------------------------------------------+
Concerning the NVIDIA GPU when the screen is off since a few minutes but Minecraft is in theory on main menu on the main screen: ```bash nvidia-smi ``` <details> <summary>Output:</summary> ``` +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA TITAN Xp On | 00000000:02:00.0 Off | N/A | | 23% 39C P8 10W / 250W | 1360MiB / 12288MiB | 0% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 3467 G /usr/lib/xorg/Xorg 801MiB | | 0 N/A N/A 5385 G /usr/lib/thunderbird/thunderbird 193MiB | | 0 N/A N/A 5435 G /usr/lib/firefox-esr/firefox-esr 79MiB | | 0 N/A N/A 368554 G /app/jdk/17/bin/java 116MiB | | 0 N/A N/A 373347 G ...erProcess --variations-seed-version 51MiB | | 0 N/A N/A 381806 G /usr/bin/gnome-shell 17MiB | +---------------------------------------------------------------------------------------+ ``` </details>
Author
Owner

Maybe like GPU can get CPU consumption. It is capped in theory by the TDP which is 140W for Intel Core i9-7920X, according to https://ark.intel.com/content/www/us/en/ark/products/126240/intel-core-i9-7920x-x-series-processor-16-5m-cache-up-to-4-30-ghz.html.

I just fear of unofficial tools not being exact.

https://www.binarytides.com/monitor-cpu-power-consumption-on-ubuntu/

LemnosLife-Client/issues does not seem helpful when searching nvidia-smi.

Source search the Internet with a query like "nvidia-smi" for Intel CPU.

Maybe like GPU can get CPU consumption. It is capped in theory by the TDP which is 140W for Intel Core i9-7920X, according to https://ark.intel.com/content/www/us/en/ark/products/126240/intel-core-i9-7920x-x-series-processor-16-5m-cache-up-to-4-30-ghz.html. I just fear of unofficial tools not being exact. https://www.binarytides.com/monitor-cpu-power-consumption-on-ubuntu/ [LemnosLife-Client/issues](https://github.com/Benjamin-Loison/LemnosLife-Client/issues) does not seem helpful when searching `nvidia-smi`. Source search the Internet with a query like `"nvidia-smi" for Intel CPU`.
Author
Owner

PowerTOP is a software utility designed to measure, explain and minimise a computer's electrical power consumption. It was released by Intel in 2007 under the GPLv2 license.
PowerTOP analyzes the programs, device drivers, and kernel options running on a computer based on the Linux [...] operating systems, and estimates the power consumption resulting from their use

Source: Wikipedia: PowerTOP (1235682405)

> PowerTOP is a software utility designed to measure, explain and minimise a computer's electrical power consumption. It was released by Intel in 2007 under the GPLv2 license. > PowerTOP analyzes the programs, device drivers, and kernel options running on a computer based on the Linux [...] operating systems, and estimates the power consumption resulting from their use Source: [Wikipedia: PowerTOP (1235682405)](https://en.m.wikipedia.org/w/index.php?title=PowerTOP&oldid=1235682405)
Author
Owner
Related to [Benjamin_Loison/Debian/issues/47](https://codeberg.org/Benjamin_Loison/Debian/issues/47).
Author
Owner
I talked to the person:
-----BEGIN PGP MESSAGE-----

hF0DTQa9Wom5MBgSAQCcKFDXE/ijUjP8UNB060xRyZ/JhI8KIl538iRNshi/KzDC
Fb3LAmoCbwd3nAJyh/JCdKsvdmuQZRPyp+tylODcRB67J5JxoipRKdQvaXSUaXjS
WwGHctp2YQVfALhP/ZuiFJGWM52qXgjPOfEKpvapN4HPT3hmV84x0WQf8stHJlax
blXVUgB8s3x8QgiTfu33EOPIAnHADh4fUyAS8n3SGD8HgAZtRystEs3m06M=
=3j7N
-----END PGP MESSAGE-----

working on optimizing power efficiency for GPUs and he told me that software solutions are on servers accurate and should be in my case. He also told me that depending on the brand and model should have an interface ACPI. Otherwise there are physical CPL like where we plug on, some even have text file API.

<details> <summary>I talked to the person:</summary> ``` -----BEGIN PGP MESSAGE----- hF0DTQa9Wom5MBgSAQCcKFDXE/ijUjP8UNB060xRyZ/JhI8KIl538iRNshi/KzDC Fb3LAmoCbwd3nAJyh/JCdKsvdmuQZRPyp+tylODcRB67J5JxoipRKdQvaXSUaXjS WwGHctp2YQVfALhP/ZuiFJGWM52qXgjPOfEKpvapN4HPT3hmV84x0WQf8stHJlax blXVUgB8s3x8QgiTfu33EOPIAnHADh4fUyAS8n3SGD8HgAZtRystEs3m06M= =3j7N -----END PGP MESSAGE----- ``` </details> working on optimizing power efficiency for GPUs and he told me that software solutions are on servers accurate and should be in my case. He also told me that depending on the brand and model should have an interface ACPI. Otherwise there are physical CPL like where we plug on, some even have text file API.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/linux#5
No description provided.