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 3553373 commit 84aba41
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 @@ -135,7 +135,7 @@ function exchange_link_names() {
exchange_link_names

# 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 84aba41

Please sign in to comment.