PER_ALLOC_COUNT
sizeof (command_t) * (cmds->allocated + PER_ALLOC_COUNT));
cmds->allocated += PER_ALLOC_COUNT;