how to set a proper chunk size in hdf5 according to this answer, a proper chunk size is important for optimizing I/O perfromance.