# Peak memory usage with \`getrusage\`

**URL:** https://discourse.julialang.org/t/peak-memory-usage-with-getrusage/87443
**Category:** New to Julia
**Tags:** memory
**Created:** [September 18, 2022, 4:18pm UTC](https://discourse.julialang.org/t/peak-memory-usage-with-getrusage/87443 "2022-09-18T16:18:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![luciano-drozda](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luciano-drozda/32/33789_2.png) [@luciano-drozda](https://discourse.julialang.org/u/luciano-drozda)
#### Post date: [September 18, 2022, 4:18pm UTC](https://discourse.julialang.org/t/peak-memory-usage-with-getrusage/87443/1 "2022-09-18T16:18:58Z")

</div>

Peak memory usage could be measured by `ccall` to `getrusage`, right ? I’m obtaining the value of `0 KB` when calling

```julia
run_mtest("create_strings", () -> mtest_create_strings())

```

from the example [here](https://github.com/JuliaLang/julia/blob/master/test/netload/memtest.jl). Should it return a different value ?
