Hi,
I observed some issues about statistics segment, your help will be highly
appreciated:
1). "show statistics segment" return incorrect counters.
2). There is no vlib function to remove counters from statistics segment.
Details of each question:
1). "show statistics segment" return incorrect counters.
My VPP (release 19.08) started with only local interface (down) and pg
interfaces (didn't enable packet-generator), so there were no packets processed
at all:
vpp# show interface
Name IdxState MTU (L3/IP4/IP6/MPLS)
Counter Count
local00 down 0/0/0/0
pg0 1 up 9000/0/0/0
pg1 2 up 9000/0/0/0
However, when I do "show statistics segment", I saw most counters have non-0
values, just captured some below:
vpp# show statistics seg
Name
Type Value
/buffer-pools/default-numa-0/available
ScalarPtr 16800
/buffer-pools/default-numa-0/cached
ScalarPtr 0
/buffer-pools/default-numa-0/used
ScalarPtr 0
/err/af-packet-input/partial packet
ErrIndex 211
/err/ah4-decrypt/AH decryption failed
ErrIndex 1160
/err/ah4-decrypt/AH pkts received
ErrIndex 1159
/err/ah4-decrypt/IP fragments drop
ErrIndex 1163
/err/ah4-decrypt/Integrity check failed
ErrIndex 1161
I issued commands "clear errors", "clear counters" and "clear node counters",
but "show statistics segment" still same.
I added some code inside python test framework (make test TEST=..) to dump some
node's error counters and I did get 0 for all.
Is this a bug in "show statistics segment"?
2). There is no vlib function to remove counters from statistics segment.
I need to dynamically add/delete counters in statistics segment. But I don't
see any vlib function that can remove counters.
Is it easy to add one vlib function? Can you please provide some guide so I can
write that function by myself?
I also didn't find vlib function to decrement a counter, which seems easy to
add though.
Thanks a lot,
Bin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16044): https://lists.fd.io/g/vpp-dev/message/16044
Mute This Topic: https://lists.fd.io/mt/72920085/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-