cf.free_memory¶
- cf.free_memory()[source]¶
The available physical memory.
- Returns:
float
The amount of free memory in bytes.
Examples
>>> import numpy >>> print('Free memory =', cf.free_memory()/2**30, 'GiB') Free memory = 88.2728042603 GiB >>> a = numpy.arange(10**9) >>> print('Free memory =', cf.free_memory()/2**30, 'GiB') Free memory = 80.8082618713 GiB >>> del a >>> print('Free memory =', cf.free_memory()/2**30, 'GiB') Free memory = 88.2727928162 GiB