# Why RSS is much bigger than GC live?

**URL:** <https://discourse.julialang.org/t/why-rss-is-much-bigger-than-gc-live/97175>\
**Category:** General Usage\
**Created:** [April 6, 2023, 12:40pm UTC](https://discourse.julialang.org/t/why-rss-is-much-bigger-than-gc-live/97175 "2023-04-06T12:40:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhijie\_sun](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhijie_sun/32/48713_2.png) [@zhijie\_sun](https://discourse.julialang.org/u/zhijie_sun)\
**Post date:** [April 6, 2023, 12:40pm UTC](https://discourse.julialang.org/t/why-rss-is-much-bigger-than-gc-live/97175/1 "2023-04-06T12:40:03Z")

</div>

I used the function mentioned here[https://discourse.julialang.org/t/how-to-track-total-memory-usage-of-julia-process-over-time/91167/2](https://discourse.julialang.org/t/how-to-track-total-memory-usage-of-julia-process-over-time/91167/2), meminfo\_julia() and meminfo\_procfs() to get RSS and GC\_live memory, but I found my program have much bigger RSS memory than GC\_live, I don’t know why.

```julia
1 RSS: 16651.820 MiB GC live: 5026.047 MiB Max. RSS: 47895.031 MiB
2 RSS: 16658.062 MiB GC live: 5054.207 MiB Max. RSS: 47895.031 MiB
3 RSS: 17807.227 MiB GC live: 11322.439 MiB Max. RSS: 47895.031 MiB
4 RSS: 34378.992 MiB GC live: 5388.977 MiB Max. RSS: 52125.352 MiB

```

---

<div class="post-metadata">

**Author:** ![zhijie\_sun](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhijie_sun/32/48713_2.png) [@zhijie\_sun](https://discourse.julialang.org/u/zhijie_sun)\
**Post date:** [April 6, 2023, 12:43pm UTC](https://discourse.julialang.org/t/why-rss-is-much-bigger-than-gc-live/97175/2 "2023-04-06T12:43:32Z")

</div>

Above is some output during the program.  
Are there useful tools that I can use to optimize my program? my program is easy to outofmemory, but actually I didn’t save so much objects.
