Retrieve power consumption on without battery computer #5

Open
opened 2024-03-04 02:54:24 +01:00 by Benjamin_Loison · 3 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
+---------------------------------------------------------------------------------------+
| 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 ``` ``` +---------------------------------------------------------------------------------------+ | 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 | +---------------------------------------------------------------------------------------+ ```
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)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Benjamin_Loison/linux#5
No description provided.