mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Increase buffer pool size
git-svn-id: file:///svn/tokudb@124 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
11a7c0ab20
commit
18412a5f81
2 changed files with 5 additions and 4 deletions
|
@ -76,13 +76,13 @@ void biginsert (long long n_elements, struct timeval *starttime) {
|
|||
gettimeofday(&t1,0);
|
||||
serial_insert_from(i);
|
||||
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);
|
||||
gettimeofday(&t1,0);
|
||||
random_insert_below((i+ITEMS_TO_INSERT_PER_ITERATION)*SERIAL_SPACING);
|
||||
gettimeofday(&t2,0);
|
||||
printf("random %9.6fs %9.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("random %9.6fs %8.0f/s ", tdiff(&t2, &t1), ITEMS_TO_INSERT_PER_ITERATION/tdiff(&t2, &t1));
|
||||
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,
|
|||
}
|
||||
}
|
||||
|
||||
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) {
|
||||
if (cachelines==0) cachelines=n_nodes_in_cache;
|
||||
|
|
Loading…
Add table
Reference in a new issue