Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] bf_fwd issues

Subject: Rare project developers

List archive

Re: [rare-dev] bf_fwd issues


Chronological Thread 
  • From: Alexander Gall <>
  • To: <>
  • Cc: <>, Vágó Tibor <>, Frédéric LOUI <>
  • Subject: Re: [rare-dev] bf_fwd issues
  • Date: Wed, 11 May 2022 14:13:45 +0200

On Fri, 6 May 2022 17:16:56 +0200, mc36 <> said:

> they increase and seemingly the drawing also works as before....

Since the port counters are read from a pseudo-table (PORT_STAT), I
guess the read from the hardware is done implicitly by bf_switchd.
But then I wonder why the from_hw flag has any effect at all. It could
be that it triggers a refresh of the entire PORT_STAT table on top of
the regular updates. That could explain the performance impact. In any
case, if the regular updates are frequent enough for our purpose,
disabling from_hw is the correct thing to do.

--
Alex

> rare100Glns#show interfaces sdn49 hwhistory
> 8701k| ####
> 8398k| #### #### #### #### ####
> 8095k| #### #### #### #### ####
> 7792k| #### #### #### #### ####
> 7488k| #### #### #### #### ####
> 7185k| #### #### #### #### ####
> 6882k| #### #### #### #### ####
> 6579k| #### ######### ######### #### ####
> 6275k| #### ######### ######### #### ####
> 5972k| #### ######### ######### #### ####
> 5669k|############################################################
> bps|0---------10--------20--------30--------40--------50--------
> seconds


> rare100Glns#show interfaces sdn49.99 hwhistory
> 3375k| ####
> 3258k|#### #### #### #### ####
> 3141k|#### #### #### #### ####
> 3024k|#### #### #### #### ####
> 2907k|#### #### #### #### ####
> 2790k|#### #### #### #### ####
> 2673k|#### #### #### #### ####
> 2556k|#### ############## #### #### ####
> 2439k|#### ############## #### #### ####
> 2322k|#### ############## #### #### ####
> 2205k|############################################################
> bps|0---------10--------20--------30--------40--------50--------
> seconds





> On 5/6/22 17:15, Alexander Gall wrote:
>> On Fri, 6 May 2022 16:53:43 +0200, mc36 <> said:
>>
>>
>>> next, i commented out (as per frederic idea) the from-hw in bf_ports:
>>> https://github.com/rare-freertr/freeRtr/commit/f4a02a9b40fd8b976b63776a228619ff4f1f99d1
>>
>> But doesn't that break the counters?
>>



Archive powered by MHonArc 2.6.19.

Top of Page