# Different Process memory values

**URL:** <https://forum.elixirforum.com/t/different-process-memory-values/32957>\
**Category:** Questions\
**Tags:** erlang, memory\
**Created:** [July 9, 2020, 7:12pm UTC](https://forum.elixirforum.com/t/different-process-memory-values/32957 "2020-07-09T19:12:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanj853](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/alanj853/32/35809_2.png) [@alanj853](https://forum.elixirforum.com/u/alanj853)\
**Post date:** [July 9, 2020, 7:12pm UTC](https://forum.elixirforum.com/t/different-process-memory-values/32957/1 "2020-07-09T19:12:39Z")

</div>

Hi,  
I have a simple elixir project set up and I am wondering why I am seeing different memory usage values when I run the following commands:

Running `:erlang.memory(:processes_used)`, I get 9555432.

But when I run `Process.list() |> Enum.map(fn p -> Process.info(p, :memory) end) |> Enum.map(fn {:memory, val} -> val end) |> Enum.sum()`, I get 6159636, which is considerably less.

Does anyone know the reason for this?

---

<div class="post-metadata">

**Author:** ![garazdawi](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/garazdawi/32/5853_2.png) [@garazdawi](https://forum.elixirforum.com/u/garazdawi)\
**Post date:** [July 10, 2020, 8:50am UTC](https://forum.elixirforum.com/t/different-process-memory-values/32957/2 "2020-07-10T08:50:12Z")

</div>

`:erlang.memory(:processes_used)` also includes other metadata used by processes. For instance the memory of the process table. You can check this by passing the `+P` option to Erlang and see how the memory usage changes.
