SSD virtual RAM request for container

Hello, I use hAP ax^3 at home. I prefer MikroTik because of its wireless coverage and usage habits. Recently, I started using containers with routerOS updates, and I'm very excited about this. I connected a USB SSD to MikroTik, and it works great. I installed Docker images on the USB SSD and created file pools. All containers can access the same files in the shared pool, making it suitable for use as a media server. Currently, I actively use Adguard Home, CloudFlare, and UDPxy images simultaneously. At different times, I also use Jellyfin, Deluge, jdownloader, etc., images as needed. Everything is great so far, but even though a 4-core processor is sufficient, the 1GB RAM size in MikroTik is insufficient in some scenarios. Wouldn't it be great if there was a way to create virtual RAM on the SSD to solve this problem? For example, if an SSD speed test were performed and if it exceeded a certain level, a separate RAM allocation could be created for each container in the container section, and a file containing the allocated RAM amount within the SSD could be created, or RAM could be increased in a different, more suitable way?

The RAM increase I'm referring to should be for running containers, not for the router OS.

Using the ROSE package you can add a swap file on your external SSD. Starting with 7.21 it is even possible without having ROSE installed:

*) disk - allow to have type=file devices without rose-storage (needed for file based swap);

1 Like

I installed the Rose package. How exactly can I create a swap? Is there an example video?

1 Like

Thank you, I was able to do it...