Commit graph

1714 commits

Author SHA1 Message Date
Rich Prohaska
13ccc0f386 this test depends on virtual time which does not exists. closes #1049
git-svn-id: file:///svn/tokudb@5397 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 19:56:04 +00:00
Rich Prohaska
723a17edb8 use trace memory. addresses #1042
git-svn-id: file:///svn/tokudb@5390 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 18:55:10 +00:00
Yoni Fogel
dabf9fcb06 Closes #1050
Implemented c_getf_next_dup

git-svn-id: file:///svn/tokudb@5389 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 18:19:07 +00:00
Yoni Fogel
0ac518ea4f Closes #1048
Replaced 'test_thread_stack.%' in rules with '$<', which refers to the first
prerequisite listed.

This fixes the nondeterministic nature of this test failing (for reasons
of being unable to find the binary).

git-svn-id: file:///svn/tokudb@5387 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 17:59:51 +00:00
Yoni Fogel
df1c7a9379 Addresses #903
Created function that peeks at both key and value at the same time
(to avoid repeated OMT calls).
This was worth 4-5% performance in scanscan --lwc --prelock --prelockflag


git-svn-id: file:///svn/tokudb@5386 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 17:55:14 +00:00
Yoni Fogel
b5d3b778d6 Addresses #903
Speed up light weight cursors.
Instead of asking the brt to use 'copyout' (by passing key and/or val pointers)
we pass in NULLs to brt_cursor_get.
We then later use the peek_current functions to obtain pointers to the current
key and val of the cursor.

That was worth ~22% reduction in time for scanscan --lwc --prelock --prelockflag

Also, now copyout quits immediately if both key and val are NULL
This increased the (total) value of the patch to ~30% reduction  in time.

git-svn-id: file:///svn/tokudb@5383 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 16:19:59 +00:00
Rich Prohaska
1f05fe210f port to 32 bit linux
git-svn-id: file:///svn/tokudb@5381 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-28 14:55:41 +00:00
Bradley C. Kuszmaul
3aafa0d873 Some files didn't merge right. Fixes #1021.
git-svn-id: file:///svn/tokudb@5364 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 22:19:08 +00:00
Bradley C. Kuszmaul
9b7fdbcfd0 Convert from crc to x1764. Fixes #1021.
git-svn-id: file:///svn/tokudb@5363 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 22:16:49 +00:00
Bradley C. Kuszmaul
84fb9c874e Add sum64
git-svn-id: file:///svn/tokudb@5360 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 18:36:56 +00:00
Bradley C. Kuszmaul
4f2c208fc5 Add sum64
git-svn-id: file:///svn/tokudb@5359 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 18:36:04 +00:00
Bradley C. Kuszmaul
8640836ef3 up
git-svn-id: file:///svn/tokudb@5358 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 18:28:38 +00:00
Bradley C. Kuszmaul
e94d156afe x17 is working, and is reasonably fast. Surprisingly slower than murmurby1, however
git-svn-id: file:///svn/tokudb@5357 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 18:09:38 +00:00
Bradley C. Kuszmaul
b5f39e6df6 Fiddle around. l17 looks pretty fast.
git-svn-id: file:///svn/tokudb@5356 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 16:37:55 +00:00
Bradley C. Kuszmaul
793bda4fe4 Measure some hash function performance
git-svn-id: file:///svn/tokudb@5355 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-27 10:40:17 +00:00
Bradley C. Kuszmaul
dd615b86cb more fence cases
git-svn-id: file:///svn/tokudb@5344 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-26 15:58:04 +00:00
Bradley C. Kuszmaul
677e7ddcd2 more fence cases
git-svn-id: file:///svn/tokudb@5343 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-26 15:57:13 +00:00
Bradley C. Kuszmaul
9c268111cb more fence cases
git-svn-id: file:///svn/tokudb@5342 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-26 15:50:12 +00:00
Yoni Fogel
2804eb495a Addresses #1032
Removed over-active warnings, moved struct definition to proper place.

git-svn-id: file:///svn/tokudb@5322 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-24 21:31:52 +00:00
Rich Prohaska
b798cd5c31 add a in memory trace log with processor timestamps. closes #1042
git-svn-id: file:///svn/tokudb@5321 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-24 21:26:38 +00:00
Yoni Fogel
c7d9dbbc2a Addresses #1032
Turned some nested functions (that had no free variables) into non-nested functions.

git-svn-id: file:///svn/tokudb@5320 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-24 21:25:31 +00:00
Yoni Fogel
3f49195276 Addresses #1032
Makefile ports for cygwin/Windows

git-svn-id: file:///svn/tokudb@5319 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-24 21:24:27 +00:00
Rich Prohaska
e21db3b0e6 add a in memory trace log with processor timestamps. closes #1042
git-svn-id: file:///svn/tokudb@5318 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-24 21:23:40 +00:00
Rich Prohaska
9a801f6fc6 fix the regressions error on 4.4. addresses #968
git-svn-id: file:///svn/tokudb@5307 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-24 12:16:57 +00:00
Yoni Fogel
31aa0af04e Addresses #1040
Moved a couple of functions out of the critical path for the common case (only needed for uncommon case)

git-svn-id: file:///svn/tokudb@5298 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-23 23:01:13 +00:00
Bradley C. Kuszmaul
ab7a3ca9d3 Quiet down the cxx makefile. Addresses #13.
git-svn-id: file:///svn/tokudb@5286 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-23 12:55:37 +00:00
Bradley C. Kuszmaul
50dfe380f7 Implemented a measurement. On my laptop:
{{{
writeit 2048 blocks of size 1048576 in 124.60s at  17.24MB/s
readit  2048 blocks of size 1048576 in  94.13s at  22.81MB/s   user=  0.08s sys=  4.94s
}}}
Also for 512 blocks it runs at 741MB/s,

