Description

Memory leak in rpd might be observed in TI-LFA scenario

Symptoms

{master}

root > show task memory detail 

 ------------------------- Overall Memory Report -------------------------

 Size TXP  Allocs  Mallocs AllocBytes MaxAllocs  MaxBytes FreeBytes

  

  100   11296637     - 1129663700  20006623 1129862500   198800

 

 

 -------------------------- Malloc Usage Report --------------------------

 Name           Allocs   Bytes MaxAllocs MaxBytes FuncCalls

 

 OSPF          11355156 1132873880 11430603 1137870148 3798208356

 OSPF I/O            2  139264    28  171448 535555462

 

 

The fix of this PR involves addressing 2 types of memory leak in rpd (100byte and 68bytes). 100 byte leak is applicable for both ISIS and OSPF, which occurs when change of TI-LFA topology involves a node deletion; while 68 byte leak is applicable for OSPF only.

Once the memory crosses the 95% of benchmark, there might be undesirable results with kernel operations and it could lead to crash in the kernel.

Solution

The issue is matching with PR 1572868

 

If Topology-Independent Loop-Free Alternate (TI-LFA) with Segment Routing (SR) for ISIS/OSPF is enabled, two types of memory leak in rpd may be observed:

 1) 100 byte leak occurs when a node is deleted from the TI-LFA topology, which is applicable for both ISIS and OSPF, this is likely to occur every time. 

2) 68 byte leak occurs when a computed label list is ignored during OSPF route update, which is hard to reproduce and should have a high leak rate.

 

RESOLVED IN

 

Junos

19.2R1-S5-J2

19.2R1-S7-J1

19.2R3-S2

20.1R3

20.3R3

20.4R2

20.4R3

21.1R2

21.2R1

 

Modification History

2023-12-26 : Article Created