This not really a matter of "combination", they are pretty much separate
things.
Increase LockHashSlots to a higher prime if the "Hash lengths" in the
fb_lock_print output become very long (on average 20 or more is the
general advice).
In any case, LockMemSize is the initial allocation size, and the growth
increment if lock memory needs to grow. I'm not sure if there is a solid
advice to give on its sizing (though on the other hand, its default of
64 KiB is of course peanuts these days).
Mark
--
Mark Rotteveel