Commit 18412a5f authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Increase buffer pool size

git-svn-id: file:///svn/tokudb@124 c7de825b-a66e-492c-adef-691d508d4ae1
parent 11a7c0ab
...@@ -76,13 +76,13 @@ void biginsert (long long n_elements, struct timeval *starttime) { ...@@ -76,13 +76,13 @@ void biginsert (long long n_elements, struct timeval *starttime) {
gettimeofday(&t1,0); gettimeofday(&t1,0);
serial_insert_from(i); serial_insert_from(i);
gettimeofday(&t2,0); gettimeofday(&t2,0);
printf("serial %9.6fs %9.0f/s ", tdiff(&t2, &t1), ITEMS_TO_INSERT_PER_ITERATION/tdiff(&t2, &t1)); printf("serial %9.6fs %8.0f/s ", tdiff(&t2, &t1), ITEMS_TO_INSERT_PER_ITERATION/tdiff(&t2, &t1));
fflush(stdout); fflush(stdout);
gettimeofday(&t1,0); gettimeofday(&t1,0);
random_insert_below((i+ITEMS_TO_INSERT_PER_ITERATION)*SERIAL_SPACING); random_insert_below((i+ITEMS_TO_INSERT_PER_ITERATION)*SERIAL_SPACING);
gettimeofday(&t2,0); gettimeofday(&t2,0);
printf("random %9.6fs %9.0f/s ", tdiff(&t2, &t1), ITEMS_TO_INSERT_PER_ITERATION/tdiff(&t2, &t1)); printf("random %9.6fs %8.0f/s ", tdiff(&t2, &t1), ITEMS_TO_INSERT_PER_ITERATION/tdiff(&t2, &t1));
printf("cumulative %9.6fs %9.0f/s\n", tdiff(&t2, starttime), (ITEMS_TO_INSERT_PER_ITERATION*2.0/tdiff(&t2, starttime))*(iteration+1)); printf("cumulative %9.6fs %8.0f/s\n", tdiff(&t2, starttime), (ITEMS_TO_INSERT_PER_ITERATION*2.0/tdiff(&t2, starttime))*(iteration+1));
} }
} }
......
...@@ -956,7 +956,8 @@ static int brtnode_insert (BRT t, BRTNODE node, DBT *k, DBT *v, ...@@ -956,7 +956,8 @@ static int brtnode_insert (BRT t, BRTNODE node, DBT *k, DBT *v,
} }
} }
enum {n_nodes_in_cache =64}; //enum {n_nodes_in_cache =64};
enum {n_nodes_in_cache =128};
int brt_create_cachetable (CACHETABLE *ct, int cachelines) { int brt_create_cachetable (CACHETABLE *ct, int cachelines) {
if (cachelines==0) cachelines=n_nodes_in_cache; if (cachelines==0) cachelines=n_nodes_in_cache;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment