datastruct/existence: add --groupobjs to decouple commit width from nobjects

This is a benchmarking convenience, not a fix.  Nothing is wrong with the
current behavior; this only adds a knob.

Both benchmarks commit an entire rotation as a single existence group, so the
width of the atomic commit is tied to nobjects, which is in turn tied to
--updatespacing.  There is no way to hold the commit width fixed while varying
the number of keys, or vice versa: changing either one changes both.

That coupling is awkward when comparing the existence technique against
another multi-item-update mechanism, since the two engines then differ in the
number of keys moved and in the atomicity width at the same time, and the two
effects cannot be separated.

Add --groupobjs N, which chunks a rotation into groups of N objects, each
committed as its own existence group.  N must be a non-negative multiple of 3
so that every group holds whole three-cycles.  The default of 0 commits the
whole rotation as one group, which is exactly the historical behavior, so this
patch does not change the meaning of any existing command line.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2 files changed