Hello everyone, here I come across some wired issues regarding vapi performance. Reproduce :
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 1. Start VPP with default configuration like "systemctl restart vpp" 2. compile the following code,see file attached, with command "g++ ./main.cpp -lboost_system -lvom -lvapiclient" 3. 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 400 times or so, even after I add sleep between two consecutive dumps. On another machine, it exits too early as well. Does someone meet the same problem here?
main.cpp
Description: Binary data
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17155): https://lists.fd.io/g/vpp-dev/message/17155 Mute This Topic: https://lists.fd.io/mt/76027193/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-