It looks like the cachetable is fast enough.

Fixes #1037.


git-svn-id: file:///svn/tokudb@5285 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-23 11:24:13 +00:00
Bradley C. Kuszmaul
9db51893c9 test944a has a memory leak. Fix it. Addresses #944.
git-svn-id: file:///svn/tokudb@5277 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-23 04:46:58 +00:00
Bradley C. Kuszmaul
5c3ec7de12 Revert the murmur checksum. Addresses #1021.
{{{
svn merge https://svn.tokutek.com/tokudb/tokudb.1021@5184 https://svn.tokutek.com/tokudb/tokudb.1021@5107  
}}}
and fix a simple conflict.


git-svn-id: file:///svn/tokudb@5275 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-23 03:47:05 +00:00
Yoni Fogel
daf9154cf8 Closes 1036
Fixes the memory leak with callback invalidation

git-svn-id: file:///svn/tokudb@5274 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-23 02:43:42 +00:00
Bradley C. Kuszmaul
71cb765433 Merge in the branch fix the rollback merging into the parent. Fixes #1035.
{{{
svn merge -r5259:5270 https://svn.tokutek.com/tokudb/tokudb.1035
}}}


git-svn-id: file:///svn/tokudb@5272 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-22 23:25:07 +00:00
Bradley C. Kuszmaul
95e8ac768f Fiddle with the error code for truncate under bdb. Addresses #968.
git-svn-id: file:///svn/tokudb@5269 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-22 21:42:22 +00:00
Rich Prohaska
4b78cca417 fix the bdb truncate with cursors test. addresses #968
git-svn-id: file:///svn/tokudb@5244 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-21 19:30:30 +00:00
Yoni Fogel
6ccb067147 Addresses #1032
Standardize unsigned ints:
uint8_t -> u_int8_t
uint32_t -> u_int32_t
uint64_t ->u_int64_t
Windows seems to differentiate between the two, linux does not.

git-svn-id: file:///svn/tokudb@5239 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-21 18:00:38 +00:00
Rich Prohaska
b584f4fb46 fix a cachefile renumbering problem. addresses #968
git-svn-id: file:///svn/tokudb@5238 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-21 17:48:26 +00:00
Yoni Fogel
ab1df07131 Addresses #1031
Invalidates cursors when we run off the end of a leaf.

git-svn-id: file:///svn/tokudb@5222 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-21 05:59:25 +00:00
Yoni Fogel
5badbb42a8 Addresses #1031
Implements lazy updates for next_shortcut, and prev_shortcut.


git-svn-id: file:///svn/tokudb@5221 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-21 05:37:55 +00:00
Rich Prohaska
efc9a8aa39 merge db->truncate to main. closes #968
git-svn-id: file:///svn/tokudb@5218 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-21 02:34:13 +00:00
Bradley C. Kuszmaul
66cd2fdd01 Merge is tokudb.1021 changes. Addresses #1021.
{{{
svn merge -r5107:5184 https://svn.tokutek.com/tokudb/tokudb.1021
}}}


git-svn-id: file:///svn/tokudb@5214 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-20 14:08:55 +00:00
Yoni Fogel
0817ad3042 Addresses #1031
Added invalidate_callback function to the OMTcursors.
Added tests for invalidate callback functions.

git-svn-id: file:///svn/tokudb@5203 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-19 06:21:09 +00:00
Bradley C. Kuszmaul
4f57debbc4 Test 944 has some memory leaks, even when things are working. Addresses #944.
git-svn-id: file:///svn/tokudb@5197 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-18 19:47:43 +00:00
Bradley C. Kuszmaul
45414a60b0 Remove memory leak. Fixes #1030.
git-svn-id: file:///svn/tokudb@5196 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-18 19:37:31 +00:00
Bradley C. Kuszmaul
acdf833c6c Remove memory leak. Fixes #1027.
git-svn-id: file:///svn/tokudb@5194 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-18 18:54:17 +00:00
Bradley C. Kuszmaul
10bdafb7fc The problem was in the test code. It was creating a MALLOC DBT and then never freeing stuff. Fixes #1026.
git-svn-id: file:///svn/tokudb@5189 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-18 16:17:32 +00:00
Bradley C. Kuszmaul
05d057c019 Cleanup test dirs when doing make clean. Fixes #1028.
git-svn-id: file:///svn/tokudb@5182 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-18 12:34:24 +00:00
Rich Prohaska
869c0f107c simplify memory.c, map toku_malloc direct to malloc. closes #1024
git-svn-id: file:///svn/tokudb@5167 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-17 20:58:57 +00:00
Bradley C. Kuszmaul
273b90ab7f Remove memory leak. Fixes #1025.
git-svn-id: file:///svn/tokudb@5165 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-17 19:54:11 +00:00
Yoni Fogel
18b35fc088 Addresses #993
Merge branch 993 back into main.

git-svn-id: file:///svn/tokudb@5141 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-16 22:23:29 +00:00
Rich Prohaska
c7c25f5c7e treak the seq insert algorithm. addresses #1003
git-svn-id: file:///svn/tokudb@5091 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-13 00:04:22 +00:00
Bradley C. Kuszmaul
fd6a6d1447 Merge in the tokudb.1017 patches to the main branch. Fixes #1017.
{{{
$ (cd tokudb;svn merge -r5048:5080 https://svn.tokutek.com/tokudb/tokudb.1017 )
$ svn delete tokudb.1017
}}}


git-svn-id: file:///svn/tokudb@5081 c7de825b-a66e-492c-adef-691d508d4ae1
2008-07-11 22:00:06 +00:00