Commit Graph

4247 Commits

Author SHA1 Message Date
Thomas Radke
bc5f379e7d [svn-r2560] Purpose:
Include the Stream VFD's header file H5FDstream.h.

Description:
     All the VFD's header files are included by hdf5.h itself for convenience.
2000-09-15 06:51:28 -05:00
Thomas Radke
c275f5e9c7 [svn-r2559] Purpose:
Add the Stream VFD sources to the appropriate makefile variables.

Description:
     Added H5FDstream.c to the LIB_SRC variable and H5FDstream.h
     to the PUB_HDR variable for building the Stream VFD.
2000-09-15 06:49:28 -05:00
Thomas Radke
e8e9d7b5ac [svn-r2558] Purpose:
Define HAVE_STREAM.

Description:
     If the Stream VFD was configured the configured script
     will expand this into
       '#define HAVE_STREAM 1' in H5config.h and
       '#define H5_STREAM 1'   in H5pubconf.h.
2000-09-15 06:47:08 -05:00
Thomas Radke
b4844aabb3 [svn-r2557] Purpose:
Added registration of the Stream Virtual File Driver.

Description:
     The Stream VFD is registered here if it was configured.
2000-09-15 06:42:53 -05:00
Thomas Radke
5a4c55b42c [svn-r2555] Purpose:
Added source files for the Stream Virtual File Driver.

Description:
     The Stream VFD allows users to stream complete HDF5 files
     via socket connections between different applications.

     Files which were created anew are flushed to any connected client
     on each H5Fflush() or H5Fclose() operation.
     Files which are opened as read-only will be read from a socket
     on a H5Fopen() call.

     The driver's H5FDset_fapl_stream() routine allows to pass in
     several parameters such as an external socket descriptor,
     some socket options, and flags for broadcasting a received file.
     If an external socket is provided the Stream VFD would use that
     for the socket calls. Otherwise it parses the filename argument
     in H5Fcreate()/H5Fopen() for a 'hostname::port' parameter.

     All files processed by the Stream VFD are kept in memory
     (same way as the core VFD does).

Platforms:
     Tested so far under Linux, Irix 32/64bit, OSF1, Solaris, Cray Unicos,
     Hitachi SR8000, IBM AIX.
     Not tested under Windows yet.
2000-09-15 06:35:39 -05:00
Quincey Koziol
a4d73cc16b [svn-r2551] Purpose:
Fix last couple of errors from introducing "regular" hyperslab feature
into the library.

Description:
    Code was blindly dereferencing data structures which aren't defined when
operating on regular hyperslabs.

Solution:
    Check for regular hyperslab defined and retrieve information from regular
hyperslab info instead of mucking about in other hyperslab information.

Platforms:
    Solaris 2.6
2000-09-14 17:54:21 -05:00
Bill Wendling
29a7f62218 [svn-r2548] Added #include <sys/resource.h> for the struct getrusage declaration.
Przemek Klosowski, Ph.D. <przemek@nist.gov> reported this problem on
Linux RH 6.1 systems.
2000-09-14 12:15:12 -05:00
Quincey Koziol
85a08f5bc9 [svn-r2546] Further patches to accomodate regular hyperslabs. More of the tests are
passing, but not all of them yet...
2000-09-13 18:49:54 -05:00
Quincey Koziol
1f109221df [svn-r2544] Optimized regular hyperslab I/O routines and data structures. On my benchmarks,
they are about 4-5 times faster than before.  We no longer generate "general"
hyperslab data structures for regular hyperslabs, the general data structures
are only generated when needed for irregular hyperslabs.

