dynamically resize DPB and set a user-defined maximum size