Page 1 of 1

hap ax3 - extremely slow containers if ram limit is set

Posted: Tue May 30, 2023 4:51 pm
by bogdano
Hi all

I have a hAP AX3 running the latest stable RouterOS (v7.9.1).

I also have the latest stable container package (v7.9.1).

I am trying to run pihole as container (on external USB 3.1 flash drive).

However, the container is extremely slow:
- it takes about 30 minutes before the pihole admin page is available
- load is always reported by the pihole as being higher than 8
- all actions in the interface are painfully slow
- CPU usage on the hAP AX3 is very low (less than 10%, typically 1-3%)
This however only happens if I set a limit for container memory. No matter how high I set the limit (i have set it between 200 and 1000), as long as the limit is >0, the container is slow.

If I set the limit to 0, then the container starts in a matter of seconds.

Anyone experiencing similar issues? Is this a bug/known issue?

Thanks!
Bogdan

Re: hap ax3 - extremely slow containers if ram limit is set

Posted: Thu Jun 01, 2023 5:44 am
by kaber420
you need to add the letter M
or maybe write 209715200 instead of 200M.
0=unlimited
200M = 209715200bytes
200 = 200bytes

Re: hap ax3 - extremely slow containers if ram limit is set

Posted: Sun Jun 04, 2023 11:35 pm
by bogdano
Hi
You are 100% right. I always assumes the limit was in M. But indeed, without the suffix i was actually setting the limit in bytes...
Thanks!!!!

Re: hap ax3 - extremely slow containers if ram limit is set

Posted: Mon Aug 21, 2023 5:52 pm
by petoKUBO
Hi,

I have the same problem, the container is extremely slow when I restart it.
When is newly created container adguard then it start very fast, but when I restarted it, it is extremely slow.

my ROS is v7.10
in container-config I am able to set only number, number and letter is not possible (60M)
when it is set to 0 - it start fast


anyone experiencing with this problem?

Re: hap ax3 - extremely slow containers if ram limit is set

Posted: Tue Aug 22, 2023 10:10 pm
by cyrq
Just like stated before, you need to input the value in bytes.