mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
script/run-cbt.sh: add support for ceph-osd testing.
The patch brings `--classical` switch to the `run-cbt.sh` script. Its purpose is to automate the apple-to-apple comparison between OSD implementations. In both cases memstore is selected and the same benchmarks are used. Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
parent
02ce12c2c4
commit
a1954fe397
@ -25,7 +25,8 @@ archive_dir=$PWD/cbt-archive
|
|||||||
build_dir=$PWD
|
build_dir=$PWD
|
||||||
source_dir=$(dirname $PWD)
|
source_dir=$(dirname $PWD)
|
||||||
use_existing=false
|
use_existing=false
|
||||||
opts=$(getopt --options "a:h" --longoptions "archive-dir:,build-dir:,source-dir:,cbt:,help,use-existing" --name $prog_name -- "$@")
|
classical=false
|
||||||
|
opts=$(getopt --options "a:h" --longoptions "archive-dir:,build-dir:,source-dir:,cbt:,help,use-existing,classical" --name $prog_name -- "$@")
|
||||||
eval set -- "$opts"
|
eval set -- "$opts"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
@ -50,6 +51,10 @@ while true; do
|
|||||||
use_existing=true
|
use_existing=true
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--classical)
|
||||||
|
classical=true
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
usage $prog_name
|
usage $prog_name
|
||||||
return 0
|
return 0
|
||||||
@ -82,11 +87,17 @@ fi
|
|||||||
source_dir=$(readlink -f $source_dir)
|
source_dir=$(readlink -f $source_dir)
|
||||||
if ! $use_existing; then
|
if ! $use_existing; then
|
||||||
cd $build_dir
|
cd $build_dir
|
||||||
MDS=0 MGR=1 OSD=3 MON=1 $source_dir/src/vstart.sh -n -X \
|
if $classical; then
|
||||||
--without-dashboard --memstore \
|
MDS=0 MGR=1 OSD=3 MON=1 $source_dir/src/vstart.sh -n -X \
|
||||||
-o "memstore_device_bytes=34359738368" \
|
--without-dashboard --memstore \
|
||||||
--crimson --nodaemon --redirect-output \
|
-o "memstore_device_bytes=34359738368"
|
||||||
--osd-args "--memory 4G"
|
else
|
||||||
|
MDS=0 MGR=1 OSD=3 MON=1 $source_dir/src/vstart.sh -n -X \
|
||||||
|
--without-dashboard --memstore \
|
||||||
|
-o "memstore_device_bytes=34359738368" \
|
||||||
|
--crimson --nodaemon --redirect-output \
|
||||||
|
--osd-args "--memory 4G"
|
||||||
|
fi
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -106,5 +117,9 @@ done
|
|||||||
|
|
||||||
if ! $use_existing; then
|
if ! $use_existing; then
|
||||||
cd $build_dir
|
cd $build_dir
|
||||||
$source_dir/src/stop.sh --crimson
|
if $classical; then
|
||||||
|
$source_dir/src/stop.sh
|
||||||
|
else
|
||||||
|
$source_dir/src/stop.sh --crimson
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user