hdf5/testpar
John Mainzer c100b0bf26 [svn-r11470] Purpose:
Repair synchronization bug in the metadata cache in PHDF5

Also repair numerous other bugs that surfaced in testing the
bug fix.


Description:

While operations modifying metadata must be collective, we allow
independant reads.  This allows metadata caches on different processes
to adjust to different sizes, and to place the entries on their dirty
lists in different orders.  Since only process 0 actually writes
metadata to disk (all other processes thought they did, but the writes
were discarded on the theory that they had to be collective), this made
it possible for another process to modify metadata, flush it, and then
read it back in in its original form (pre-modification) form.  The
possibilities for file corruption should be obvious.


Solution:

Make the policy that only process 0 can write to file explicit, and
visible to the metadata caches.  Thus only process 0 may flush dirty
entries -- all other caches must retain dirty entries until they are
informed by process 0 that the entries are clean.

Synchronization is handled by counting the bytes of dirty cache entries
created, and then synching up between the caches whenever the sum
exceeds an (eventually user specified) limit.  Dirty metadata creation
is consistent across all processes because all operations modifying
metadata must be collective.

This change uncovered may bugs which are repaired in this checkin.
It also required modification of H5HL and H5O to allocate file space
on insertion rather than on flush from cache.


Platforms tested:

H5committest, heping(parallel & serial)

Misc. update:
2005-09-27 00:20:11 -05:00
..
Makefile.am [svn-r11411] Purpose: 2005-09-13 17:30:33 -05:00
Makefile.in [svn-r11446] Purpose: 2005-09-20 16:46:24 -05:00
t_chunk_alloc.c [svn-r11349] Purpose: 2005-09-05 15:23:02 -05:00
t_coll_chunk.c [svn-r11294] Purpose: 2005-08-24 21:45:25 -05:00
t_dset.c [svn-r11245] Purpose: 2005-08-13 15:53:35 -05:00
t_file.c [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
t_fphdf5.c [svn-r11245] Purpose: 2005-08-13 15:53:35 -05:00
t_mdset.c [svn-r11470] Purpose: 2005-09-27 00:20:11 -05:00
t_mpi.c [svn-r11459] Purpose: 2005-09-22 09:39:32 -05:00
t_ph5basic.c [svn-r11245] Purpose: 2005-08-13 15:53:35 -05:00
t_span_tree.c [svn-r11245] Purpose: 2005-08-13 15:53:35 -05:00
testpar.h [svn-r10125] Purpose: 2005-03-02 23:06:14 -05:00
testph5.sh.in [svn-r8161] Purpose: 2004-02-07 12:24:57 -05:00
testphdf5.c [svn-r11448] Purpose: 2005-09-21 08:41:09 -05:00
testphdf5.h [svn-r11312] Purpose: 2005-08-29 23:35:17 -05:00