Sears Russell
6a9d81c78f
Removed unneeded #includes.
2006-10-05 00:50:46 +00:00
Sears Russell
8faf045e7d
Fixed numerous bugs in allocationPolicy.c and alloc.c
...
allocationPolicy.c was not handling deallocations correctly
Tdealloc() was not calling interpretRid() on its input before passing it into the allocationPolicy
Added locking support for TallocFromPage()
2006-08-11 02:56:41 +00:00
Sears Russell
b44551b941
fixed mutex checks
2006-08-11 02:25:17 +00:00
Sears Russell
51c5b60047
Fix race in TallocFromPage()
2006-08-11 00:01:12 +00:00
Sears Russell
7ba91533fe
Added assertions to make sure that the region mutex is held when
...
appropriate.
2006-08-10 23:57:49 +00:00
Sears Russell
8a390c40d2
Improved latch profiling, especially for loadPage.
2006-08-04 23:45:27 +00:00
Sears Russell
c413203ec8
Talloc() now reuses space when possible. It still needs to call slottedCompact() intelligentally. Also, allocationPolicy should support an extra tier
...
of pages, so it doesn't suggest ones that aren't already in the buffer pool unless it has to.
2006-07-29 00:56:54 +00:00
Sears Russell
783d1d6ffd
Removed the fixed page initialization operations, which weren't being used, and were a slow hack anyway. There is now a more-general (and efficient)
...
implementation in alloc.c
2006-07-29 00:54:01 +00:00
Sears Russell
3725cc9b8e
Added a function that returns the number of allocated entries in the list
2006-07-28 00:00:32 +00:00
Sears Russell
a3d0f6f6f5
Added support for concurrent transactions (by using nested top actions).
2006-07-27 00:15:29 +00:00
Sears Russell
62abe94bf5
added fsckRegions(), and call it from the unit tests.
2006-07-25 22:23:15 +00:00
Sears Russell
aec9148b83
added call to get the page type.
2006-07-25 22:22:49 +00:00
Sears Russell
8e419845be
removed assert() that checks to make sure that Tupdate() didn't pass a page pointer in.
2006-07-25 01:24:49 +00:00
Sears Russell
8aad1b896a
pthread.h | rw.h -> latches.h (Otherwise, -DPROFILE_LATCHES doesn't work.
2006-07-25 01:06:01 +00:00
Sears Russell
8485cc7fe1
Added missing releasePage().
2006-07-25 01:03:57 +00:00
Sears Russell
745975112f
Removed an assert that assumed pages aren't reused.
2006-07-25 01:03:07 +00:00
Sears Russell
0f45b97eda
regions now make use of nested top actions, so they're almost correct. (Still need to lock freed regions until end of transaction.)
2006-07-25 00:56:50 +00:00
Sears Russell
0725af91be
Fixed page leak in Talloc().
2006-07-21 01:07:09 +00:00
Sears Russell
ffd3bd960b
switched to region allocator, but TpageAlloc currently grabs its own region...
2006-07-20 01:29:39 +00:00
Sears Russell
8ed909e79d
Fixed the fixedPageAlloc hack.
2006-07-20 00:48:42 +00:00
Sears Russell
1ac3dc6779
More progress on boundary tags. (Still not tested/working yet...)
2006-07-18 23:59:00 +00:00
Sears Russell
bf98e32c73
fixed build
2006-06-22 23:31:42 +00:00
Sears Russell
93e7e96ea3
Started implementing the region allocator
2006-06-22 19:10:02 +00:00
Sears Russell
d26263262b
Completely new blob implementation. Slower than the old one was supposed to be, but is correct, and extremeley
...
simple. It simply writes the pre-image and post-image of each blob to the log using TpageSet.
2006-06-21 00:45:18 +00:00
Sears Russell
3e4cac0fe3
Continued cleaning up allocation code. It seems really slow all of a sudden, so this commit probably introduced a performance bug.
2006-06-17 00:25:09 +00:00
Sears Russell
209a6916e5
Updated some comments.
2006-06-16 00:27:02 +00:00
Sears Russell
dc8a3e5d60
Eliminated slottedPreRalloc
2006-06-16 00:05:44 +00:00
Sears Russell
50515ffd23
More steps toward factoring page allocation out of record allocation.
2006-06-15 05:31:20 +00:00
Sears Russell
59bd80a2a8
half-hearted attempt to fix -Wextra warnings...
2006-06-13 23:58:04 +00:00
Sears Russell
66ae3b9763
Made it more obvious that a suspicious looking assert is commented out
2006-06-13 22:44:40 +00:00
Sears Russell
a11fbdd9e6
Did away with slottedPreRallocFromPage.
2006-06-13 20:00:46 +00:00
Sears Russell
35a5e80871
removed bogus .deps files.
2006-06-01 22:18:50 +00:00
Sears Russell
68dcc2067e
No more warnings with -O2.
2006-05-25 22:50:52 +00:00
Sears Russell
b5d578f4e0
Fixed remaining warnings, got rid of alTupdate
2006-05-25 20:08:12 +00:00
Sears Russell
2e06cafaa8
2006-05-24 02:19:04 +00:00
Sears Russell
c1d8906d28
removed memcpy() calls from inMemoryLog; added "const" qualifier to many LogEntry pointers.
2006-04-11 02:20:21 +00:00
Sears Russell
1c979f3052
Factored logWriter.h out of the rest of the system. The only file that directly depends on it is logger2.c, which can
...
now dispatch requests to different (hardcoded) log implementations.
2006-04-06 03:22:57 +00:00
Sears Russell
041bfce736
The bucket list entries for variable lenth hash tables were too long, causing memory corruption, and wasting space+log bandwidth
2006-04-04 22:34:35 +00:00
Colleen M. Lewis
5bfcbdb076
Bug fixed: TfixedPageAlloc calls fixedPageInitialize with the wrong arguments.
2005-10-31 23:21:18 +00:00
Colleen M. Lewis
345f0cde78
Added the base functionality and test case for the BTree... just a hello world method. but it has the h, c and check files. -colleen ;)
2005-05-05 21:34:12 +00:00
Sears Russell
08ceca11ce
Enabled compactPage in TallocFromPage()
2005-03-24 11:04:06 +00:00
Sears Russell
cf58e1fb72
Transitive closure working!
2005-03-24 04:43:22 +00:00
Sears Russell
ef3c30b190
Benchmark updates.
2005-03-20 05:17:25 +00:00
Sears Russell
26d50f19e3
Cleaned up berkeley db tests / lladd logger optimizations + bug fix.
2005-03-19 20:28:30 +00:00
Sears Russell
ed49949512
This commit breaks the build so that Jimmy and I can sync. Sorry. :(
2005-03-14 00:25:29 +00:00
Sears Russell
1bfb634103
Preliminary benchmark program uploads for SEDA-style response time percentiles vs requests / second
...
Also added a few cute little utilities:
- truncate_log
- run_recovery
Upped max # of concurrent transactions. (Current throughput during benchmarking remains ~flat up to 32,000
threads, but past max concurrent transactions was 1,000...)
2005-03-12 22:11:18 +00:00
Sears Russell
18c772234d
new benchmarks revealed that inserts for linkedList, pageOrientedList were taking O(n) time, yielding O(n^2)
...
time to build a list, since the lists could not contain duplicate keys. These operations are now O(1), and
the lists can contain duplicates.
2005-03-10 20:10:49 +00:00
Sears Russell
f28df29736
Fixed unit tests, added iterator interface, and generic (almost) iterator test harness.
2005-03-10 03:19:04 +00:00
Sears Russell
935de3aeb5
minor changes
2005-03-09 03:24:36 +00:00
Sears Russell
a3112ee81c
Fixes for freebsd.
2005-03-02 05:47:38 +00:00