merge 3 cases of page_size setting #1356