# Fatal error: runtime: out of memory when bulk loader

**URL:** <https://discuss.dgraph.io/t/fatal-error-runtime-out-of-memory-when-bulk-loader/7402>\
**Category:** Dgraph\
**Tags:** bulkloader\
**Created:** [June 28, 2020, 3:55am UTC](https://discuss.dgraph.io/t/fatal-error-runtime-out-of-memory-when-bulk-loader/7402 "2020-06-28T03:55:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [June 28, 2020, 1:49pm UTC](https://discuss.dgraph.io/t/fatal-error-runtime-out-of-memory-when-bulk-loader/7402/9 "2020-06-28T13:49:38Z")

</div>

> [@gumupaier](#):
>
> The machine is configured with three 4-core 16G machines

Give it more resources. Bulkloader uses resources exponentially based on the dataset size, especially RAM. In general for small (21mi) bulk loads we set 20GB for safety. And way more for bigger datasets. I think the dev team has some improvements coming to the bulk loader. But not sure when it would be available.

When the bulk is finished, you can return the machine to your default resource config you were using.

> [@gumupaier](#):
>
> I have modified lRU\_MB to 8192, but the error still exists.

This do nothing, LRU is a cache for queries. And it is disabled until we add Ristretto cache to Dgraph.

---

_[View the full topic](https://discuss.dgraph.io/t/fatal-error-runtime-out-of-memory-when-bulk-loader/7402)._
