Commit graph

70 commits

Author SHA1 Message Date
Gilad Arnold
6358b74bac Added some debug line. 2004-12-17 01:45:09 +00:00
Gilad Arnold
635561981a Bugfix: dump type info upon set_ref, is it has been (implicitly) change. 2004-12-17 01:32:19 +00:00
Gilad Arnold
879ca42890 Support for TsetRange(), to minimize logging overhead when only portions
of objects are known to be modified.
2004-12-17 00:38:52 +00:00
Gilad Arnold
a7b1b70f74 Added persistified recursive updates. Should be tested. 2004-12-16 23:41:57 +00:00
Gilad Arnold
58bed5beca Some changes to pobj.c to support operations for non-persistent (transient)
objects. Enhancement to test-list program to work with transient objects
as well. Minor fix to header file (typo).
2004-12-16 23:04:21 +00:00
Gilad Arnold
91eb96a113 Some changes: initial support for (un)persistify, range update, pobj_memset,
IS_PERSISTENT macro. Most are not yet tested, but compilation is okay...
2004-12-16 16:50:15 +00:00
Gilad Arnold
6502569a02 Switched to growable (unlimited) persistent objects / static references
repositories. Has been tested with 15K objects and appears to work. Also
done some significant chnages to auxiliary modules in libpobj, and the
trivial test program (test-list).
2004-12-16 09:00:07 +00:00
Gilad Arnold
e30aca6138 Temporary fix to avoid a segfault during execution of pobj test
programs, that's caused by an on-stack allocation of a very big array...
Permanent (future) fix: switch to dynamically allocated hash tables.
2004-12-15 01:27:17 +00:00
Gilad Arnold
36a0821acf Beginning to add strict typing for objects (minor change). 2004-12-14 19:45:04 +00:00
Gilad Arnold
773df6c690 Added custom memory calls for pobj internal structures. 2004-12-14 07:38:04 +00:00
Gilad Arnold
8137a0914d Disabled some development code in pobj.c, just so it passes compilation. 2004-12-14 01:33:25 +00:00
Gilad Arnold
4329801481 Removed redundant variable from Makefile.am. 2004-12-14 01:24:34 +00:00
Gilad Arnold
fc42d83efc Added pobj library sources, header file, and test programs. Small changes were
made to src/Makefile.am in order to include src/pobj build, but no corresponding
change was made to test/Makefile.am (will be done in the near future).
2004-12-13 21:51:11 +00:00
Sears Russell
55b0ddf1b6 Fixed nasty bug that was causing the LLADD header to be lost (!!) 2004-12-06 01:20:48 +00:00
Sears Russell
72070acb67 Implemented TsetRange, fixed bug in linear hash. 2004-12-03 00:27:47 +00:00
Sears Russell
443a90ad7c Implemented TrecordType() 2004-12-01 01:26:25 +00:00
Sears Russell
ded5c92c9d Support for nested top actions, with simple unit test. (Haven't tested for thread safety yet.) 2004-11-29 21:28:13 +00:00
Sears Russell
646f9dfca9 Implemented recover_split(), which is needed by the linear hash to recover properly from crashes. It hasn't been tested at all, and is not currently called by anything. 2004-11-29 02:35:37 +00:00
Sears Russell
2c23fb8a43 Did some misc. cleanup work on linearHash 2004-11-28 01:16:48 +00:00
Sears Russell
164c7cfd69 Linear Hash now survives Tdeinit/Tinit cycle (but not crashes!) 2004-11-24 23:26:15 +00:00
Sears Russell
80d4af4c9b Added getRecordType() 2004-11-24 23:25:36 +00:00
Sears Russell
910649a387 Web-site update, a few minor code changes from before the Freenix deadline. 2004-10-27 01:40:09 +00:00
Sears Russell
aead6a5a83 New benchmark, fixed for PROFILE_LATCHES. 2004-10-20 21:55:00 +00:00
Sears Russell
b59ba35ed4 parameter tweak.. 2004-10-20 06:54:39 +00:00
Sears Russell
70b8aca134 Set some constants to values appropriate for my desktop. 2004-10-20 06:48:29 +00:00
Sears Russell
af9e7adee0 Starting work on the actual graph-generation portion of the benchmarks. :) 2004-10-20 06:21:21 +00:00
Sears Russell
903ba4b97b Bugfix. 2004-10-19 22:58:56 +00:00
Sears Russell
ec99c0e258 Lots of optimizations; re-did on-disk layout for the linear hash table. 2004-10-19 21:16:37 +00:00
Sears Russell
6b265f28b0 Speedups, most notably in the logging subsystem. 2004-10-19 04:45:42 +00:00
Sears Russell
c850ce3a51 The logger now calls fwrite half as often as it used to. This could be improved significantly, but some latching details internal to the logger need to be worked out first. 2004-10-18 19:19:10 +00:00
Sears Russell
ec1276f26f Preliminary version of logical logging linear hash. (No latching yet, and there are some bugs re-opening a closed hash.) 2004-10-18 18:24:54 +00:00
Sears Russell
04cfc7da8e Optimized the 'naive' linear hash table, and moved to sourceforge. :) 2004-10-17 02:17:00 +00:00
Sears Russell
a078f25475 Implemented a linear hash from scratch. Concurrency hasn't been done, but it's probably correct in the single thread case. 2004-10-12 02:44:47 +00:00
Sears Russell
5064e3fac2 Implemented pages that store fixed sized records efficiently, and a java-style ArrayList data structure that efficiently supports (relatively) clustered, O(1) access time expandable arrays. (This will be used for the hash implementation...) 2004-10-06 06:08:09 +00:00
Sears Russell
9268b1d9cf Added support for gcov, and ran gprof. Shaved 10% off the runtime of check_page by optimizing rw.c 2004-10-04 05:24:12 +00:00
Sears Russell
96e7af92a4 Added test cases for Tprepare(), implemented some redo-only operations, and started to clean up record allocation/deallocation.
Also, numerous bugfixes.
2004-10-02 07:29:34 +00:00
Sears Russell
811bc5c710 Implemented a freespace manager that should safely allocate space, even in the face of crashes, and can reclaim unused space (unless an application opens more than one simultaneous transaction that performs allocations)
Fixed some blob bugs (by adding extra fdatasync() calls).

