# Out of memory

eazyBackup needs RAM to run. The main cause for this is to hold deduplication indexes; therefore the amount of RAM used is proportional to the size of the Storage Vault.

You might see these error messages:

> * runtime: VirtualAlloc of 1048576 bytes failed with errno=1455 on Windows
> * 0x5AF ERROR\_COMMITMENT\_LIMIT: The paging file is too small for this operation to complete. on Windows
> * fatal error: out of memory on all platforms

On Linux, when the system is out of memory (OOM), the kernel "OOM Killer" subsystem will immediately terminate a process of its choosing, to free up memory. If you see an error message like signal: killed in eazyBackup on Linux, this means the process was terminated by a user or a subsystem, that might possibly be the OOM Killer. You can check for this in `dmesg` or `kern.log`.

You can reduce eazyBackup's RAM usage by trying to limit how much data is in each Storage Vault. For instance, instead of having multiple devices backing up into a single Storage Vault, create multiple Storage Vaults for each device. This will reduce the deduplication efficiency, but it will also reduce the necessary memory usage.

### **Other Options**&#x20;

Some trade-offs are possible, that can reduce eazyBackup's memory usage at the expense of other system resource types:

### **Rescan unchanged files**&#x20;

This option causes eazyBackup to read more data from the source disk, reading less data from the Storage Vault into in-memory indexes. This can have a varied impact on RAM usage, and may be positive or negative depending on the shape of your directories.

### **Prefer temporary files instead of RAM**&#x20;

The "Prefer temporary files instead of RAM" option on a backup job schedule will cause eazyBackup to keep indexes in an on-disk database file, instead of a pure in-memory index. The on-disk database file is mapped into pageable memory, that can more easily be reclaimed by the OS when the system is under memory pressure.

Depending on how you measure eazyBackup's memory usage, this option may not immediately appear to have lower memory usage if your measurement includes `mmap` disk sections. However, the resident working set is reduced.

There is a major performance penalty for using this option (approximately 5x or worse) and it is not generally recommended.

Follow these steps to enable the "Prefer temporary files instead of RAM" option&#x20;

* Open the eazyBackup agent
* Select the Protected Item, click 'Configure'
* Select the 'Schedule' tab
* Select and Edit your Schedule
* In the Schedule window, select the Advanced tab
* Enable the Prefer temporary files instead of RAM option&#x20;
* Save changes

<figure><img src="/files/8WBx4fVEHtzCTF6H7ESC" alt="" width="375"><figcaption></figcaption></figure>

***

[eazyBackup](https://eazybackup.com)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eazybackup.com/troubleshooting/out-of-memory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
