Пример #1
0
def phymem_buffers():
    """Return the amount of physical memory buffers used by the
    kernel in bytes.
    This reflects the "buffers" column of free command line utility.
    """
    total, free, buffers = _psutil_linux.get_physmem()
    return buffers
Пример #2
0
def phymem_buffers():
    """Return the amount of physical memory buffers used by the
    kernel in bytes.
    This reflects the "buffers" column of free command line utility.
    """
    total, free, buffers = _psutil_linux.get_physmem()
    return buffers
Пример #3
0
def phymem_usage():
    """Return physical memory usage statistics as a namedutple including
    tota, used, free and percent usage.
    """
    # total, used and free values are matched against free cmdline utility
    # the percentage matches top/htop and gnome-system-monitor
    total, free, buffers = _psutil_linux.get_physmem()
    cached = cached_phymem()
    used = total - free
    percent = usage_percent(total - (free + buffers + cached), total, _round=1)
    return nt_sysmeminfo(total, used, free, percent)
Пример #4
0
def phymem_usage():
    """Return physical memory usage statistics as a namedutple including
    tota, used, free and percent usage.
    """
    # total, used and free values are matched against free cmdline utility
    # the percentage matches top/htop and gnome-system-monitor
    total, free, buffers = _psutil_linux.get_physmem()
    cached = cached_phymem()
    used = total - free
    percent = usage_percent(total - (free + buffers + cached), total, _round=1)
    return ntuple_sysmeminfo(total, used, free, percent)