How can I determine the free memory?

Is there a way to determine the free and the used memory with Julia?

Perhaps even free heap and free stack?

2 Likes

So it looks as if Julia does not have a function to do this . Sigh. Guess I will try to translate this to Julia: linux - How to get memory usage at runtime using C++? - Stack Overflow

What about these functions from Sys?

Sys.total_memory() / 2^30
Sys.free_memory() / 2^30
3 Likes

Thank you, this was what I was looking for. :slight_smile:

Ok. a function that determines the memory used by the current process would also be nice to have…

1 Like