Still fixing a couple of nook-and-cranny functions to understand the new
information for the regular hyperslabs, so the tests aren't completely passing,
but I wanted to get this checked in for Elena's benchmarks.  I should have
more/all tests passing later today.
2000-09-13 16:58:18 -05:00
Albert Cheng
61e517a4b0 [svn-r2519] Snapshot version 1.3 release 29 2000-09-06 16:15:35 -05:00
Quincey Koziol
c0ec9f92a6 [svn-r2518] Backed out patch from user after further testing... 2000-09-06 15:30:00 -05:00
Bill Wendling
681b630ea5 [svn-r2517] Removed the incorrect #ifdef's. Since this file is generated from
autoheader, it was useless to add them in here...
2000-09-06 13:32:45 -05:00
Bill Wendling
a56d88a99a [svn-r2515] Added macros around the inline #define since this is a keyword in C++
and, when adding the header to a C++ program, breaks it.
2000-09-06 11:15:18 -05:00
Quincey Koziol
e5deb6dbba [svn-r2511] Fix point selections so they work properly with both staticly and dynamicly
allocated memory.
2000-09-06 10:44:07 -05:00
Quincey Koziol
24b64938a1 [svn-r2510] Took memory allocation out of loop and used some temporary variable instead of
multi-dereferenced pointer chains.  This buys us another ~20% improvement in
the hyperslab I/O speed. (From ~30 seconds to ~25 seconds on the h5hypers
benchmark)
2000-09-06 10:36:37 -05:00
Quincey Koziol
25ee8b4e8f [svn-r2509] Change code so that heap_size wasn't zero. 2000-09-06 10:34:30 -05:00
Albert Cheng
404ee60bd4 [svn-r2508] Purpose:
Bug fixes
Description:
    All tests were core=dumping in IRIX64.  The bug is in Generic
    property list creation in which malloc asked for 2*64-1 bytes
    due to coding bug.  The object creation failed but the return
    code was not checked.  Program eventually crashed.
Solution:
H5F.c:
    Check the return code from new file object creation and flag
    error accordingly.
H5FL.c:
    H5FL_arr_free is a replacement for H5MM_xfree which accepts
    null value as a legal argument value.  H5FL_arr_free assert
    on it.  Since other parts of the code have been passing null
    value to H5MM_xfree, H5FL_arr_free must accept it too until
    all the calling routines are changed to not pass Null.
