# How to check how free RAM is available?

**URL:** <https://discourse.julialang.org/t/how-to-check-how-free-ram-is-available/15288>\
**Category:** General Usage\
**Created:** [September 21, 2018, 3:26pm UTC](https://discourse.julialang.org/t/how-to-check-how-free-ram-is-available/15288 "2018-09-21T15:26:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ksmcreynolds](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ksmcreynolds/32/860_2.png) [@ksmcreynolds](https://discourse.julialang.org/u/ksmcreynolds)\
**Post date:** [September 21, 2018, 3:52pm UTC](https://discourse.julialang.org/t/how-to-check-how-free-ram-is-available/15288/3 "2018-09-21T15:52:43Z")

</div>

From Julia, you can use `Sys.free_memory()` which returns an unsigned integer with number of bytes that are free. If you want it in e.g. MiB do `Sys.free_memory()/2^20`. You can also get it by calling `versioninfo(verbose=true)` although that prints a lot of other info as well.

Note: `versioninfo()` is a part of InteractiveUtils in the Standard Library which is loaded automatically in the REPL. If you want to run it from a script you need to include `using InteractiveUtils` before calling it.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-check-how-free-ram-is-available/15288)._
