aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorMofassirArif <mofassir.arif@xflowresearch.com>2016-02-01 04:54:28 -0800
committerMofassirArif <mofassir.arif@xflowresearch.com>2016-02-01 04:54:28 -0800
commit062d12fc2f6a8de367da50445a8af49b983d0b81 (patch)
tree3a4bc4197582478fae959affe38925a698675ca0 /benchmarks
parent49b4662f32c415ea141ff269ba39d9a401b6e320 (diff)
add sudo changes for joid
Change-Id: Id31e687779be159cd3ad83cb3df2289054927074 Signed-off-by: MofassirArif <mofassir.arif@xflowresearch.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/playbooks/dhrystone.yaml55
-rw-r--r--benchmarks/playbooks/dpi.yaml54
-rw-r--r--benchmarks/playbooks/fio.yaml42
-rw-r--r--benchmarks/playbooks/iperf.yaml55
-rw-r--r--benchmarks/playbooks/ramspeed.yaml43
-rw-r--r--benchmarks/playbooks/ssl.yaml56
-rw-r--r--benchmarks/playbooks/whetstone.yaml53
7 files changed, 249 insertions, 109 deletions
diff --git a/benchmarks/playbooks/dhrystone.yaml b/benchmarks/playbooks/dhrystone.yaml
index d6306be4..224dbbf4 100644
--- a/benchmarks/playbooks/dhrystone.yaml
+++ b/benchmarks/playbooks/dhrystone.yaml
@@ -11,62 +11,83 @@
become_user: "{{username}}"
tasks:
- name: checking_home directory
- shell: echo $HOME
+ shell: sudo echo $HOME
register: home_dir
+
- name: cleaning tempT
- shell: rm -rf $HOME/tempT
+ shell: sudo rm -rf $HOME/tempT
+
- name: cleaning_qtip_result
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: make directory
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
+
- include: ./sys_info_pbook.yaml
vars:
network: false
+
- name: Installing UnixBench dependencies if CentOS
- shell: yum install git gcc patch perl-Time-HiRes -y
+ shell: sudo yum install git gcc patch perl-Time-HiRes -y
when: ansible_os_family == "RedHat"
+
- name: Installing UnixBench dependencies if Ubuntu
- shell: apt-get install git gcc patch perl -y
+ shell: sudo apt-get install git gcc patch perl -y
when: ansible_os_family == "Debian"
+
- name: Clone unixbench
shell: git clone https://github.com/kdlucas/byte-unixbench.git $HOME/tempT
+
- name: make
- shell: make --directory $HOME/tempT/UnixBench/
+ shell: sudo make --directory $HOME/tempT/UnixBench/
+
- name: downloading_patch
- shell: cd $HOME/tempT/UnixBench/ && wget https://www.dropbox.com/s/11z85gfu0trkhus/fix-limitation.patch
+ shell: cd $HOME/tempT/UnixBench/ && sudo wget https://www.dropbox.com/s/11z85gfu0trkhus/fix-limitation.patch
+
- name: applying_patch
- shell: cd $HOME/tempT/UnixBench/ && patch Run fix-limitation.patch
+ shell: cd $HOME/tempT/UnixBench/ && sudo patch Run fix-limitation.patch
+
- name: Run dhrystone
- shell: cd $HOME/tempT/UnixBench/&&./Run -v dhrystone
+ shell: cd $HOME/tempT/UnixBench/&& sudo ./Run -v dhrystone
+
- name: collecting and transforming result script copy
copy: src=./result_transform/ubench_transform.py dest={{home_dir.stdout}}/qtip_result/
+
- name: transforming result
- shell: cd $HOME/qtip_result/ && python ubench_transform.py
+ shell: cd $HOME/qtip_result/ && sudo python ubench_transform.py
- name: copying consolidated report script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result/
+
- name: making consolidated report
- shell: cd $HOME/qtip_result && python final_report.py Dhrystone {{fname}}
+ shell: cd $HOME/qtip_result && sudo python final_report.py Dhrystone {{fname}}
+
- name: making directory
file: path={{home_dir.stdout}}/qtip_result/log state=directory
+
- name: copying result to temp directory
- shell: cp -r $HOME/tempT/UnixBench/results/* $HOME/qtip_result/log/
+ shell: sudo cp -r $HOME/tempT/UnixBench/results/* $HOME/qtip_result/log/
+
- name: registering files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp
with_items: files_to_copy.stdout_lines
+
- name: registering log files
shell: (cd $HOME/qtip_result/log/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/log/{{item}} dest={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp
with_items: copy_log_results.stdout_lines
- name: cleaning tempT
- shell: rm -rf $HOME/tempT
+ shell: sudo rm -rf $HOME/tempT
+
- name: cleaning_qtip_result
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
- hosts: 127.0.0.1
@@ -80,7 +101,3 @@
shell: ( find {{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp/ -name "*.log" | xargs cp -t {{workingdir}}/{{Dest_dir}}/dhrystone/logs)
- name: removing dhrystone_temp
shell: rm -rf {{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp
- # - name: cleaning_2
- # file: path=/root/tempT state=absent
- # file: path=/root/qtip_result state=absent
-
diff --git a/benchmarks/playbooks/dpi.yaml b/benchmarks/playbooks/dpi.yaml
index 6b24fae6..1f7fee54 100644
--- a/benchmarks/playbooks/dpi.yaml
+++ b/benchmarks/playbooks/dpi.yaml
@@ -12,70 +12,86 @@
tasks:
- name: echo
shell: echo $USER
+
- name: checking_home directory
shell: echo $HOME
register: home_dir
+
- name: cleaning
- shell: rm -rf $HOME/tempD
+ shell: sudo rm -rf $HOME/tempD
+
- name: cleaning previous results
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: make qtip_result
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
- include: ./sys_info_pbook.yaml
vars:
network: false
+
- name: Installing nDPI dependencies if CentOS
- shell: yum install git gcc patch perl-Time-HiRes autofconf automake libpcap-devel libtool -y
+ shell: sudo yum install git gcc patch perl-Time-HiRes autofconf automake libpcap-devel libtool -y
when: ansible_os_family == "RedHat"
+
- name: Installing nDPI dependcies if Ubuntu
- shell: apt-get install git gcc patch autoconf automake libpcap-dev libtool -y
+ shell: sudo apt-get install git gcc patch autoconf automake libpcap-dev libtool -y
when: ansible_os_family == "Debian"
+
- name: making nDPI temporary directory
- shell: mkdir $HOME/tempD
+ shell: sudo mkdir $HOME/tempD
+
- name: Clone nDPI
shell: cd $HOME/tempD && git clone https://github.com/ntop/nDPI.git
+
- name: autogen
- shell: cd $HOME/tempD/nDPI && ./autogen.sh
+ shell: cd $HOME/tempD/nDPI && sudo ./autogen.sh
+
- name: configure
- shell: cd $HOME/tempD/nDPI && ./configure
+ shell: cd $HOME/tempD/nDPI && sudo ./configure
+
- name: make
- shell: cd $HOME/tempD/nDPI && make
+ shell: cd $HOME/tempD/nDPI && sudo make
+
- name: Fetching Test_pcap file
shell: cd $HOME/tempD/nDPI/example && wget https://www.dropbox.com/s/ne64u7jykuw2uu5/test.pcap
+
- name: fetch Averaging script
copy: src=./result_transform/dpi/dpi_average.sh dest={{home_dir.stdout}}/tempD/nDPI/example mode=777
+
- name: Run nDPI benchmark
- shell: cd $HOME/tempD/nDPI/example && ./dpi_average.sh
+ shell: cd $HOME/tempD/nDPI/example && sudo ./dpi_average.sh
+
- name: copy result to temp_direc
- shell: cp $HOME/tempD/nDPI/example/dpi_dump.txt $HOME/qtip_result
+ shell: sudo cp $HOME/tempD/nDPI/example/dpi_dump.txt $HOME/qtip_result
+
- name: fetch dpi result transform script
copy: src=./result_transform/dpi/dpi_transform.py dest={{home_dir.stdout}}/qtip_result
- name: Transforming results
- shell: cd $HOME/qtip_result && python dpi_transform.py
+ shell: cd $HOME/qtip_result && sudo python dpi_transform.py
+
- name: copy report formation script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
+
- name: consolidating report
- shell: cd $HOME/qtip_result && python final_report.py DPI {{fname}}
+ shell: cd $HOME/qtip_result && sudo python final_report.py DPI {{fname}}
+
- name: registering files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/dpi/dpi_temp
with_items: files_to_copy.stdout_lines
+
- name: registering log files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/dpi/dpi_temp
with_items: copy_log_results.stdout_lines
- # - name: cleaning tempD
- # shell: rm -rf $HOME/tempD
- # - name: cleaning_qtip_result
- # shell: rm -rf $HOME/qtip_result
-
-
- hosts: 127.0.0.1
connection: local
tasks:
diff --git a/benchmarks/playbooks/fio.yaml b/benchmarks/playbooks/fio.yaml
index 12359656..9532b166 100644
--- a/benchmarks/playbooks/fio.yaml
+++ b/benchmarks/playbooks/fio.yaml
@@ -14,52 +14,68 @@
- name: checking_home directory
shell: echo $HOME
register: home_dir
+
- name: cleaning
- shell: rm -rf $HOME/fio
+ shell: sudo rm -rf $HOME/fio
+
- name: cleaning previous results
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: making fio temporary directory
- shell: mkdir $HOME/fio
+ shell: sudo mkdir $HOME/fio
+
- name: making results temporary directory
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
+
- include: ./sys_info_pbook.yaml
vars:
network: false
+
- name: Installing fio dependencies when CentOS
- shell: yum install wget gcc libaio-devel -y
+ shell: sudo yum install wget gcc libaio-devel -y
when: ansible_os_family == "RedHat"
+
- name: Installing fio dependencies when Ubuntu
- shell: apt-get install wget gcc libaio-dev -y
+ shell: sudo apt-get install wget gcc libaio-dev -y
when: ansible_os_family == "Debian"
-# - name: make dummy file
-# shell: touch $HOME/ramspeed/ramspeed.tar.gz
+
- name: Fetching fio
shell: cd $HOME/fio/ && wget http://freecode.com/urls/3aa21b8c106cab742bf1f20d60629e3f -O fio.tar.gz
- name: Untar fio
- shell: cd $HOME/fio/ && tar -zxvf fio.tar.gz
+ shell: cd $HOME/fio/ && sudo tar -zxvf fio.tar.gz
- name: configure
- shell: cd $HOME/fio/fio-2.1.10 && ./configure && make
+ shell: cd $HOME/fio/fio-2.1.10 && sudo ./configure && sudo make
+
- name: Fetching fio job
copy: src=./../fio_jobs/test_job dest={{home_dir.stdout}}/fio/fio-2.1.10/
+
- name: Benchmarking block storage through fio
- shell: cd $HOME/fio/fio-2.1.10 && ./fio --output-format=json --output=$HOME/qtip_result/fio_result.json test_job
+ shell: cd $HOME/fio/fio-2.1.10 && sudo ./fio --output-format=json --output=$HOME/qtip_result/fio_result.json test_job
+
- name: Fetching result transformation script
copy: src=./result_transform/fio/fio_result_transform.py dest={{home_dir.stdout}}/qtip_result
+
- name: Transforming result
- shell: cd $HOME/qtip_result && python fio_result_transform.py
+ shell: cd $HOME/qtip_result && sudo python fio_result_transform.py
+
- name: copy report formation script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
+
- name: consolidating report
- shell: cd $HOME/qtip_result && python final_report.py FIO {{fname}}
+ shell: cd $HOME/qtip_result && sudo python final_report.py FIO {{fname}}
+
- name: registering files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/fio/fio_temp
with_items: files_to_copy.stdout_lines
+
- name: registering log files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/fio/fio_temp
with_items: copy_log_results.stdout_lines
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml
index d67884f4..773961fe 100644
--- a/benchmarks/playbooks/iperf.yaml
+++ b/benchmarks/playbooks/iperf.yaml
@@ -3,7 +3,7 @@
tasks:
- name: getting directory
- shell: echo $PWD
+ shell: sudo echo $PWD
register: qtip_dir
- name: making Iperf directory
file: path={{workingdir}}/{{Dest_dir}}/iperf state=directory
@@ -19,86 +19,111 @@
set_fact:
rolename: "{{role}}"
when: role is defined
+
- name: installertype
set_fact:
installertype: "{{installer}}"
+
- name: Get Hostname
shell: echo $HOSTNAME
register: hostID
+
- name: echo
shell: echo index_var
+
- name: checking_home directory
shell: echo $HOME
register: home_dir
+
- name: cleaning
- shell: rm -rf $HOME/iperf
+ shell: sudo rm -rf $HOME/iperf
+
- name: cleaning previous results
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: making Iperf temporary directory
- shell: mkdir $HOME/iperf
+ shell: sudo mkdir $HOME/iperf
+
- name: making results temporary directory
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
+
- include: ./sys_info_pbook.yaml
vars:
network: true
+
- name: Installing Epel-release when CentOS
- shell: yum install epel-release -y
+ shell: sudo yum install epel-release -y
when: ansible_os_family == "RedHat"
+
- name: Getting Firewall entry number
- shell: iptables -L INPUT --line-number | grep DROP | awk '{print $1}'
+ shell: sudo iptables -L INPUT --line-number | grep DROP | awk '{print $1}'
register: iptable_entry
ignore_errors: yes
when: installertype == 'fuel'
+
- name: Removing entry number
- shell: iptables -D INPUT {{iptable_entry.stdout}}
+ shell: sudo iptables -D INPUT {{iptable_entry.stdout}}
ignore_errors: yes
when: iptable_entry != '' and installertype == 'fuel'
+
- name: Installing IPERF when Ubuntu
- shell: apt-get install iperf3 -y
+ shell: sudo apt-get install iperf3 -y
when: ansible_os_family == "Debian"
+
- name: Installing Iperf3
- shell: yum install iperf3 -y
+ shell: sudo yum install iperf3 -y
when: ansible_os_family == "RedHat"
+
- name: Running iperf on server
- shell: iperf3 -s
+ shell: sudo iperf3 -s
async: 400
poll: 0
when: rolename == "1-server"
+
- name: Running Iperf on Host
- shell: iperf3 --time {{duration}} -b {{bandwidthGbps}}G -c {{ip1}} -J -O10 >> ./qtip_result/iperf_raw.json
+ shell: sudo iperf3 --time {{duration}} -b {{bandwidthGbps}}G -c {{ip1}} -J -O10 >> ./qtip_result/iperf_raw.json
ignore_errors: yes
with_items:
- "{{ip1}}"
when: rolename == "2-host" and "{{privateip1}}" == "NONE"
+
- name: Running Iperf on Host
- shell: iperf3 --time {{duration}} -b{{bandwidthGbps}}G -c {{privateip1}} -J -O10 >> ./qtip_result/iperf_raw.json
+ shell: sudo iperf3 --time {{duration}} -b{{bandwidthGbps}}G -c {{privateip1}} -J -O10 >> ./qtip_result/iperf_raw.json
ignore_errors: yes
with_items:
- "{{ip1}}"
when: rolename == "2-host" and "{{privateip1}}" != "NONE"
+
- name: Fetching result transformation script
copy: src=./result_transform/iperf/iperf_transform.py dest={{home_dir.stdout}}/qtip_result
- name: Transforming result
- shell: cd $HOME/qtip_result && python iperf_transform.py
+
+ shell: cd $HOME/qtip_result && sudo python iperf_transform.py
when: rolename =="2-host" and "{{ip2}}" == ''
+
- name: copy report formation script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
when: rolename =="2-host" and "{{ip2}}" == ''
+
- name: consolidating report
- shell: cd $HOME/qtip_result && python final_report.py IPERF {{fname}}
+ shell: cd $HOME/qtip_result && sudo python final_report.py IPERF {{fname}}
when: rolename =="2-host" and "{{ip2}}" == ''
+
- name: Files to Copy
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
when: rolename =="2-host" and "{{ip2}}" == ''
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/iperf/iperf_temp
with_items: files_to_copy.stdout_lines
when: rolename =="2-host" and "{{ip2}}" == ''
+
- name: registering log files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
when: rolename =="2-host" and "{{ip2}}" == ''
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/iperf/iperf_temp
with_items: copy_log_results.stdout_lines
diff --git a/benchmarks/playbooks/ramspeed.yaml b/benchmarks/playbooks/ramspeed.yaml
index 6eb917e4..e59ed10e 100644
--- a/benchmarks/playbooks/ramspeed.yaml
+++ b/benchmarks/playbooks/ramspeed.yaml
@@ -14,52 +14,73 @@
- name: checking_home directory
shell: echo $HOME
register: home_dir
+
- name: cleaning
- shell: rm -rf $HOME/ramspeed
+ shell: sudo rm -rf $HOME/ramspeed
+
- name: cleaning previous results
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: making ramspeed temporary directory
- shell: mkdir $HOME/ramspeed
+ shell: sudo mkdir $HOME/ramspeed
+
- name: making results temporary directory
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
+
- include: ./sys_info_pbook.yaml
vars:
network: false
+
- name: Installing RAM_Speed dependencies when CentOS
- shell: yum install wget gcc -y
+ shell: sudo yum install wget gcc -y
when: ansible_os_family == "RedHat"
+
- name: Installing RAM_Speed dependencies when Ubuntu
- shell: apt-get install wget gcc -y
+ shell: sudo apt-get install wget gcc -y
when: ansible_os_family == "Debian"
+
- name: make dummy file
- shell: touch $HOME/ramspeed/ramspeed.tar.gz
+ shell: sudo touch $HOME/ramspeed/ramspeed.tar.gz
+
- name: Fetching RAM_Speed
- shell: cd $HOME/ramspeed/ && wget -O ramspeed.tar.gz https://docs.google.com/uc?id=0B92Bp5LZTM7gRFctalZLMktTNDQ
+ shell: cd $HOME/ramspeed/ && sudo wget -O ramspeed.tar.gz https://docs.google.com/uc?id=0B92Bp5LZTM7gRFctalZLMktTNDQ
+
- name: Untar RAM_SPeed
- shell: cd $HOME/ramspeed/ && tar -zxvf ramspeed.tar.gz
+ shell: cd $HOME/ramspeed/ && sudo tar -zxvf ramspeed.tar.gz
+
- name: configure
shell: cd $HOME/ramspeed/ramsmp-3.5.0 && ./build.sh
+
- name: Benchmarking IntMem Bandwidth
shell: cd $HOME/ramspeed/ramsmp-3.5.0 && ./ramsmp -b 3 -l 5 -p 1 >> $HOME/qtip_result/Intmem
+
- name: Benchmarking FloatMem Bandwidth
shell: cd $HOME/ramspeed/ramsmp-3.5.0 && ./ramsmp -b 6 -l 5 -p 1 >> $HOME/qtip_result/Floatmem
+
- name: Fetching result transformation script
copy: src=./result_transform/ramspd/ramspd_transform.py dest={{home_dir.stdout}}/qtip_result
+
- name: Transforming result
- shell: cd $HOME/qtip_result && python ramspd_transform.py
+ shell: cd $HOME/qtip_result && sudo python ramspd_transform.py
+
- name: copy report formation script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
+
- name: consolidating report
- shell: cd $HOME/qtip_result && python final_report.py RamSpeed {{fname}}
+ shell: cd $HOME/qtip_result && sudo python final_report.py RamSpeed {{fname}}
+
- name: registering files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp
with_items: files_to_copy.stdout_lines
+
- name: registering log files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/ramspeed/ramspeed_temp
with_items: copy_log_results.stdout_lines
diff --git a/benchmarks/playbooks/ssl.yaml b/benchmarks/playbooks/ssl.yaml
index 12b68de3..942fba50 100644
--- a/benchmarks/playbooks/ssl.yaml
+++ b/benchmarks/playbooks/ssl.yaml
@@ -10,65 +10,83 @@
become_user: "{{username}}"
tasks:
- name: checking_home directory
- shell: echo $HOME
+ shell: sudo echo $HOME
register: home_dir
+
- name: cleaning
- shell: rm -rf $HOME/Open_SSL
+ shell: sudo rm -rf $HOME/Open_SSL
+
- name: cleaning previous results
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: making OpenSSL temporary directory
- shell: mkdir $HOME/Open_SSL
+ shell: sudo mkdir $HOME/Open_SSL
+
- name: making results temporary directory
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
+
- include: ./sys_info_pbook.yaml
vars:
network: false
+
- name: Installing OpenSSL dependencies when CentOS
- shell: yum install git wget gcc patch perl-Time-HiRes autofconf automake libpcap-devel libtool -y
+ shell: sudo yum install git wget gcc patch perl-Time-HiRes autofconf automake libpcap-devel libtool -y
when: ansible_os_family == "RedHat"
+
- name: Installing OpenSSL dependencies when Ubuntu
- shell: apt-get install git gcc wget perl autoconf automake libpcap-dev libtool -y
+ shell: sudo apt-get install git gcc wget perl autoconf automake libpcap-dev libtool -y
when: ansible_os_family == "Debian"
+
- name: Fetching OpenSSL
- shell: cd $HOME/Open_SSL/ && wget https://www.openssl.org/source/openssl-1.0.2f.tar.gz
+ shell: cd $HOME/Open_SSL/ && sudo wget https://www.openssl.org/source/openssl-1.0.2f.tar.gz
+
- name: Untar OpenSSL
- shell: cd $HOME/Open_SSL/ && tar -zxvf openssl-1.0.2f.tar.gz
+ shell: cd $HOME/Open_SSL/ && sudo tar -zxvf openssl-1.0.2f.tar.gz
- name: configure
- shell: cd $HOME/Open_SSL/openssl-1.0.2f && ./config
+ shell: cd $HOME/Open_SSL/openssl-1.0.2f && sudo ./config
+
- name: make
- shell: cd $HOME/Open_SSL/openssl-1.0.2f && make
+ shell: cd $HOME/Open_SSL/openssl-1.0.2f && sudo make
+
- name: make install
- shell: cd $HOME/Open_SSL/openssl-1.0.2f && make install
+ shell: cd $HOME/Open_SSL/openssl-1.0.2f && sudo make install
+
- name: Benchmarking RSA signatures
- shell: cd $HOME/Open_SSL/openssl-1.0.2f/apps && ./openssl speed rsa >> $HOME/qtip_result/RSA_dump
+ shell: cd $HOME/Open_SSL/openssl-1.0.2f/apps && sudo ./openssl speed rsa >> $HOME/qtip_result/RSA_dump
+
- name: Benchmaring AES-128-cbc cipher encryption throughput
- shell: cd $HOME/Open_SSL/openssl-1.0.2f/apps && ./openssl speed -evp aes-128-cbc >> $HOME/qtip_result/AES-128-CBC_dump
+ shell: cd $HOME/Open_SSL/openssl-1.0.2f/apps && sudo ./openssl speed -evp aes-128-cbc >> $HOME/qtip_result/AES-128-CBC_dump
+
+
- name: Fetching result transformation script
copy: src=./result_transform/ssl/ssl_transform.py dest={{home_dir.stdout}}/qtip_result
+
- name: Transforming result
- shell: cd $HOME/qtip_result && python ssl_transform.py
+ shell: sudo cd $HOME/qtip_result && python ssl_transform.py
+
- name: copy report formation script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
+
- name: consolidating report
shell: cd $HOME/qtip_result && python final_report.py SSL {{fname}}
+
- name: registering files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/ssl/ssl_temp
with_items: files_to_copy.stdout_lines
+
- name: registering log files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/ssl/ssl_temp
with_items: copy_log_results.stdout_lines
- # - name: copy results
- # fetch: src=/root/results/{{item}} dest={{Dest_dir}}/ssl
- # with_items: files_to_copy.stdout_lines
-
- hosts: 127.0.0.1
connection: local
tasks:
diff --git a/benchmarks/playbooks/whetstone.yaml b/benchmarks/playbooks/whetstone.yaml
index 3a1c7270..50c439d4 100644
--- a/benchmarks/playbooks/whetstone.yaml
+++ b/benchmarks/playbooks/whetstone.yaml
@@ -3,6 +3,7 @@
tasks:
- name: making whetstone directory
file: path={{workingdir}}/{{Dest_dir}}/whetstone state=directory
+
- name: making temporary whetstone directory
file: path={{workingdir}}/{{Dest_dir}}/whetstone/whetstone_temp state=directory
@@ -13,59 +14,82 @@
- name: storing_home
shell: echo $HOME
register: home_dir
+
- name: cleaning tempT
- shell: rm -rf $HOME/tempT
+ shell: sudo rm -rf $HOME/tempT
+
- name: cleaning_qtip_result
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
+
- name: make directory
- shell: mkdir $HOME/qtip_result
+ shell: sudo mkdir $HOME/qtip_result
+
- include: ./sys_info_pbook.yaml
vars:
network: false
+
- name: Installing UnixBench dependencies if CentOS
- shell: yum install git gcc patch perl-Time-HiRes -y
+ shell: sudo yum install git gcc patch perl-Time-HiRes -y
when: ansible_os_family == "RedHat"
+
- name: Installing UnixBench dependencies if Ubuntu
- shell: apt-get install git gcc patch perl -y
+ shell: sudo apt-get install git gcc patch perl -y
when: ansible_os_family == "Debian"
+
- name: Clone unixbench
shell: git clone https://github.com/kdlucas/byte-unixbench.git $HOME/tempT
+
- name: make
- shell: make --directory $HOME/tempT/UnixBench/
+ shell: sudo make --directory $HOME/tempT/UnixBench/
+
- name: downloading_patch
- shell: cd $HOME/tempT/UnixBench/ && wget https://www.dropbox.com/s/11z85gfu0trkhus/fix-limitation.patch
+ shell: cd $HOME/tempT/UnixBench/ && sudo wget https://www.dropbox.com/s/11z85gfu0trkhus/fix-limitation.patch
+
- name: applying_patch
- shell: cd $HOME/tempT/UnixBench/ && patch Run fix-limitation.patch
+ shell: cd $HOME/tempT/UnixBench/ && sudo patch Run fix-limitation.patch
+
- name: Run Whetstone
shell: cd $HOME/tempT/UnixBench/&&./Run -v whetstone
+
- name: collecting and transforming result script copy
copy: src=./result_transform/ubench_transform.py dest={{home_dir.stdout}}/qtip_result/
+
- name: transforming result
- shell: cd $HOME/qtip_result && python ubench_transform.py
+ shell: cd $HOME/qtip_result && sudo python ubench_transform.py
+
- name: copying consolidated report script
copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result/
+
- name: making consolidated report
- shell: cd $HOME/qtip_result && python final_report.py Whetstone {{fname}}
+ shell: cd $HOME/qtip_result && sudo python final_report.py Whetstone {{fname}}
+
- name: making directory
file: path={{home_dir.stdout}}/qtip_result/log state=directory
+
- name: copying result to temp directory
- shell: cp -r $HOME/tempT/UnixBench/results/* $HOME/qtip_result/log/
+ shell: sudo cp -r $HOME/tempT/UnixBench/results/* $HOME/qtip_result/log
+
- name: registering files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{workingdir}}/{{Dest_dir}}/whetstone/whetstone_temp
with_items: files_to_copy.stdout_lines
+
- name: registering log files
shell: (cd $HOME/qtip_result/log/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
+
- name: copying log results
fetch: src={{home_dir.stdout}}/qtip_result/log/{{item}} dest={{workingdir}}/{{Dest_dir}}/whetstone/whetstone_temp
with_items: copy_log_results.stdout_lines
+
- name: cleaning tempT
- shell: rm -rf $HOME/tempT
+ shell: sudo rm -rf $HOME/tempT
+
- name: cleaning_qtip_result
- shell: rm -rf $HOME/qtip_result
+ shell: sudo rm -rf $HOME/qtip_result
- hosts: 127.0.0.1
@@ -73,9 +97,12 @@
tasks:
- name: extracting_json
shell: ( find {{workingdir}}/{{Dest_dir}}/whetstone/whetstone_temp/ -name "*.json" | xargs cp -t {{workingdir}}/{{Dest_dir}}/whetstone/)
+
- name: making_logs_folder
shell: mkdir -p {{workingdir}}/{{Dest_dir}}/whetstone/logs
+
- name: extracting_log
shell: ( find {{workingdir}}/{{Dest_dir}}/whetstone/whetstone_temp/ -name "*.log" | xargs cp -t {{workingdir}}/{{Dest_dir}}/whetstone/logs)
+
- name: removing whetstone_temp
shell: rm -rf {{workingdir}}/{{Dest_dir}}/whetstone/whetstone_temp