From 38fae310843b7431136f40bfa8cf7c6bec59450f Mon Sep 17 00:00:00 2001 From: Miklos Tirpak Date: Tue, 12 Jan 2021 15:14:02 +0100 Subject: vlib: increase the stats epoch only when necessary When the counter vectors are validated and they are already long enough to fit the given index in memory, there is no need to increase the stats segment epoch. In this case, the counter vectors do not change as a result of the validation. This optimization is necessary for the case when the configuration is changed at multiple thousands per second rate. The counter vectors grow at the beginning and their size stabilizes after a while. Without this improvement, it can still take several seconds for a stats reader to succeed. Type: improvement Signed-off-by: Miklos Tirpak Change-Id: I5a6c30255832716a1460018d0bd0f63031de102b --- src/plugins/unittest/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/unittest/CMakeLists.txt') diff --git a/src/plugins/unittest/CMakeLists.txt b/src/plugins/unittest/CMakeLists.txt index 2b358a5d906..64a7706034b 100644 --- a/src/plugins/unittest/CMakeLists.txt +++ b/src/plugins/unittest/CMakeLists.txt @@ -50,4 +50,5 @@ add_vpp_plugin(unittest unittest.c util_test.c vlib_test.c + counter_test.c ) -- cgit 1.2.3-korg