def virtmem_usage(): """Virtual system memory as a (total, used, free) tuple.""" total = _psutil_bsd.get_total_virtmem() free = _psutil_bsd.get_avail_virtmem() used = total - free percent = usage_percent(used, total, _round=1) return nt_sysmeminfo(total, used, free, percent)
def used_virtmem(): """Return the amount of used memory currently in use on the system, in bytes.""" return _psutil_bsd.get_total_virtmem() - _psutil_bsd.get_avail_virtmem()
def avail_virtmem(): "Return the amount of virtual memory currently in use on the system, in bytes." return _psutil_bsd.get_avail_virtmem()