When testing ovs with 10K or more tunnels with cfm/bfd enabled, it can be observed that the memory utilization of ovs-vswitchd process keeps growing. After investigation, it is found that the periodic statistics update to ovsdb becomes huge when there are that many interfaces, and would take long time for ovsdb to consume. The backlog of following updates in the jsonrpc sending queue causes the increase of memory utilization.
This series of patches solves the issue by adding rate-limit logic to the statistics update. Also, it refactors the code, making it easy to understand. Alex Wang (3): bridge: Rate limit the statistics update. bridge: Refactor the stats and status update. jsonrpc: Warn about excessive sending backlog. lib/jsonrpc.c | 6 ++ vswitchd/bridge.c | 211 +++++++++++++++++++++++++++++------------------------ 2 files changed, 122 insertions(+), 95 deletions(-) -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev