Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bd_bench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
bd_bench
Commits
98890924
Commit
98890924
authored
11 years ago
by
Hannes Mühleisen
Browse files
Options
Downloads
Patches
Plain Diff
dropcaches
parent
60d98761
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ehannes.sh
+5
-3
5 additions, 3 deletions
ehannes.sh
with
5 additions
and
3 deletions
ehannes.sh
+
5
−
3
View file @
98890924
...
@@ -28,6 +28,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PBINS/lib:$PBCINS/lib
...
@@ -28,6 +28,8 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PBINS/lib:$PBCINS/lib
mkdir
-p
$SDIR
mkdir
-p
$SDIR
mkdir
-p
$IDIR
mkdir
-p
$IDIR
DROPCACHE
=
"echo 3 | sudo /usr/bin/tee /proc/sys/vm/drop_caches"
# clean up source dir first
# clean up source dir first
rm
-rf
$SDIR
/
*
rm
-rf
$SDIR
/
*
...
@@ -219,7 +221,7 @@ do
...
@@ -219,7 +221,7 @@ do
mv
*
.tbl
$SFDDIR
mv
*
.tbl
$SFDDIR
fi
fi
cd
$DIR
cd
$DIR
for
DB
in
mariadb
citusdata postgres monetdb
for
DB
in
citusdata postgres monetdb
#mariadb
do
do
DBNAME
=
$DB
-sf
$SF
DBNAME
=
$DB
-sf
$SF
DBFARM
=
$FARM
/
$DBNAME
/
DBFARM
=
$FARM
/
$DBNAME
/
...
@@ -267,7 +269,7 @@ do
...
@@ -267,7 +269,7 @@ do
if
[
!
-d
$DBFARM
]
;
then
if
[
!
-d
$DBFARM
]
;
then
# clear caches (fair loading)
# clear caches (fair loading)
#sudo bash -c "echo 3 > /proc/sys/vm/drop_caches"
$DROPCACHE
mkdir
-p
$DBFARM
mkdir
-p
$DBFARM
# initialize db directory
# initialize db directory
...
@@ -310,7 +312,7 @@ do
...
@@ -310,7 +312,7 @@ do
do
do
for
i
in
$QYDIR
/q??.sql
for
i
in
$QYDIR
/q??.sql
do
do
#sudo bash -c "echo 3 > /proc/sys/vm/drop_caches"
$DROPCACHE
$SERVERCMD$DBFARM
>
/dev/null &
$SERVERCMD$DBFARM
>
/dev/null &
sleep
5
sleep
5
q
=
${
i
%.sql
}
q
=
${
i
%.sql
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment