Hi, you can replikate issue using (tested on x86 and CCR1036)
:local MARK
:local OC3
:local OC4
:set MARK 1
:set OC3 1
:set OC4 1
for i from=1 to=6000 do={
/ip firewall mangle add chain=postrouting src-address="192.168.$OC3.$OC4" action=mark-packet new-packet-mark=$MARK
/ip firewall mangle add chain=prerouting src-address="192.168.$OC3.$OC4" action=mark-packet new-packet-mark=$MARK
/queue/tree/add parent=global packet-mark=$MARK
:set OC4 ($OC4 + 1)
:set MARK ($MARK + 1)
:if ( $OC4 = 254) do={
:set OC3 ($OC3 + 1)
:set OC4 1
}
}
result and system info:
[admin@MikroTik] /queue/tree> /system/script/run script2
failure: too many packet marks in system
[admin@MikroTik] /queue/tree> /system/resource/print
uptime: 22m48s
version: 7.6 (stable)
build-time: Oct/17/2022 10:55:40
factory-software: 7.1
free-memory: 7.4GiB
total-memory: 7.7GiB
cpu: Intel(R)
cpu-count: 4
cpu-frequency: 2105MHz
cpu-load: 3%
free-hdd-space: 221.7GiB
total-hdd-space: 221.7GiB
write-sect-since-reboot: 257184
write-sect-total: 257184
architecture-name: x86_64
board-name: x86
platform: MikroTik