-
Notifications
You must be signed in to change notification settings - Fork 0
/
xsbench.cfg
134 lines (100 loc) · 3.82 KB
/
xsbench.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#!/bin/bash
#
# Copyright 2014 (c) Citrix
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version only.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#########
## VMs Configuration
#####
# This indicate the name of the Linux VM to use
# NOTE: This must be the name of a working Linux VM
vm0="wheezy64"
# This indicates the format string for VM clones
vmf="${vm0}-%03d"
# This indicates how many VMs to use for benchmarking
vms=10
# This indicates the index of the first VM to use for benchmarking
vmi=1
# This indicates the size to use for each VDI (use MiB or GiB, no spaces)
vdi_size=500MiB
# This indicates how many VDIs per VM (per SR) should be created
vdis_per_vm=1
# This indicates a modular step for VM's index. It is used to reduce the number
# of tests when using a very large 'vms'.
# Ex: vmi=1, vms=30, vmi_mod=5
# The above will run benchmarks for: 1, 5, 10, 15, 20, 25, 30
vmi_mod=1
#########
## SRs Configuration
#####
#nfs_name[0]="NFS name"
#nfs_serv[0]="127.0.0.1"
#nfs_path[0]="/nfs_path"
nfs_count=${#nfs_serv[@]}
#lvm_bdev[0]="/dev/sdx"
#lvm_name[0]="LVM - sdx"
lvm_count=${#lvm_bdev[@]}
#ext_bdev[0]="/dev/sdx"
#ext_name[0]="EXT - sdx"
ext_count=${#ext_bdev[@]}
# This indicates which backends to use
# NOTE: The below can be a string combining either 'nfs', 'lvm' or 'ext'
storage=ext
#########
## Benchmark Configuration
#####
# This is basename for the vms benchmark data files
data_base_vms="$(hostname)-${vm0}-$(xl list | awk '/^Domain-0/ {print $4}')-disklist"
# This is basename for the dom0 benchmark data files
data_base_dom0="$(hostname)-dom0-$(xl list | awk '/^Domain-0/ {print $4}')-disklist"
# This indicates the block sizes to benchmark (in bytes)
data_blkszs="512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304"
# This indicates how many seconds to run each benchmark for
data_iters=10
# This indicates which operations to run
# NOTE: The below can be 'r', 'w', or 'r w'
data_ops="r w"
# This indicates where to store raw data from benchmarks
data_raw="./data_raw"
# This indicates where to store processed benchamrk data
data_proc="./data"
# This indicates a data file containing the names of each test run
data_runs="./xsbench.runs"
#########
## System Configuration
#####
# This indicates the verbosity level
# 0 - Quiet: shows only fatal errors
# 1 - Minimal: prints main actions
# 2 - Verbose: prints details on actions
# 3 - Debug: prints extra information
verbose=3
# This indicates the master synexec repo
synexec_repo="https://github.com/franciozzy/synexec/archive/master.zip"
# This indicates the path to synexec_master
# NOTE: The suite will download and compile synexec if a binary does not exist
synexec_master="/root/xsbench/synexec_master"
# This indicates extra parameters to pass to synexec_master
synexec_master_extra=""
# This indicates the session ID to use with synexec
# NOTE: Sessions are used for the master to identify its slaves.
# Use different IDs on different hosts in the same network.
synexec_session=12345
# Basename for the xsbench SSH key
# NOTE: The suite will create a key pair if it does not exist
xsbench_key="/root/.ssh/xsbench"
# This indicates the master 'fio' repo
fio_repo="https://github.com/axboe/fio/archive/master.zip"
# This indicates the path to 'fio' in dom0
# NOTE: The suite will download and compile 'fio' if a binary does not exist
fio_path="/root/xsbench/fio"