<div dir="ltr">Hi folks,<div><br></div><div>During the performance tests I&#39;ve been doing lately I noticed</div><div>that the size of the Southbound database was around 2.5GB</div><div>in one of my setups. I couldn&#39;t dig further then but now I</div><div>decided to explore a bit more and these are the results in</div><div>my all-in-one OpenStack setup using OVN as a backend:</div><div><br></div><div>* Created 800 ports on the same network (logical switch).</div><div>* Deleted those 800 ports.</div><div>* I logged the DB sizes for both NB and SB databases every second.</div><div><br></div><div>See attached image for the results.</div><div><br></div><div>At around x=2000, the creation task finished and deletion starts.</div><div>As you can see, there&#39;s automatic compact happening in the</div><div>NB database across the whole test. However, while I was deleting</div><div>ports, the SB database stop shrinking and keeps growing.</div><div><br></div><div>After the test finished, the DB sizes remaining the same</div><div>thus SB database being around 34MB. It was not until I</div><div>manually compacted it when it finally shrinked:</div><div><br></div><div><br></div><div><div>[stack@ovn ovs]$ ls -alh ovnsb_db.db</div><div>-rw-r--r--. 1 stack stack 34M Mar  7 12:04 ovnsb_db.db</div><div><br></div><div>[stack@ovn ovs]$ sudo ovs-appctl -t /usr/local/var/run/openvswitch/ovnsb_db.ctl ovsdb-server/compact</div><div><br></div><div>[stack@ovn ovs]$ ls -alh ovnsb_db.db</div><div>-rw-r--r--. 1 stack stack 207K Mar  7 13:32 ovnsb_db.db</div></div><div><br></div><div>I&#39;ll try to investigate further in the code.</div><div>Thanks,</div><div><br></div><div>Daniel</div></div>