H5P.c:
    some routine passes in 0 as the hashsize value which is uintn.
    The expression (hashsize-1) underflows to the largest unsigned
    int for some machines.  Thus the calloc failed.  Cast hashsize
    to unsigned int first (this assumes hashsize stays within the
    signed int data range.
H5Smpio.c:
    Added the extra parameter because the H5FD_write has been redefined.

Platforms tested:
    IRIX64 -64 and -n32
2000-09-05 22:40:21 -05:00
Bill Wendling
da05036244 [svn-r2505] Some of the RETURN macros were returning NULL instead of FAIL...Fixed. 2000-09-05 18:10:06 -05:00
Quincey Koziol
72555fec5a [svn-r2504] Revised routine to add hyperslabs to the selection, sorting the arrays of
hyperslab boundaries after adding them all, instead of maintaining the sorted
order during each addition.  This boosts performance for sub-sampled (i.e.
strided) hyperslabs by about a factor of 10!  :-)
2000-09-04 11:25:34 -05:00
Quincey Koziol
e85425db19 [svn-r2502] Added limits to the free lists, so they will automatically garbage collect and
not eat all the memory in the machine (by default :-)
2000-08-31 18:11:06 -05:00
Quincey Koziol
312cd2c57d [svn-r2501] Added several free lists for commonly used & abused data structures. Also
added code to allow metadata to be allocated out of a more contiguous block
("metadata aggregation") and also code for "catching" small metadata write
calls and building a buffer of the small pieces of metadata for later writing
as one, larger, block ("metadata accumulation").  These features are enabled
on a per VFL driver basis with the new VFL 'query' call and both currently
enabled for the sec2, family and stdio drivers.  The mpio VFL driver enables
only the "metadata aggregation" code, not the "metadata accumulation" code.
All the other drivers have these features turned off.
2000-08-31 14:40:07 -05:00
Quincey Koziol
2910c496e1 [svn-r2500] Added fields to file data structures to allow metadata aggregation and
accumulation to be enabled and tracked.  Also updated some prototypes.
2000-08-31 14:35:44 -05:00
Quincey Koziol
8420b10455 [svn-r2499] Changed H5FDwrite prototype to include new 'type of data' parameter 2000-08-31 14:34:40 -05:00
Quincey Koziol
1ec946fac8 [svn-r2498] Added new VFL 'query' code and added new 'type of data' parameter to write
call.
2000-08-31 14:33:58 -05:00
Quincey Koziol
362baf1299 [svn-r2497] Removing metadata aggregation & accumulation prototyping code (it's in H5FD.c
now) and updated driver to add the new VFL 'query' call.
2000-08-31 14:28:16 -05:00
Quincey Koziol
a3b9c876e1 [svn-r2496] Changed H5F_block_write prototype & added metadata allocation field to file
access property lists.
2000-08-31 14:26:42 -05:00
Quincey Koziol
b678afccd8 [svn-r2495] More type of data parameter additions for H5F_block_write. 2000-08-31 14:26:06 -05:00
Quincey Koziol
0709cc1025 [svn-r2494] Changed the default size of object headers from 16 bytes to 256 bytes. 2000-08-31 14:25:10 -05:00
Quincey Koziol
7e7b6854e6 [svn-r2493] Added a set/get pair of property modifiers to allows users to set/query the
metadata allocation size for file access property lists.  These are new API
functions and should be documented for the next release.
2000-08-31 14:24:36 -05:00
Quincey Koziol
d2b293884e [svn-r2492] Added type of data parameter to H5F_block_write calls and also added the
metadata allocation size to the default file access property lists.
2000-08-31 14:23:13 -05:00
Quincey Koziol
49fd0efca3 [svn-r2491] Added type of data parameter to H5F_block_write calls. 2000-08-31 14:22:03 -05:00
HDF Admin
3ff571ab58 [svn-r2477] Snapshot version 1.3 release 28 2000-08-19 02:21:53 -05:00
Quincey Koziol
1d54c2ad20 [svn-r2476] Added free lists to track various data structures in memory, to reduce malloc
abuse.
2000-08-16 15:13:02 -05:00
Quincey Koziol
4cd9c205ec [svn-r2475] Moved code to insert a new dataset into a group up a few blocks of code, to
get the metadata allocated in the file more tightly together.
2000-08-16 15:12:05 -05:00
Quincey Koziol
f759af2362 [svn-r2474] Updated some old variables to the proper names, added seek logging and added
test code for aggregating metadata into more localized locations in the file.
2000-08-16 15:09:59 -05:00
Quincey Koziol
68203c788a [svn-r2472] Combine object header prefix and first object header chunk when possible. 2000-08-16 15:08:23 -05:00
HDF Admin
e6cc5a8c5e [svn-r2471] Snapshot version 1.3 release 27 2000-08-12 02:20:04 -05:00
Quincey Koziol
9d6434e8af [svn-r2470] Changed parameter type from uintn to size_t to clear up some warnings. 2000-08-08 14:11:05 -05:00
HDF Admin
5b0956d313 [svn-r2469] Snapshot version 1.3 release 26 2000-08-05 02:07:28 -05:00
Bill Wendling
b1b1b74b38 [svn-r2465] Changed nbytes to an hsize_t type since that's what it holds. Also, moved
it into the if-then statement to limit it's scope.
2000-08-04 15:49:59 -05:00
Bill Wendling
15dfa78cd8 [svn-r2464] HGOTO_ERROR was returning NULL instead of FAIL. This was causing compiler
warnings about "implicit cast of pointer to integer" things....
2000-08-04 15:49:09 -05:00
Quincey Koziol
47515ad49c [svn-r2459] Added public API function (H5set_free_list_limits) to allow limits to be
placed on how much memory is used by the free lists before they are garbage
collected.  The default is to have no limit, with garbage collection only
occurring when they cannot allocate memory.
2000-08-04 08:34:05 -05:00
Quincey Koziol
ed4d48157e [svn-r2454] Took out another unneeded assertion which was causing problems. 2000-08-01 14:26:29 -05:00
Quincey Koziol
c675419497 [svn-r2453] Made free-list code garbage collect if it runs out memory during a memory
allocation & attempt to allocate the memory once more.  Also re-named a bunch
of private functions & structures to align with other function names.
2000-08-01 14:13:38 -05:00
Quincey Koziol
3651a0a0bf [svn-r2450] Remove asserts on non-existent variables.. 2000-08-01 10:54:39 -05:00
Quincey Koziol
d71de4f7a3 [svn-r2448] Re-did section of hyperslab initialization code to avoid tons of realloc()
calls.  Speeds user's test code up by ~25 times... :-)
2000-07-28 15:14:48 -05:00
Quincey Koziol
e896d31ae2 [svn-r2447] Another small calculation optimization. 2000-07-28 15:13:30 -05:00
Quincey Koziol
958d2ef179 [svn-r2446] Some small performance improvements to various allocations and calculations. 2000-07-27 19:06:35 -05:00
Quincey Koziol
55ea4084df [svn-r2445] Check in initial coding effort for automatically garbage collecting the free
lists.  Each kind of list one has hard-coded limits on when to garbage collect,
which will be replaced with user-controllable knobs (through property list
settings, I think) once I finish debugging some related performance problems.
2000-07-27 16:17:35 -05:00
Quincey Koziol
2c8c5f9692 [svn-r2444] Checkpoint the Generic Property implementation. It's not active yet, but it's
close.  This shouldn't interfere with other development work.  (I think.. :-)
2000-07-25 12:35:17 -05:00