There is "stat segment" [0] way of publishing counters. But it was added somewhat recently, so ipsec code probably does not support it (yet).
Vratko. [0] https://github.com/FDio/vpp/blob/master/src/vpp/stats/stats.md From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Kevin Yan Sent: Friday, 2018-November-02 02:40 To: vpp-dev@lists.fd.io Subject: [vpp-dev] question related to VPP statistics Hello VPP experts, We are designing an application mainly acting as a SeGW, VPP is used as fast-path, we have a slow-path application called ipsecAgent to manage ipsec tunnels. ipsecAgent need to get the ipsec tunnel statistics from VPP to trigger some features, such as , Re-key when packets/bytes reaches the limitation, ipsec tunnel deletion when inactivity timer reached, etc. If we use binary API to communicate between slow-path and VPP, I don’t know if there will be performance issue here, for example, if we support 100k ipsec tunnels, slow path need to query the ipsec statistics every 5 seconds per tunnel, then there will be 100000/5=20000 messages/s. What we are thinking of is if we can use shared memory directly, i.e. VPP creates shared memory at startup phase, and ipsec related statistics are stored and updated in this shared memory, slow-path only map this shared memory and get statistics by reading shared memory directly. Is it more efficient ? or we can use other solution VPP already provided but I don’t know yet. Thanks. BRs, Kevin ________________________________ This e-mail message may contain confidential or proprietary information of Mavenir Systems, Inc. or its affiliates and is intended solely for the use of the intended recipient(s). If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies in your control and contact us by e-mailing to secur...@mavenir.com<mailto:secur...@mavenir.com>. This message contains the views of its author and may not necessarily reflect the views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor email messages, but make no representation that such messages are authorized, secure, uncompromised, or free from computer viruses, malware, or other defects. Thank You
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11411): https://lists.fd.io/g/vpp-dev/message/11411 Mute This Topic: https://lists.fd.io/mt/27823623/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-