Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
18412a5f
Commit
18412a5f
authored
Aug 13, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase buffer pool size
git-svn-id:
file:///svn/tokudb@124
c7de825b-a66e-492c-adef-691d508d4ae1
parent
11a7c0ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
newbrt/benchmark-test.c
newbrt/benchmark-test.c
+3
-3
newbrt/brt.c
newbrt/brt.c
+2
-1
No files found.
newbrt/benchmark-test.c
View file @
18412a5f
...
@@ -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
));
}
}
}
}
...
...
newbrt/brt.c
View file @
18412a5f
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment