-
Bug
-
Resolution: Open
-
High
-
None
-
19.08, 20.01, 20.05
-
OS:
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
g++
g++ (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
VPP Version:
stable/1908
OS: PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL=" https://www.debian.org/ " SUPPORT_URL=" https://www.debian.org/support " BUG_REPORT_URL=" https://bugs.debian.org/ " g++ g++ (Debian 8.3.0-6) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. VPP Version: stable/1908
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.