WinBox 4.5 / RouterOS 7.25.2 — sustained CPU load with Firewall Address Lists open

WinBox 4.5 / RouterOS 7.25.2 — sustained CPU load with Firewall Address Lists open

When using Winbox i find repeatable CPU load when displaying IP → Firewall → Address Lists. Both routers run RouterOS 7.25.2 with WINBOX 4.5. I do have quite a few address list, especially the RB5009.

Router Total address-list entries CPU with window open
PowerBox Pro RB960PGS 16,737 Approximately 100%
RB5009UG+S+IN 130,160 Approximately 25%

CPU remains elevated after the displayed count finishes. Closing the Address Lists window returns CPU to low levels. Reopening it reproduces the load.

For comparison CLI commands:

/ip firewall address-list print count-only

Returns quickly with little noticeable CPU load.

/ip firewall address-list print count-only where list="CIArmy"

Returns 15,000 entries. On the PowerBox, this causes approximately 10 seconds of high CPU before returning to normal.

An earlier profile during the high-load condition showed most CPU usage under interface-mgmt.

This suggests expensive table queries or repeated refresh activity, but I haven’t isolated whether the cause is WinBox or RouterOS. Has anyone reproduced this with the same versions, or compared it with another WinBox version?

  1. PowerBox Pro is like a PoE switch than a router for high speed...
    Don't expect performance on par with a RB5009...

  2. Try version 7.24 and compare whether Winbox 3 and 4 have the same issue,
    to see if it stems from RouterOS or Winbox 4.

Thanks for that, it's not the performance issue or difference I am referring to , its Winbox, both routers seems to hang in a loop when just viewing Firewall Address List, CPU stay elevated after the count anduntil you exit that window. In CLI mode, it drops back once the query is done.

That's because in the CLI you only ask the router to fetch the address list once. While in WinBox you are periodically polling for changes. It depends on how this polling it done, for example RouterOS might resend everything with each polling, or it might cache the previous answer (similar to how the last print is remembered) and then compare with the current content and send the delta.

Both approaches will use a lot of CPU on the router if you have 170K entries. Another approach that would probably use less CPU is that RouterOS remembers the timestamp of the last change made to the address list and considers the changeset empty if it's older than the latest polling. But it only help with static lists, for other lists like the conntrack list where the items and counters change all the time, it's probably more suitable to send everything each time.

If your address list is mostly static (no dynamic entries from FW add-dst-to-address-list / add-src-to-address-list rules), then you can use this button:

image

to pause the update of the list and have a static view in WinBox. This shoudl remove the load from the router.

To have something equivalent to WinBox with the live view update, you'd need to run the command:

/ip firewall address-list print interval=1s

And with that you'll also see very high load on the router.