Hello everyone, here I come across some weird 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/ ( https://www.debian.org/ ) " SUPPORT_URL=" https://www. debian.org/support ( https://www.debian.org/support ) " BUG_REPORT_URL=" https://bugs. debian.org/ ( 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 * Start VPP with default configuration like "systemctl restart vpp" * 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. 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 (#17150): https://lists.fd.io/g/vpp-dev/message/17150 Mute This Topic: https://lists.fd.io/mt/76023655/21656 Mute #vapi: https://lists.fd.io/g/fdio+vpp-dev/mutehashtag/vapi Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-