Skip to content

Commit

Permalink
perf: disable mlockall to reduce memory usage
Browse files Browse the repository at this point in the history
mlockall will lock all virtual memory page into physic memory and prevent memory recycle.
With this option rss size reduced from 39M to 7M
  • Loading branch information
oilbeater committed Aug 9, 2022
1 parent e6eace8 commit 14beb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/images/start-ovs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ else
fi

# Start vswitchd. restart will automatically set/unset flow-restore-wait which is not what we want
/usr/share/openvswitch/scripts/ovs-ctl start --no-ovsdb-server --system-id=random
/usr/share/openvswitch/scripts/ovs-ctl start --no-ovsdb-server --system-id=random --no-mlockall
/usr/share/openvswitch/scripts/ovs-ctl --protocol=udp --dport=6081 enable-protocol

sleep 1
Expand Down

0 comments on commit 14beb48

Please sign in to comment.