recalculate pg_num when pg_num reach the max step value

Signed-off-by: Lu Yuan <yuan.y.lu@intel.com>