# Malloc slack and waste

**URL:** <https://forums.unrealengine.com/t/malloc-slack-and-waste/2137306>\
**Category:** C++\
**Tags:** unreal-engine, memory, question\
**Created:** [November 20, 2024, 10:38am UTC](https://forums.unrealengine.com/t/malloc-slack-and-waste/2137306 "2024-11-20T10:38:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milantaticek1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@milantaticek1](https://forums.unrealengine.com/u/milantaticek1)\
**Post date:** [November 20, 2024, 10:38am UTC](https://forums.unrealengine.com/t/malloc-slack-and-waste/2137306/1 "2024-11-20T10:38:01Z")

</div>

Hello, I have a question regarding memory slack and waste in UE 5.4. I am trying to reduce memory consumption and using DUMPALLOCS I noticed that we have about 91% malloc efficiency. The slack memory was about 200MB and waste about 150MB. I fiddled with bin sizes and managed to get to efficiency of about 95% but the slack is still pretty high (150MB). Is there any way to reduce it? I tried other allocators but to no major effect.

---

<div class="post-metadata">

**Author:** ![PREDALIEN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/predalien/32/1194670_2.png) [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Post date:** [November 20, 2024, 10:46am UTC](https://forums.unrealengine.com/t/malloc-slack-and-waste/2137306/2 "2024-11-20T10:46:18Z")

</div>

Do you need it “just for sport”? Or are you really running the project on a machine where 100 megabytes is a large number? 🧐

---

<div class="post-metadata">

**Author:** ![milantaticek1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@milantaticek1](https://forums.unrealengine.com/u/milantaticek1)\
**Post date:** [November 20, 2024, 10:49am UTC](https://forums.unrealengine.com/t/malloc-slack-and-waste/2137306/3 "2024-11-20T10:49:20Z")

</div>

I am trying to run it on Xbox series S and I am looking for all possible memory waste.
