diff mbox series

[ovs-dev,ovn,RFC,v3,29/29] Set cut-off values to best guesstimates

Message ID 20200716131927.3943-30-anton.ivanov@cambridgegreys.com
State RFC
Headers show
Series [ovs-dev,ovn,RFC,v3,01/29] Move out Table 0 operations to functions | expand

Commit Message

Anton Ivanov July 16, 2020, 1:19 p.m. UTC
From: Anton Ivanov <anton.ivanov@cambridgegreys.com>

This sets the cut-off values for switching between
parallel and sequential processing to a reasonable guesstimate.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
---
 northd/ovn-northd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index ef188fb88..4d61cdbba 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -7195,8 +7195,8 @@  build_lswitch_flows_step_120_op(
     ds_destroy(&match);
 }
 
-#define OD_CUTOFF 1
-#define OP_CUTOFF 1
+#define OD_CUTOFF 64
+#define OP_CUTOFF 4
 
 struct lswitch_flow_build_info {
     struct hmap *datapaths;
@@ -11186,7 +11186,7 @@  hmap_safe_remove(struct hmap *hmap, struct hmap_node *node, size_t hash)
     return false;
 }
 
-#define RECONCILE_CUTOFF 1
+#define RECONCILE_CUTOFF 1024
  
 static ssize_t max_seen_lflow_size = 128;