Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Boxiang Sun
slapos.package
Commits
d63ba7b4
Commit
d63ba7b4
authored
Jul 19, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Include benchmark role
/reviewed-on
!64
parent
23992da7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
0 deletions
+58
-0
playbook/roles/vifib-benchmark/files/run_test.sh
playbook/roles/vifib-benchmark/files/run_test.sh
+39
-0
playbook/roles/vifib-benchmark/meta/main.yml
playbook/roles/vifib-benchmark/meta/main.yml
+10
-0
playbook/roles/vifib-benchmark/tasks/main.yml
playbook/roles/vifib-benchmark/tasks/main.yml
+3
-0
playbook/vifib-benchmark.yml
playbook/vifib-benchmark.yml
+6
-0
No files found.
playbook/roles/vifib-benchmark/files/run_test.sh
0 → 100644
View file @
d63ba7b4
#!/bin/bash
echo
"####################################################"
echo
"# Random Write with fio randwrite "
echo
"####################################################"
fio
--randrepeat
=
1
--ioengine
=
libaio
--direct
=
1
--gtod_reduce
=
1
--name
=
test
--filename
=
test
--bs
=
4k
--iodepth
=
64
--size
=
4G
--readwrite
=
randwrite
echo
"####################################################"
echo
"# Random Read with fio randread"
echo
"####################################################"
fio
--randrepeat
=
1
--ioengine
=
libaio
--direct
=
1
--gtod_reduce
=
1
--name
=
test
--filename
=
test
--bs
=
4k
--iodepth
=
64
--size
=
4G
--readwrite
=
randread
echo
"####################################################"
echo
"# Read with fio read"
echo
"####################################################"
fio
--randrepeat
=
1
--ioengine
=
libaio
--direct
=
1
--gtod_reduce
=
1
--name
=
test
--filename
=
test
--bs
=
4k
--iodepth
=
64
--size
=
4G
--readwrite
=
read
echo
"####################################################"
echo
"# Write with fio write"
echo
"####################################################"
fio
--randrepeat
=
1
--ioengine
=
libaio
--direct
=
1
--gtod_reduce
=
1
--name
=
test
--filename
=
test
--bs
=
4k
--iodepth
=
64
--size
=
4G
--readwrite
=
write
echo
"####################################################"
echo
"# Write with dd "
echo
"####################################################"
time
sh
-c
"dd if=/dev/zero of=/test bs=4k count=2000000 conv=fsync && sync"
echo
"####################################################"
echo
"# Read with dd"
echo
"####################################################"
time
sh
-c
"dd if=/test of=/dev/null"
echo
"####################################################"
echo
"# Test with bonnie++ "
echo
"####################################################"
bonnie++
-d
/
-n
0
-m
TEST
-f
-b
-u
root
playbook/roles/vifib-benchmark/meta/main.yml
0 → 100644
View file @
d63ba7b4
---
dependencies
:
-
{
role
:
sysstat
}
-
{
role
:
package
,
package_name
:
fio
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
iotop
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ioping
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
bonnie++
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
hdparm
,
package_state
:
present
}
playbook/roles/vifib-benchmark/tasks/main.yml
0 → 100644
View file @
d63ba7b4
---
-
name
:
create partition script
copy
:
src=run_test.sh dest=/usr/local/bin/run-vifib-benchmark mode=700
playbook/vifib-benchmark.yml
0 → 100644
View file @
d63ba7b4
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
connection
:
local
roles
:
-
{
role
:
vifib-benchmark
}
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