When we first thought about how to deal with such kind of
memory-related questions (in details: what to provide and under what
names) I remember we had a pretty hard time.
Since the memory management is so different across platforms we
decided that the best thing to do was to use "free" cmdline utility as
a reference and try to adjust the other platforms in accordance with
it as best as possible.
That being so, I do agree "virtmem_usage" is probably a poor name and
we should have used "swapmem_usage" instead.
We might think about renaming it.
I'm not sure about providing a brand new totmem_usage() though.
That would merely be a function which makes a simple addition of both
physical and swap memory functions, adding further confusion to a
subject which is already controversial and twisted.
Also, it is not clear whether the sum should include
psutil.cached_phymem() and psutil.phymem_buffers() on Linux (that's
one of the reasons of this being controversial).
--- Giampaolo