MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

Show RAM and VRAM usage of the application itself

Open shmerl opened this issue 1 year ago • 13 comments

Currently mangohud shows system RAM / VRAM utilization. It would be nice if possible to see how much memory the actual program that runs with the HUD uses.

shmerl avatar Feb 16 '24 01:02 shmerl

Any news on this? Showing total is not a very easy way to understand how application itself affects VRAM.

shmerl avatar Jun 21 '24 22:06 shmerl

You can use procmem for process RAM usage. Nothing for vram sadly. Now that you mention it I would like to see process vram too.

Lassebq avatar Jun 22 '24 19:06 Lassebq

Thanks for the pointer about procmem

shmerl avatar Jun 23 '24 01:06 shmerl

I must be missing something. I tired adding ...,procmem,... to the list of options I'm using, but it's not showing me anything about it.

shmerl avatar Jun 23 '24 01:06 shmerl

It appears procmem is only usable with legacy_layout=0, this should probably be changed tho

flightlessmango avatar Jun 23 '24 08:06 flightlessmango

That helped indeed. What does it do exactly? It's not documented in readme besides being mentioned for exec.

shmerl avatar Jun 23 '24 08:06 shmerl

It only displays the elements that are in the config and it allows you to re-order the elements

flightlessmango avatar Jun 23 '24 08:06 flightlessmango

That should probably be a default.

shmerl avatar Jun 23 '24 08:06 shmerl

Looks like a bunch of options aren't working with legacy_layout=0?

Tried something like this:

legacy_layout=0,cpu_load_change,cpu_temp,gpu_load_change,gpu_temp,core_load,core_load_change

But it only shows cores load in result.

shmerl avatar Jun 23 '24 08:06 shmerl

For example to see gpu information you need to add gpu_stats

flightlessmango avatar Jun 23 '24 08:06 flightlessmango

That worked, thanks. Is it possible to read total VRAM of the process in general?

shmerl avatar Jun 23 '24 08:06 shmerl

nvtop does have per process vram. Should be possible.

Lassebq avatar Jun 23 '24 08:06 Lassebq

Yeah there's no issues implementing it, just time to write it

flightlessmango avatar Jun 23 '24 11:06 flightlessmango