Single Traffic Monitor Script vs Multiple Traffic Monitor

Hi Guys,

I am doing bandwidth based load balancing at the moment. I have 16 Traffic Monitor rules that check the speeds of different PPPOE connections. Depending on the speeds they will enable and disable mangle entries that change my routing.

The problem I have is that having so many traffic monitor rules maxes my cpu the whole time.

I want to know if there isn’t a way to run a script a single time to see what the current download speeds are across all my PPPOE connections. Then I can save the speeds in variables and manipulate the mangle rules further in the script. That way I will use a lot less cpu power.

should be possible using :foreach :toarray and :pick stuff.