# Sudden 100GB+ jump in MGM memory usage

**URL:** <https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449>\
**Category:** Site Administrators\
**Created:** [May 7, 2020, 2:06pm UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449 "2020-05-07T14:06:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dszkola](https://eos-community.web.cern.ch/user_avatar/eos-community.web.cern.ch/dszkola/32/14_2.png) [@dszkola](https://eos-community.web.cern.ch/u/dszkola)\
**Post date:** [May 7, 2020, 2:06pm UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449/1 "2020-05-07T14:06:46Z")

</div>

EOS\_SERVER\_VERSION=4.6.8 EOS\_SERVER\_RELEASE=1

Any idea what can cause this:

 ![Screenshot from 2020-05-07 09-04-08](https://eos-community.web.cern.ch/uploads/default/original/1X/1f0632483f3b89b6eb9bebdce8be45d089daa25b.png)

ALL memory virtual 253.80 GB  
ALL memory resident 92.63 GB  
ALL memory share 17.30 MB  
ALL memory growths 251.48 GB  
ALL threads 840  
ALL fds 4204  
ALL uptime 2392349

---

<div class="post-metadata">

**Author:** ![dszkola](https://eos-community.web.cern.ch/user_avatar/eos-community.web.cern.ch/dszkola/32/14_2.png) [@dszkola](https://eos-community.web.cern.ch/u/dszkola)\
**Post date:** [May 7, 2020, 2:08pm UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449/2 "2020-05-07T14:08:02Z")

</div>

Forgot to add, we’re using the QDB namespace.  
quarkdb-0.4.2-1.el7.cern.x86\_64

---

<div class="post-metadata">

**Author:** ![apeters](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@apeters](https://eos-community.web.cern.ch/u/apeters)\
**Post date:** [May 11, 2020, 7:33am UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449/3 "2020-05-11T07:33:48Z")

</div>

Hi Dan,  
sorry that you had to wait so long.

Elvin, can you point Dan to the minimum version to be used when you run with multiple MGMs and Georgios, which version is the current production recommendation for QDB?

Do you have the configuration stored in QuarkdB or still the configuration file on the MGM?

---

<div class="post-metadata">

**Author:** ![dszkola](https://eos-community.web.cern.ch/user_avatar/eos-community.web.cern.ch/dszkola/32/14_2.png) [@dszkola](https://eos-community.web.cern.ch/u/dszkola)\
**Post date:** [May 11, 2020, 11:21am UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449/4 "2020-05-11T11:21:07Z")

</div>

Yes, I have this set on both MGMs:  
EOS\_USE\_QDB\_MASTER=1

The config is stored in QDB:  
# eos config ls  
Existing Configurations on QuarkDB  
================================  
created: Fri May 8 14:24:21 2020 name: default \*

This is set on both MGMs as well:  
mgmofs.cfgtype quarkdb

---

<div class="post-metadata">

**Author:** ![byujiang](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/b/a9adbd/32.png) [@byujiang](https://eos-community.web.cern.ch/u/byujiang)\
**Post date:** [June 19, 2020, 1:56am UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449/5 "2020-06-19T01:56:04Z")

</div>

We also encountered such problems, and we noticed that eos@sync service occupied about 75% or 90 GB memory. Is this service essential?

---

<div class="post-metadata">

**Author:** ![franck-jrc](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/f/f07891/32.png) [@franck-jrc](https://eos-community.web.cern.ch/u/franck-jrc)\
**Post date:** [June 22, 2020, 10:04am UTC](https://eos-community.web.cern.ch/t/sudden-100gb-jump-in-mgm-memory-usage/449/6 "2020-06-22T10:04:55Z")

</div>

Hello,

We had some concern also once about MGM memory. [Abnormal memory usage of the MGM (QDB namespace)](https://eos-community.web.cern.ch/t/abnormal-memory-usage-of-the-mgm-qdb-namespace/377)

The conclusion for us was that someone launched the `eos find` command on the whole instance’s namespace, and the process went on forever, filling some buffer until the whole search was finished, then memory was freed. But this was not a but step like yours, more sustained increase during many days, just before a sudden free.

In addition, we were using values bigger than the default for the `eos ns cache` because we had available memory, and this was threatening memory outage. But this seems to be not useful (no performance gain, and bigger memory usage), so better keep the default values.

In general, we still observe that even after the cache maximum is reached, the MGM (v4.5.15) memory usage steadily, but slowly, always increases (~+50GB in 3 months)
