# MGLRU for mongoDB databases

**URL:** <https://forums.percona.com/t/mglru-for-mongodb-databases/27488>\
**Category:** Percona Server for MongoDB\
**Tags:** mongodb\
**Created:** [December 29, 2023, 12:52pm UTC](https://forums.percona.com/t/mglru-for-mongodb-databases/27488 "2023-12-29T12:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [December 29, 2023, 12:52pm UTC](https://forums.percona.com/t/mglru-for-mongodb-databases/27488/1 "2023-12-29T12:52:27Z")

</div>

Hi Team,

I came across multi-generation LRU on Linux server (We are using Debian 11 with 6.1 backported kernel) and it seams to help in cache for the databases. Right now implemented in DEV server to check the performance improvements (Expected to reduce memory usage by 10% without affecting the CPU).

MongoDB Version being using 4.4 and 5.0

Can you please help if its good, if yes, what are the ideal values to setup in Prod and Non-Prod servers

[https://docs.kernel.org/admin-guide/mm/multigen\_lru.html](https://docs.kernel.org/admin-guide/mm/multigen_lru.html)

> **[GitHub - hakavlad/mg-lru-helper: Control the state of MGLRU](https://github.com/hakavlad/mg-lru-helper)**
>
> Control the state of MGLRU. Contribute to hakavlad/mg-lru-helper development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [February 6, 2024, 11:48am UTC](https://forums.percona.com/t/mglru-for-mongodb-databases/27488/2 "2024-02-06T11:48:20Z")

</div>

@Ivan_Groenewold Can you please help me with this?
