@memoize
def physicalMemory():
    """
    >>> n = physicalMemory()
    >>> n > 0
    True
    >>> n == physicalMemory()
    True
    """
    try:
        return os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES')
    except __HOLE__:
        return int(check_output(['sysctl', '-n', 'hw.memsize']).strip())
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/__init__.py/physicalMemory