Commit d74c09f
Andy Stokely
Set default PnetCDF header alignment to 128 KiB
Increase the default Parallel NetCDF header alignment to 128 KiB when
creating new files with SMIOL. This size is sufficiently larger than the
header of a typical MPAS restart file to reduce the likelihood of header
reallocation during ncmpi_enddef, which can lead to I O hangs when
overwriting string attributes or variables with larger values. This
change addresses the hang reported in MPAS Workflow issue 384 and does
not affect calculation results or I O performance in preliminary tests.
The alignment hint may be overridden via the PNETCDF_HINTS environment
variable.1 parent 9fa8cb2 commit d74c09f
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| 328 | + | |
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
| |||
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
340 | 344 | | |
341 | 345 | | |
342 | | - | |
| 346 | + | |
343 | 347 | | |
| 348 | + | |
344 | 349 | | |
345 | 350 | | |
346 | 351 | | |
| |||
0 commit comments