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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
03dd9950
Commit
03dd9950
authored
Apr 17, 2013
by
Zardosht Kasheff
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes #5398, remove cruft
git-svn-id:
file:///svn/toku/tokudb@47109
c7de825b-a66e-492c-adef-691d508d4ae1
parent
b53d614c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
87 deletions
+0
-87
src/tests/perf_checkpoint_var.cc
src/tests/perf_checkpoint_var.cc
+0
-87
No files found.
src/tests/perf_checkpoint_var.cc
View file @
03dd9950
...
...
@@ -15,91 +15,6 @@
#include "threaded_stress_test_helpers.h"
uint64_t
num_basements_decompressed
;
uint64_t
num_buffers_decompressed
;
uint64_t
num_basements_fetched
;
uint64_t
num_buffers_fetched
;
uint64_t
num_pivots_fetched
;
static
void
checkpoint_callback_1
(
void
*
extra
)
{
DB_ENV
*
CAST_FROM_VOIDP
(
env
,
extra
);
uint64_t
old_num_basements_decompressed
=
num_basements_decompressed
;
uint64_t
old_num_buffers_decompressed
=
num_buffers_decompressed
;
uint64_t
old_num_basements_fetched
=
num_basements_fetched
;
uint64_t
old_num_buffers_fetched
=
num_buffers_fetched
;
uint64_t
old_num_pivots_fetched
=
num_pivots_fetched
;
num_basements_decompressed
=
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_WRITE"
);
num_buffers_decompressed
=
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_WRITE"
);
num_basements_fetched
=
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_WRITE"
);
num_buffers_fetched
=
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_WRITE"
);
num_pivots_fetched
=
get_engine_status_val
(
env
,
"FT_NUM_PIVOTS_FETCHED_QUERY"
)
+
get_engine_status_val
(
env
,
"FT_NUM_PIVOTS_FETCHED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_PIVOTS_FETCHED_WRITE"
);
printf
(
"basements decompressed %"
PRIu64
"
\n
"
,
num_basements_decompressed
-
old_num_basements_decompressed
);
printf
(
"buffers decompressed %"
PRIu64
"
\n
"
,
num_buffers_decompressed
-
old_num_buffers_decompressed
);
printf
(
"basements fetched %"
PRIu64
"
\n
"
,
num_basements_fetched
-
old_num_basements_fetched
);
printf
(
"buffers fetched %"
PRIu64
"
\n
"
,
num_buffers_fetched
-
old_num_buffers_fetched
);
printf
(
"pivots fetched %"
PRIu64
"
\n
"
,
num_pivots_fetched
-
old_num_pivots_fetched
);
printf
(
"************************************************************
\n
"
);
}
static
void
checkpoint_callback_2
(
void
*
extra
)
{
DB_ENV
*
CAST_FROM_VOIDP
(
env
,
extra
);
num_basements_decompressed
=
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_DECOMPRESSED_WRITE"
);
num_buffers_decompressed
=
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_DECOMPRESSED_WRITE"
);
num_basements_fetched
=
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_BASEMENTS_FETCHED_WRITE"
);
num_buffers_fetched
=
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_NORMAL"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_AGGRESSIVE"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_MSG_BUFFER_FETCHED_WRITE"
);
num_pivots_fetched
=
get_engine_status_val
(
env
,
"FT_NUM_PIVOTS_FETCHED_QUERY"
)
+
get_engine_status_val
(
env
,
"FT_NUM_PIVOTS_FETCHED_PREFETCH"
)
+
get_engine_status_val
(
env
,
"FT_NUM_PIVOTS_FETCHED_WRITE"
);
}
//
// This test is a form of stress that does operations on a single dictionary:
// We create a dictionary bigger than the cachetable (around 4x greater).
...
...
@@ -158,8 +73,6 @@ cleanup:
static
void
stress_table
(
DB_ENV
*
env
,
DB
**
dbp
,
struct
cli_args
*
cli_args
)
{
db_env_set_checkpoint_callback
(
checkpoint_callback_1
,
env
);
db_env_set_checkpoint_callback2
(
checkpoint_callback_2
,
env
);
//
// the threads that we want:
// - some threads constantly updating random values
...
...
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