<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div>I'm running OVS through valgrind since last night and so far so good in terms of performance. Probably because this host is not running network intensive guests.</div>
<div><br>
</div>
<div>I'm running this command from a screen session so I can detach from it without killing valgrind:</div>
<div><br>
</div>
<div>valgrind --leak-check=full --show-leak-kinds=all -v --log-file=ovs-valgrind.log /usr/sbin/ovs-vswitchd --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --mlockall unix:/var/run/openvswitch/db.sock</div>
<div><br>
</div>
<div>Originally Alpine is starting ovs-ovswitchd with --detach and --monitor options but since I'm not running it as a daemon and I don't need the monitor process I thought removing those options was a good idea.</div>
<div>I'm new to all this but valgrind process RSS size is the same as when I started it (around 140MB). Not sure if this is because ps will show me only valgrind's RSS size and not ovs-vswitchd's or if this is because I started valgrind the wrong way.</div>
<div><br>
</div>
<div>For how long would you suggest I should keep valgrind running? 2-3 days?</div>
<div><br>
</div>
<div>Thanks for looking into this Ben.</div>
<div><br>
On lun, mar 4, 2019 at 6:22 PM, Ben Pfaff &lt;blp@ovn.org&gt; wrote:<br>
<blockquote type="cite">
<div class="plaintext" style="white-space: pre-wrap;">Running OVS through valgrind is probably going to be unacceptably slow. If it works for you, though, then it will probably tell us the location of the leak. It is possibly a better option to use Address
 Sanitizer. It is just as good as valgrind for locating memory leaks, but it is much, much faster, possibly fast enough to use in production. On Sun, Mar 03, 2019 at 10:53:17PM &#43;0000, Fernando Casas Schössow wrote:
<blockquote>After doing some reading I'm wondering if instead of getting a core dump (which I already collected when the process got to around 700MB) it would be better to run OVS through Valgrind and share the log file. What do you think? Any specific OVS
 or valgrind flags I should use? </blockquote>
</div>
</blockquote>
<br>
<br>
</div>
</body>
</html>