Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using file striping size to automatically set header extent size #124

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

wkliao
Copy link
Member

@wkliao wkliao commented Feb 23, 2024

Automatically set the size of file header extent using the file striping
size obtained from MPI-IO hint striping_unit may yield an unexpectedly
large file header extent and cause movement of data sections if new
metadata is added when the program re-enter the define mode. With this
commit, file striping size will no longer be used to set the file header
alignment size. However, users can still set nc_header_align_size in
PNETCDF_HINTS environment variable or v_align in ncmpi__enddef() to
customize the size of header extent.

PnetCDF does not support file offset alignment for individual variables.
The alignment is for the entire fixed-size variable section of the
entire record variable section.
Automatically set the size of file header extent using the file striping
size obtained from MPI-IO hint striping_unit may yield an unexpectedly
large file header extent and cause movement of data sections if new
metadata is added when the program re-enter the define mode. With this
commit, file striping size will no longer be used to set the file header
alignment size. However, users can still set nc_header_align_size in
PNETCDF_HINTS environment variable or v_align in ncmpi__enddef() to
customize the size of header extent.
@wkliao wkliao merged commit 23fbd10 into master Feb 23, 2024
4 checks passed
@wkliao wkliao deleted the h_align branch March 15, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant