aristocratos / btop

A monitor of resources
Apache License 2.0
18.46k stars 587 forks source link

[REQUEST] Show multiple GPUs #865

Open adrianlyjak opened 2 months ago

adrianlyjak commented 2 months ago

This was discussed fairly thoroughly in #426, the issue to add GPU support, but that's been fixed, so figured I'd open a new issue to keep this particular feature visible.

I have multiple GPUs, and expect that a lot of people using btop are futzing around on servers doing ML and want to monitor GPU usage. btop currently supports GPUs (yay!), however it just shows 1

image

My personal preference would be to use the CPU style of UI, but modified a little to support GPUs

While this leaves some historical information out, this approach seems like it should be simple and fit within the current btop design.

There were some other alternatives discussed in #426, such as binding digits 5-0 to display different gpus. This seems perhaps like it might make the feature more complicated to implement well. I personally don't have strong opinion though, and just want to see my other GPU

actionless commented 3 weeks ago

i can see 2 GPUs on the left side of the app (with the graph), but on the right side it shows only GPU0 and a blank line following it

here's a comparison, of 1gpu vs 2gpu setup:

2024-07-05--1720139716_3809x774_scrot

not sure if that's a separate issue or the same as on topic

PorkyC commented 6 days ago

i can see 2 GPUs on the left side of the app (with the graph), but on the right side it shows only GPU0 and a blank line following it

here's a comparison, of 1gpu vs 2gpu setup:

2024-07-05--1720139716_3809x774_scrot

not sure if that's a separate issue or the same as on topic

Try pressing 5, 6 to toggle GPU settings.

actionless commented 2 days ago

if i press 5 it shows separately info for gpu 0 and if 6 - for gpu 1

but then this detailed info is hidden - in the overview it shows only gpu 0 and a blank line