[ovs-dev] [PATCH 4/4] ovsdb: Compact databases online automatically and on-demand.

Jesse Gross jesse at nicira.com
Thu Mar 18 00:08:00 UTC 2010


On Tue, Mar 16, 2010 at 6:24 PM, Ben Pfaff <blp at nicira.com> wrote:

> If the database grows fairly large, and we've written a fair number of
> transactions to it, and it's been a while since the database was compacted,
> then (after the next commit) compact the database.
>
> Also, compact the database online if the "ovsdb-server/compact" command is
> issued via unixctl.  I suspect that this feature will rarely if ever be
> used in practice, but it's easier to test than compacting automatically.
>
> Bug #2391.
>

I think that this (and the rest of the set) looks good generally but it made
me wonder about the impact of compaction while running.

Since this will stop all other database activity, how long do you think that
it might run for?  I had a large database that I manually compacted and I
think I remember it taking several minutes, which could cause connections to
timeout.  Obviously running compaction more frequently will reduce the
amount of time that it takes.  In theory it might also be nice to wait on
compaction if we have pending work.

I suspect that most of this is not important in real life, just wondering if
you had any thoughts/tests.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20100317/edaf6d71/attachment-0003.html>


More information about the dev mailing list