refine config, check chunk size.