# Find out size of computer's memory?

**URL:** <https://discourse.julialang.org/t/find-out-size-of-computers-memory/10888>\
**Category:** General Usage\
**Created:** [May 14, 2018, 7:11pm UTC](https://discourse.julialang.org/t/find-out-size-of-computers-memory/10888 "2018-05-14T19:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magzpavz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magzpavz/32/1822_2.png) [@magzpavz](https://discourse.julialang.org/u/magzpavz)\
**Post date:** [May 14, 2018, 7:11pm UTC](https://discourse.julialang.org/t/find-out-size-of-computers-memory/10888/1 "2018-05-14T19:11:10Z")

</div>

tldr: Is there a way to find out how much memory the computer has? There are environment variables for the processor properties, so something similar?

So why do I want to do this?  
I’ve got a big file of data which I need to process sequentially. I have to do it in batches but want to minimize the number of reads from disk because that’s the bottleneck. So I want to read as much as fits, process that, repeat. But that requires me to know how much RAM is available.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [May 14, 2018, 7:32pm UTC](https://discourse.julialang.org/t/find-out-size-of-computers-memory/10888/2 "2018-05-14T19:32:50Z")

</div>

`Int(Sys.total_memory())`, but some substantial fraction of that will likely be occupied by other processes. See also `Int(Sys.free_memory())`.
