But that isn't really system memory at all, it's just allocated device memory.
OK, that was not really clear to me. So this is not really accounted to MemTotal? If that is really the case then reporting it into the oom report is completely pointless and I am not even sure /proc/meminfo is the right interface either. It would just add more confusion I am afraid.
Why is it confusing? Documentation is quite clear:
"Provides information about distribution and utilization of memory. This varies by architecture and compile options."
A topology with VRAM fits very well on that. The point is to have an overview.
See where I am heading?
Yeah, totally. Thanks for pointing this out.
Suggestions how to handle that?
As I've pointed out in previous reply we do have an API to account per node memory but now that you have brought up that this is not something we account as a regular memory then this doesn't really fit into that model. But maybe I am just confused.