MemoryAvailable

MemoryAvailable[]

gives the estimated number of bytes readily available for storing additional data in the current Wolfram Language kernel session.

Details

  • MemoryAvailable[] reports memory that is available for allocation by your operating system.
  • MemoryAvailable[] is affected by other processes running on your computer system.
  • Dynamic[MemoryAvailable[]] gives dynamic results for available memory.
  • On Mac, MemoryAvailable[] returns the sum of free and inactive memory.
  • On Windows, MemoryAvailable[] returns the available memory reported by the operating system.
  • On Linux, MemoryAvailable[] returns the MemAvailable parameter value of /proc/meminfo.

Examples

Basic Examples  (3)

Memory available in the current kernel session:

Set up a dynamic display of available memory:

Measure memory available before and after a computation:

The difference in available memory is roughly accounted for by the structure created:

Wolfram Research (2017), MemoryAvailable, Wolfram Language function, https://reference.wolfram.com/language/ref/MemoryAvailable.html.

Text

Wolfram Research (2017), MemoryAvailable, Wolfram Language function, https://reference.wolfram.com/language/ref/MemoryAvailable.html.

CMS

Wolfram Language. 2017. "MemoryAvailable." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MemoryAvailable.html.

APA

Wolfram Language. (2017). MemoryAvailable. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MemoryAvailable.html

BibTeX

@misc{reference.wolfram_2023_memoryavailable, author="Wolfram Research", title="{MemoryAvailable}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/MemoryAvailable.html}", note=[Accessed: 20-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_memoryavailable, organization={Wolfram Research}, title={MemoryAvailable}, year={2017}, url={https://reference.wolfram.com/language/ref/MemoryAvailable.html}, note=[Accessed: 20-April-2024 ]}