Began factoring out the page management code so that it is an extenstion, and a less integral part of lladd.
2004-08-21 00:03:30 +00:00
Sears Russell
b4d7883f66 Fixed regressions, major update of page / slotted interfaces in anticipation of moving LLADD towards a generic transactional page system. 2004-08-17 01:46:17 +00:00
Sears Russell
82e3fdb53a Added (untested) support for whole-page operations, lladdhash now works. 2004-08-03 02:04:56 +00:00
Sears Russell
e51759b517 Implemented indirect pages, and fixed some bugs here and there. (Still need to add transactional support for indirect pages...) 2004-07-31 00:27:55 +00:00
Sears Russell
a74c499dd7 Fixed data corruption bug in the freelist implementation, and corrected lsn updates. 2004-07-30 02:07:41 +00:00
Sears Russell
961b63af15 Rewrote / refactored page.h. Now, it uses a freelist to reclaim slotid's within a page, and is implemented as two seperate modules. The first handles lsn's, and (will soon) check the type of each page, and then delegate work to a particular implementation of the second module. 2004-07-30 01:28:39 +00:00
Sears Russell
c649ba7504 O_DIRECT is working now. 2004-07-27 22:04:59 +00:00
Sears Russell
3cbe112926 Moved some utility functions into their own file. 2004-07-27 21:33:00 +00:00
Sears Russell
78eb2cbf6a O_DIRECT (sort of...) 2004-07-27 21:30:54 +00:00
Sears Russell
54ba9b0347 Refactored bufferMananger / pageCache, so that bufferMananger handles loading an unloading pages, and pageCache only implements the replacement policy.
Also, used memprof to detect and remove all memory leaks (at least all memory leaks that are encountered by check_transactional2), and fixed a number of misuses of the pblHash.
2004-07-27 01:04:35 +00:00
Sears Russell
e53117a1a0 Implemented (but didn't test) iterator over the records in a page. 2004-07-26 22:01:09 +00:00
Sears Russell
8cb59f0c23 Blobs are now re-entrant. 2004-07-26 20:37:04 +00:00
Sears Russell
422198418a bufferMananger is (really!) re-entrant now, performed big refactoring to prevent deadlocks, check_transactional2 ran overnight without coring, w/ 25 threads, and 10000 allocate/write/reads per thread. (The whole test suite was run in a loop...) 2004-07-23 20:21:44 +00:00
Sears Russell
38ae73c146 Just committing some documentation updates before big refactoring. 2004-07-22 17:48:36 +00:00