diff options
author | Ben Pfaff <blp@ovn.org> | 2018-03-19 22:01:47 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-03-31 11:33:28 -0700 |
commit | 6a6b7060655ed30a5e3307c3a6f26ffb77a2b5be (patch) | |
tree | b536a8d97dc9c9482eb4ed937282659feab8fd5d /AUTHORS.rst | |
parent | 1dc1ec247e2a7fe126f9c8232a3d42521a8d8291 (diff) | |
download | openvswitch-6a6b7060655ed30a5e3307c3a6f26ffb77a2b5be.tar.gz |
ofp-flow: Reduce memory consumption for ofputil_flow_mod, using minimatch.
Until now, struct ofputil_flow_mod, which represents an OpenFlow flow table
modification request, has incorporated a struct match, which made the
overall ofputil_flow_mod about 2.5 kB. This is OK for a small number of
flows, but absurdly inflates memory requirements when there are hundreds of
thousands of flows. This commit fixes the problem by changing struct match
to struct minimatch inside ofputil_flow_mod, which reduces its size to
about 100 bytes plus the actual size of the flow match (usually a few dozen
bytes).
This affects memory usage of ovs-ofctl (when it adds a large number of
flows) more than ovs-vswitchd.
Reported-by: Michael Ben-Ami <mbenami@digitalocean.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Reviewed-by: Armando Migliaccio <armamig@gmail.com>
Tested-by: Armando Migliaccio <armamig@gmail.com>
Reviewed-by: Jan Scheurich <jan.scheurich@ericsson.com>
Tested-by: Jan Scheurich <jan.scheurich@ericsson.com>
Tested-by: Yifeng Sun <pkusunyifeng@gmail.com>
Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Diffstat (limited to 'AUTHORS.rst')
-rw-r--r-- | AUTHORS.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst index dc69ba3f3..81f9b6f28 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -506,6 +506,7 @@ Marvin Pascual marvin@pascual.com.ph Maxime Brun m.brun@alphalink.fr Madhu Venugopal mavenugo@gmail.com Michael A. Collins mike.a.collins@ark-net.org +Michael Ben-Ami mbenami@digitalocean.com Michael Hu mhu@nicira.com Michael J. Smalley michaeljsmalley@gmail.com Michael Mao mmao@nicira.com |