vpp icon indicating copy to clipboard operation
vpp copied to clipboard

[VPP-1926] Inconsistent vpp api output

Open vvalderrv opened this issue 10 months ago • 1 comments

Description

Here I come across some weird issues regarding vapi performance. 

Reproduce :

 

    - Start VPP with default configuration like "systemctl restart vpp" -  run ` for i in {0..100}; do vppctl create loopback interface;vppctl set int state loop${i} up; done;` - compile the following code,see file attached, with command "g++ ./main.cpp -lboost_system -lvom -lvapiclient" - run ./a.out

Problems

This piece of code just wants to dump all the interfaces for like 10000 times in a while loop, if it finds no interfaces available, it breaks the loop and exit. 

 

On my laptop, it exits too early, dumps interfaces successfully only for like 495 times or so, even after I add sleep between two consecutive dumps.  Here's the weird phenomenon. The number of successful dump stays the same.

 

Assignee

Jan Cavojsky

Reporter

Stack Wu

Comments

No comments.

Original issue: https://jira.fd.io/browse/VPP-1926

vvalderrv avatar Feb 02 '25 09:02 vvalderrv