htop icon indicating copy to clipboard operation
htop copied to clipboard

GPU meter is always zero on a double GPU headed PC

Open va-al opened this issue 10 months ago • 3 comments

A problem description: The GPU meter added in my htop layout always stays zeroed. Although at the same time nvtop shows existing real load on the GPU.

Expected behavior: the htop's GPU counter show real % load.

Extra information:

  1. I've checked this behavior on three different PCs. On two different one-GPU-equipped PCs (Intel and AMD) everything works as expected and only on a dual-GPU setup (Intel + NVIDIA) I have experienced the unexpected behavior.
  2. Configuration details and screenshots below:
PC configuration

System: Host: HOST Kernel: 6.13.8-arch1-1 arch: x86_64 bits: 64 Desktop: GNOME v: 48.0 Distro: Arch Linux Machine: Type: Desktop System: Micro-Star product: MS-7B48 v: 1.0 serial: Mobo: Micro-Star model: Z370-A PRO (MS-7B48) v: 1.0 serial: UEFI: American Megatrends v: 2.D3 date: 11/18/2021 CPU: Info: 6-core model: Intel Core i7-8700K bits: 64 type: MT MCP cache: L2: 1.5 MiB Speed (MHz): avg: 800 min/max: 800/4700 cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 Graphics: Device-1: NVIDIA TU106 [GeForce RTX 2070] driver: nvidia v: 570.133.07 Device-2: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo type: USB Display: wayland server: X.Org v: 24.1.6 with: Xwayland v: 24.1.6 compositor: gnome-shell driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution: 3440x1440~144Hz API: EGL v: 1.5 drivers: nvidia platforms: gbm,wayland,x11,surfaceless,device API: OpenGL v: 4.6.0 vendor: nvidia v: 570.133.07 renderer: NVIDIA GeForce RTX 2070/PCIe/SSE2 API: Vulkan v: 1.4.309 drivers: N/A surfaces: xcb,xlib,wayland Info: Tools: api: eglinfo, glxinfo, vulkaninfo gpu: nvidia-settings,nvidia-smi x11: xdpyinfo, xprop, xrandr Audio: Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel Device-3: C-Media Im Fulla Schiit driver: hid-generic,snd-usb-audio,usbhid type: USB Device-4: Kingston HyperX SoloCast driver: hid-generic,snd-usb-audio,usbhid type: USB Device-5: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo type: USB API: ALSA v: k6.13.8-arch1-1 status: kernel-api Server-1: PipeWire v: 1.4.1 status: active Network: Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: 00:d8:61:2f:e6:41 Bluetooth: Device-1: Actions general adapter driver: btusb type: USB Report: btmgmt ID: hci0 state: up address: F4:4E:FC:5E:67:1C bt-v: 5.3 Drives: Local Storage: total: 4.56 TiB used: 59.29 GiB (1.3%) ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HAJQ-00000 size: 476.94 GiB ID-2: /dev/sda vendor: Seagate model: ST2000DM006-2DM164 size: 1.82 TiB ID-3: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB ID-4: /dev/sdc vendor: Western Digital model: WD2000F9YZ-09N20L0 size: 1.82 TiB Partition: ID-1: / size: 78.19 GiB used: 59.25 GiB (75.8%) fs: ext4 dev: /dev/nvme0n1p6 Swap: Alert: No swap data was found. Sensors: System Temperatures: cpu: 34.5 C mobo: 36.0 C Fan Speeds (rpm): fan-1: 0 fan-2: 220 fan-3: 819 fan-4: 745 fan-5: 790 fan-6: 1298 Info: Memory: total: 32 GiB available: 31.28 GiB used: 11.85 GiB (37.9%) Processes: 381 Uptime: 4h 31m Shell: fish inxi: 3.3.37

Auto generated HTOPRC

─────────────────────────────────────────────────────────────────────────────────────────── │ File: .config/htop/htoprc ─────────────────────────────────────────────────────────────────────────────────────────── 1 │ # Beware! This file is rewritten by htop when settings are changed in the interface. 2 │ # The parser is also very primitive, and not human-friendly. 3 │ htop_version=3.4.0-dev-3.4.0 4 │ config_reader_min_version=3 5 │ fields=0 48 17 18 38 39 40 2 111 46 47 49 1 6 │ hide_kernel_threads=0 7 │ hide_userland_threads=0 8 │ hide_running_in_container=0 9 │ shadow_other_users=0 10 │ show_thread_names=0 11 │ show_program_path=1 12 │ highlight_base_name=1 13 │ highlight_deleted_exe=1 14 │ shadow_distribution_path_prefix=0 15 │ highlight_megabytes=1 16 │ highlight_threads=1 17 │ highlight_changes=0 18 │ highlight_changes_delay_secs=5 19 │ find_comm_in_cmdline=1 20 │ strip_exe_from_cmdline=1 21 │ show_merged_command=0 22 │ header_margin=1 23 │ screen_tabs=0 24 │ detailed_cpu_time=1 25 │ cpu_count_from_one=1 26 │ show_cpu_usage=1 27 │ show_cpu_frequency=1 28 │ show_cpu_temperature=1 29 │ degree_fahrenheit=0 30 │ show_cached_memory=1 31 │ update_process_names=0 32 │ account_guest_in_cpu_meter=1 33 │ color_scheme=6 34 │ enable_mouse=1 35 │ delay=15 36 │ hide_function_bar=0 37 │ header_layout=two_50_50 38 │ column_meters_0=AllCPUs 39 │ column_meter_modes_0=1 40 │ column_meters_1=Tasks LoadAverage Uptime Blank GPU Blank Memory Swap CPU 41 │ column_meter_modes_1=2 2 2 2 1 2 1 1 3 42 │ tree_view=0 43 │ sort_key=46 44 │ tree_sort_key=47 45 │ sort_direction=-1 46 │ tree_sort_direction=-1 47 │ tree_view_always_by_pid=0 48 │ all_branches_collapsed=0 49 │ screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE IO_RATE PERCENT_CPU PERCENT_MEM TIME Command 50 │ .sort_key=PERCENT_CPU 51 │ .tree_sort_key=PERCENT_MEM 52 │ .tree_view_always_by_pid=0 53 │ .tree_view=0 54 │ .sort_direction=-1 55 │ .tree_sort_direction=-1 56 │ .all_branches_collapsed=0 57 │ screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command 58 │ .sort_key=IO_RATE 59 │ .tree_sort_key=PID 60 │ .tree_view_always_by_pid=0 61 │ .tree_view=0 62 │ .sort_direction=-1 63 │ .tree_sort_direction=1 64 │ .all_branches_collapsed=0 ───────────────────────────────────────────────────────────────────────────────────────────

Image

Image

I would really appreciate any help on this. Thank you in advance!

va-al avatar Mar 31 '25 15:03 va-al

Just as an extra idea I guess my htop is trying to read my iGPU load, which isn't in use instead of discrete GPU which is really in use.. Although I can't find an option to set this up manually.

va-al avatar Mar 31 '25 15:03 va-al

I am also facing the same issue.

I have an nvidia and amd integrated gpu. The nvidia gpu usage is not showing in htop.

Htop - cfb561f OS - Arch linux

ananthu-sk avatar Aug 07 '25 21:08 ananthu-sk

I have a NVIDIA discrete GPU in my desktop which does not have an iGPU, and htop is failing to show GPU usage. Potentially an issue with NVIDIA rather than with the dual-GPU setup?

pteranodog avatar Nov 22 '25 11:11 pteranodog