# Horrible container performance from 7.14 up to 7.15rc2

**URL:** <https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900>\
**Category:** Containers\
**Created:** [May 10, 2024, 8:32pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900 "2024-05-10T20:32:34Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [June 1, 2024, 4:49pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/21 "2024-06-01T16:49:36Z")

</div>

Maybe there is an issue, IDK.

But to clarify on the “duckdns” sub-case…

1. Does it show “starting” for 10 minutes, or it goes to “running” and just does respond?
2. Assuming logging is enabled, does anything appear during the 10 minutes?
3. Does “/container/shell [find tag~“duckdns”]” get you the terminal of the container during this window?

I just think some less subject measurement be helpful to narrow this down. Since duckdns is a dns server, using dns test tool be useful. On “Linux” there is `dnsperf`, (or with WSL `apt install dnsperf` on Windows, or `brew install dnsperf` on Mac w/homebrew)… I have an old /bin/sh script that ran it, which I adapted here:

```plaintext
{
FILE=~/dnsperf.queries
DNSSERVER=192.168.88.1
CONNECTIONS=20 
QUERIESPERSEC=100
DURATION=10
TESTHOST=google.com

echo " **DNSPERF TEST**"
echo "Running dnsperf to $DNSSERVER for $DURATION sec, using $CONNECTIONS connections, at max rate of $QUERIESPERSEC queries per sec."
echo "... using the following query file at $FILE:"
echo "$TESTHOST A" > $FILE   
cat $FILE
echo "Starting dnsperf...\n"
dnsperf -s $DNSSERVER -c $CONNECTIONS -l $DURATION -Q $QUERIESPERSEC -d $FILE   
}

```

Anyway, I just think it good with the container to run some test tool against them - even outside the specific issue. This is generally not too hard since the whole idea of a container it does one things, so easy to test using off-the-shelf tools.

And, in fact some slight difference in how long “ssh” when running testing script is how the XZ vulnerability was caught… And here some cut-and-paste of duckdns from 7.14 and 7.15 showing it changed, might get more action from Mikrotik since there is some concrete thing to point to.

---

<div class="post-metadata">

**Author:** ![akabyshev](https://forum.mikrotik.com/letter_avatar/akabyshev/32/6_449c533f586939b6e5f246632a46421f.png) [@akabyshev](https://forum.mikrotik.com/u/akabyshev)\
**Post date:** [June 2, 2024, 7:43pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/22 "2024-06-02T19:43:19Z")

</div>

Sorry - duckdns is not a server, just a simple API caller for some DynamicDNS service. Useful script nevertheless, thank you!  
Yesterday, that container was shown as “started” immediately, logging was enabled and it took 5+ minutes for very first log lines to start coming.

BUT HEAR ME OUT - today containers are working normally! Container-specific log messages start coming in 3 seconds.

Only noteworthy thing that happened was a reboot (for unrelated reasons). Also, I wiped the memory log by setting lines from 500 to 1 and to 500 again. OP, could you try it please?

Now I can’t reproduce the problem. I’ll keep you all posted

---

<div class="post-metadata">

**Author:** ![autonomous](https://forum.mikrotik.com/letter_avatar/autonomous/32/6_449c533f586939b6e5f246632a46421f.png) [@autonomous](https://forum.mikrotik.com/u/autonomous)\
**Post date:** [June 3, 2024, 12:09am UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/23 "2024-06-03T00:09:14Z")

</div>

> [@](#):
>
> Sorry - duckdns is not a server, just a simple API caller for some DynamicDNS service. Useful script nevertheless, thank you!  
> Yesterday, that container was shown as “started” immediately, logging was enabled and it took 5+ minutes for very first log lines to start coming.
> 
> BUT HEAR ME OUT - today containers are working normally! Container-specific log messages start coming in 3 seconds.
> 
> Only noteworthy thing that happened was a reboot (for unrelated reasons). Also, I wiped the memory log by setting lines from 500 to 1 and to 500 again. OP, could you try it please?
> 
> Now I can’t reproduce the problem. I’ll keep you all posted

I also experience some some intermittency with containers having this issue. Sometimes it will run fine, only to starting funny again on a future restart of routeros or the container itself.  
  
  
On my RB5009UPr+S+ (not to be confused with my hAP x3) I have a custom built container that runs Rsyslog+Promtail together for sending RouterOS logs to Loki that was experiencing this issue. I had to do a re-image of the OS with netinstall, restore of the backup taken just before the restore, and re-installation of container package just to get it to work again. (I was also experiencing it with technitium DNS server as a container at the same time, which also simply began to work after netinstall with the same identical configuration applied)

Only to have it begin exhibiting the same problem again (with both containers) after updating from 7.15-rc4 to 7.15 official.

I’ve seen it happen from a simple reboot of RouterOS as well, though. Something is definitely going on in the backend, but we’ll never be able to see it because access to the information on the host that would allow for debugging this is restricted by the vendor.

---

<div class="post-metadata">

**Author:** ![autonomous](https://forum.mikrotik.com/letter_avatar/autonomous/32/6_449c533f586939b6e5f246632a46421f.png) [@autonomous](https://forum.mikrotik.com/u/autonomous)\
**Post date:** [June 3, 2024, 2:22am UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/24 "2024-06-03T02:22:32Z")

</div>

> [@](#):
>
> Sorry - duckdns is not a server, just a simple API caller for some DynamicDNS service. Useful script nevertheless, thank you!  
> Yesterday, that container was shown as “started” immediately, logging was enabled and it took 5+ minutes for very first log lines to start coming.
> 
> BUT HEAR ME OUT - today containers are working normally! Container-specific log messages start coming in 3 seconds.
> 
> Only noteworthy thing that happened was a reboot (for unrelated reasons). Also, I wiped the memory log by setting lines from 500 to 1 and to 500 again. OP, could you try it please?
> 
> Now I can’t reproduce the problem. I’ll keep you all posted

Also I’ve tried all of those things including setting my memory log to 1 and back, no difference.

---

<div class="post-metadata">

**Author:** ![anettoph](https://forum.mikrotik.com/letter_avatar/anettoph/32/6_449c533f586939b6e5f246632a46421f.png) [@anettoph](https://forum.mikrotik.com/u/anettoph)\
**Post date:** [August 29, 2024, 9:12am UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/25 "2024-08-29T09:12:09Z")

</div>

hAP ax^3 7.15.3 (stable)

```plaintext
FROM alpine:3.20
CMD ["/bin/sh" , "-c", "while true; do echo 'test'; sleep 1; done"]

DOCKER_BUILDKIT=1 docker buildx build --platform linux/arm64/v8 --output=type=docker --tag mikrotik-test:latest .
docker save mikrotik-test:latest > mikrotik-test.tar

```

![1.png](https://data-discourse.cdn.mikrotik.com/original/3X/d/7/d76d6768181a0eb5c5b9d9a9ac6937a0e2033954.png)  
 ![2.png](https://data-discourse.cdn.mikrotik.com/original/3X/d/a/da080398fd266ed95feb4ed2ea42266b1bbd3670.png)  
cpu load 0-1%

---

<div class="post-metadata">

**Author:** ![anettoph](https://forum.mikrotik.com/letter_avatar/anettoph/32/6_449c533f586939b6e5f246632a46421f.png) [@anettoph](https://forum.mikrotik.com/u/anettoph)\
**Post date:** [September 2, 2024, 8:23am UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/26 "2024-09-02T08:23:03Z")

</div>

In my case reason was in RAM High.

> ram-high RAM usage limit \> **(in bytes)**\> . ( 0 for unlimited)

P.S. Plz add G/M/K suffix

---

<div class="post-metadata">

**Author:** ![felted67](https://forum.mikrotik.com/letter_avatar/felted67/32/6_449c533f586939b6e5f246632a46421f.png) [@felted67](https://forum.mikrotik.com/u/felted67)\
**Post date:** [September 2, 2024, 10:55am UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/27 "2024-09-02T10:55:55Z")

</div>

Hi everyone,

perhaps it might be a storage problem ?

I discovered that using a “normal” USB3-Memory-Stick in a RB5009 slows down the performance massive.  
When running my project in a chr-environment it is very much faster.

USB-Devices have mainly only 1 (or 2) read/write-threads at the same time. This can be a problem when  
massive reads/write are done.

Regards,  
Detlef

---

<div class="post-metadata">

**Author:** ![holvoetn](https://forum.mikrotik.com/letter_avatar/holvoetn/32/6_449c533f586939b6e5f246632a46421f.png) [@holvoetn](https://forum.mikrotik.com/u/holvoetn)\
**Post date:** [September 2, 2024, 12:49pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/28 "2024-09-02T12:49:14Z")

</div>

> [@](#):
>
> I discovered that using a “normal” USB3-Memory-Stick in a RB5009 slows down the performance massive.  
> When running my project in a chr-environment it is very much faster.

Be careful (expecially with RB5009) when using USB3 as storage.  
For some USB devices it will after reboot come back up as USB2. Huge difference !

USB reset solves the issue (or they need to wait a bit longer after reboot).  
Support is aware of the issue (since some months already) but no ETA for a real fix.  
So a workaround needs to be used if you are affected by this.

---

<div class="post-metadata">

**Author:** ![felted67](https://forum.mikrotik.com/letter_avatar/felted67/32/6_449c533f586939b6e5f246632a46421f.png) [@felted67](https://forum.mikrotik.com/u/felted67)\
**Post date:** [September 2, 2024, 2:32pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/29 "2024-09-02T14:32:41Z")

</div>

Well, I saw this issue already, thanks.

The worst case is that USB2 / USB3 is mapped to a different slot.  
That means if you installed on USB3/slot, switching to USB2 gives no access then  
to your container.

Using my container-image I just finished downloads on a “normal”-disk-installation in about  
30 minutes. When using a USB-device (SanDISK / normal status), it takes about 2 hours !!!

Edit: I will try to mount a virtual USB device to one of my CHR-installations. This will perhaps  
give a clue if thats a hardware- or software-problem in routeros.

Regards,  
Detlef

---

<div class="post-metadata">

**Author:** ![andrebrandao](https://forum.mikrotik.com/letter_avatar/andrebrandao/32/6_449c533f586939b6e5f246632a46421f.png) [@andrebrandao](https://forum.mikrotik.com/u/andrebrandao)\
**Post date:** [September 17, 2024, 12:42pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/30 "2024-09-17T12:42:03Z")

</div>

> [@](#):
>
> Ever since updating to 7.14, and all version I’ve updated to so far, my containers perform _incredibly_ slowly.  
> (see updates below, it happens in 7.14 too)
> 
> - 
> - A container will say it is running but takes 10+ minutes for the programs running in it to become accessible, sometimes it doesn’t even succeed even though the container is listed as “running”.  
>   
>   
> 
> - 
> - The response from the program running in the container is horribly slow  
>   
>   
> 
> - 
> - I have tried this with multiple different containers with the same result  
>   
>   
> 
> - 
> - I have tried using the local flash storage or a USB-attach SSD with the same result  
>   
>   
> 
> - 
> - I have completely removed all containers and started again, but it does not improve  
>   
>   
> 
> - 
> - Sometimes rebooting the router appears to fix it, but of the container is restarted while RouterOS is running the problem comes right back  
>   
>   
> 
> - 
> - CPU and Memory stats show that the containers take up very little CPU and Memory, so it’s not a problem with those resources.
> 
> Has anyone else experiencing this? I’m on a
> 
> ```plaintext
> RB5009UPr+S+
> 
> ```
> 
> .

Hello friend, I hope you are well.

I had the same problem as you and I did the same tests without success, today I decided to do a general analysis again and I solved my problem. I have 3 containers (pihole, observium and smokeping) running on a mini pc Router OS x86 (intel N100 processor, 16Gb RAM and 500GB NVME) 7.16rc4 (I had the same problem in 7.15), since 2 of my containers are for ICMP and SNMP monitoring I noticed that the collection time was wrong and they were apparently using data from my router OS. I did the following steps and the performance improved a lot:

1 - I stopped all the containers (I didn’t need to remove them);

2 - I activated NTP-client and adjusted it so that the Timezone, clock and date were correct;

3 - I adjusted my environment variables (envs) for each container (TZ=Brazil/East);

4 - I turned on all the containers again and checked via “shell” with the “date” command if all the timezone, date and clock data were correct.

After that my machines are running very well, like a normal Linux/Docker container.

I hope this can help you, this topic helped me a lot with containers in Router OS and I hope to be able to contribute to you with this experience. I hope Mikrotik can release the possibility of manipulating container resources, because I see a great future for Router OS doing virtualization (there is a huge market right now for ISPs).

---

<div class="post-metadata">

**Author:** ![autonomous](https://forum.mikrotik.com/letter_avatar/autonomous/32/6_449c533f586939b6e5f246632a46421f.png) [@autonomous](https://forum.mikrotik.com/u/autonomous)\
**Post date:** [December 13, 2024, 8:31pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/31 "2024-12-13T20:31:35Z")

</div>

> [@](#):
>
> > [@](#):
> >
> > Ever since updating to 7.14, and all version I’ve updated to so far, my containers perform _incredibly_ slowly.  
> > (see updates below, it happens in 7.14 too)
> > 
> > - 
> > - A container will say it is running but takes 10+ minutes for the programs running in it to become accessible, sometimes it doesn’t even succeed even though the container is listed as “running”.  
> >   
> >   
> > 
> > - 
> > - The response from the program running in the container is horribly slow  
> >   
> >   
> > 
> > - 
> > - I have tried this with multiple different containers with the same result  
> >   
> >   
> > 
> > - 
> > - I have tried using the local flash storage or a USB-attach SSD with the same result  
> >   
> >   
> > 
> > - 
> > - I have completely removed all containers and started again, but it does not improve  
> >   
> >   
> > 
> > - 
> > - Sometimes rebooting the router appears to fix it, but of the container is restarted while RouterOS is running the problem comes right back  
> >   
> >   
> > 
> > - 
> > - CPU and Memory stats show that the containers take up very little CPU and Memory, so it’s not a problem with those resources.
> > 
> > Has anyone else experiencing this? I’m on a
> > 
> > ```plaintext
> > RB5009UPr+S+
> > 
> > ```
> > 
> > .
> 
> Hello friend, I hope you are well.
> 
> I had the same problem as you and I did the same tests without success, today I decided to do a general analysis again and I solved my problem. I have 3 containers (pihole, observium and smokeping) running on a mini pc Router OS x86 (intel N100 processor, 16Gb RAM and 500GB NVME) 7.16rc4 (I had the same problem in 7.15), since 2 of my containers are for ICMP and SNMP monitoring I noticed that the collection time was wrong and they were apparently using data from my router OS. I did the following steps and the performance improved a lot:
> 
> 1 - I stopped all the containers (I didn’t need to remove them);
> 
> 2 - I activated NTP-client and adjusted it so that the Timezone, clock and date were correct;
> 
> 3 - I adjusted my environment variables (envs) for each container (TZ=Brazil/East);
> 
> 4 - I turned on all the containers again and checked via “shell” with the “date” command if all the timezone, date and clock data were correct.
> 
> After that my machines are running very well, like a normal Linux/Docker container.
> 
> I hope this can help you, this topic helped me a lot with containers in Router OS and I hope to be able to contribute to you with this experience. I hope Mikrotik can release the possibility of manipulating container resources, because I see a great future for Router OS doing virtualization (there is a huge market right now for ISPs).

This wasn’t my issue at all. I’m not sure where you got the impression that the timezone was out of sync.

---

<div class="post-metadata">

**Author:** ![autonomous](https://forum.mikrotik.com/letter_avatar/autonomous/32/6_449c533f586939b6e5f246632a46421f.png) [@autonomous](https://forum.mikrotik.com/u/autonomous)\
**Post date:** [December 13, 2024, 8:32pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/32 "2024-12-13T20:32:34Z")

</div>

> [@](#):
>
> Hi everyone,
> 
> perhaps it might be a storage problem ?
> 
> I discovered that using a “normal” USB3-Memory-Stick in a RB5009 slows down the performance massive.  
> When running my project in a chr-environment it is very much faster.
> 
> USB-Devices have mainly only 1 (or 2) read/write-threads at the same time. This can be a problem when  
> massive reads/write are done.
> 
> Regards,  
> Detlef

I’ve tried it with different kinds of USB storage, iscsi storage, and NFS storage, a well as the local flash. The problem is identical across them all.

---

<div class="post-metadata">

**Author:** ![nabeelr](https://forum.mikrotik.com/letter_avatar/nabeelr/32/6_449c533f586939b6e5f246632a46421f.png) [@nabeelr](https://forum.mikrotik.com/u/nabeelr)\
**Post date:** [July 24, 2026, 3:46pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/33 "2026-07-24T15:46:33Z")

</div>

Wondering if anyone found a solution to this.

When I run Home Assistant and a backup starts, the container grinds to a halt. CPU usage and ram usage in the container are low and acceptable… but the upload of the backup is taking hours and the veth isn't showing much activity, and communicating with the HA web interface is unusably slow.

I can't seem to find a cause for it.

Restarting the container will fix it for a bit, but the next time a backup happens, or any sort of heavy load, and this will happen.

It's like a high load will clamp it down and grind it to a halt until the task finishes, but it throttles it so badly that if the load was less and untrottled it would finish faster… if you get my meaning.

~~Other containers are fine. It seems to be container dependent, and there is more than enough RAM or CPU availability for it to work,~~ and disk i/o is basically at idle… In fact the whole container seems to be at idle… but there is indeed a task running on it that should be using up a lot of resources.

Edit: Just realized, when this happens, ALL containers grind to a halt. Even ones that aren't doing much. Despite this, the rest of my description is accurate. No disk i/o, little CPU usage, more than enough RAM… but yet, all containers grind to a halt.

Any ideas?

Just an update: the MOMENT the backup finished, the container went back to being snappy again. But again, the whole while, CPU, RAM, network, and disk I/O usage was very low… far lower than what it would be under normal usage. Like it's idling. ~~I'd think this is an issue with Home Assistant, but my Influx DB, Grafana and Pi Hole containers do this too from time to time. Also, one container doesn't affect the other. One container can be down to a halt, and the others will be fine, even if they share a veth.~~

---

<div class="post-metadata">

**Author:** ![nabeelr](https://forum.mikrotik.com/letter_avatar/nabeelr/32/6_449c533f586939b6e5f246632a46421f.png) [@nabeelr](https://forum.mikrotik.com/u/nabeelr)\
**Post date:** [August 3, 2026, 9:32am UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/34 "2026-08-03T09:32:21Z")

</div>

I can't tell if I'm reading tea leaves or not, but it seems like optimizing RAM high, RAM Max, tempfs, shm size, and the global RAM high and RAM max settings seems to have reduced the issue a bit.

It seems that if any of the container's resources gets used up (not the actual hardware's resources) it seems to clamp down resources for all containers, not just the one running low on them, regardless of if the system still has plenty of resources available.

Still not sure if I'm seeing what I think I'm seeing, but HA backups don't seem to take as long and performance of it's own and other containers don't seem to be impacted as much anymore.

---

<div class="post-metadata">

**Author:** ![nabeelr](https://forum.mikrotik.com/letter_avatar/nabeelr/32/6_449c533f586939b6e5f246632a46421f.png) [@nabeelr](https://forum.mikrotik.com/u/nabeelr)\
**Post date:** [September 13, 2026, 5:25pm UTC](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900/35 "2026-09-13T17:25:19Z")

</div>

anyone figure out anything more about this?

For some reason it's gotten dramatically worse lately. for a while, it was better, but now backups have gone from taking 3 hours, to taking 12.

All the while with little to no activity, but uploads seem to have gotten faster.

It doesn't make sense.

It's got to be a bug in how containers are implemented.

Is there any way to escalate this to an engineering team?

[Previous page](https://forum.mikrotik.com/t/horrible-container-performance-from-7-14-up-to-7-15rc2/175900.md?page=1)
