Skip to content

Commit

Permalink
aguia-pescadora-bravo (#16): Benchmarks; TL;DR: essa VM na OVH é extr…
Browse files Browse the repository at this point in the history
…emamente decente pelo preço pago
  • Loading branch information
fititnt committed May 18, 2019
1 parent b9a93c7 commit 6f683a6
Show file tree
Hide file tree
Showing 2 changed files with 338 additions and 2 deletions.
287 changes: 287 additions & 0 deletions logbook/aguia-pescadora-bravo-benchmarks.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,293 @@
echo "Este diário de bordo foi feito para ser visualizado, nao executado assim!"
exit

#### speedtest-cli
root@aguia-pescadora-bravo:~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from OVH Hosting (192.99.247.117)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Bell Mobility (Montreal, QC) [1.07 km]: 6.361 ms
Testing download speed................................................................................
Download: 97.58 Mbit/s
Testing upload speed......................................................................................................
Upload: 4.04 Mbit/s

#### sysbench (Banchmark geral)

### sysbench cpu run

Last login: Sat May 18 04:18:57 2019 from 201.21.106.135
root@aguia-pescadora-bravo:~# sysbench cpu run
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
events per second: 955.39

General statistics:
total time: 10.0011s
total number of events: 9560

Latency (ms):
min: 0.96
avg: 1.05
max: 4.77
95th percentile: 1.16
sum: 9997.29

Threads fairness:
events (avg/stddev): 9560.0000/0.00
execution time (avg/stddev): 9.9973/0.00

### sysbench memory run

root@aguia-pescadora-bravo:~# sysbench memory run
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Running memory speed test with the following options:
block size: 1KiB
total size: 102400MiB
operation: write
scope: global

Initializing worker threads...

Threads started!

Total operations: 41430889 (4142154.86 per second)

40459.85 MiB transferred (4045.07 MiB/sec)


General statistics:
total time: 10.0001s
total number of events: 41430889

Latency (ms):
min: 0.00
avg: 0.00
max: 0.06
95th percentile: 0.00
sum: 4351.66

Threads fairness:
events (avg/stddev): 41430889.0000/0.00
execution time (avg/stddev): 4.3517/0.00

## Disco SSH, via sysbench
#@see https://www.howtoforge.com/how-to-benchmark-your-system-cpu-file-io-mysql-with-sysbench

# O tamanho do arquivo de teste precisa ser muito maior que nossa RAM
# (que é 8GB), porém nosso disco tem livre 75GB. Vamos testar com 50GB
sysbench --test=fileio --file-total-size=50G prepare
root@aguia-pescadora-bravo:~# sysbench --test=fileio --file-total-size=50G prepare
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

128 files, 409600Kb each, 51200Mb total
Creating files for the test...
Extra file open flags: (none)
Creating file test_file.0
Creating file test_file.1
Creating file test_file.2
Creating file test_file.3
Creating file test_file.4
Creating file test_file.5
Creating file test_file.6
Creating file test_file.7
Creating file test_file.8
Creating file test_file.9
Creating file test_file.10
Creating file test_file.11
Creating file test_file.12
Creating file test_file.13
Creating file test_file.14
Creating file test_file.15
Creating file test_file.16
Creating file test_file.17
Creating file test_file.18
Creating file test_file.19
Creating file test_file.20
Creating file test_file.21
Creating file test_file.22
Creating file test_file.23
Creating file test_file.24
Creating file test_file.25
Creating file test_file.26
Creating file test_file.27
Creating file test_file.28
Creating file test_file.29
Creating file test_file.30
Creating file test_file.31
Creating file test_file.32
Creating file test_file.33
Creating file test_file.34
Creating file test_file.35
Creating file test_file.36
Creating file test_file.37
Creating file test_file.38
Creating file test_file.39
Creating file test_file.40
Creating file test_file.41
Creating file test_file.42
Creating file test_file.43
Creating file test_file.44
Creating file test_file.45
Creating file test_file.46
Creating file test_file.47
Creating file test_file.48
Creating file test_file.49
Creating file test_file.50
Creating file test_file.51
Creating file test_file.52
Creating file test_file.53
Creating file test_file.54
Creating file test_file.55
Creating file test_file.56
Creating file test_file.57
Creating file test_file.58
Creating file test_file.59
Creating file test_file.60
Creating file test_file.61
Creating file test_file.62
Creating file test_file.63
Creating file test_file.64
Creating file test_file.65
Creating file test_file.66
Creating file test_file.67
Creating file test_file.68
Creating file test_file.69
Creating file test_file.70
Creating file test_file.71
Creating file test_file.72
Creating file test_file.73
Creating file test_file.74
Creating file test_file.75
Creating file test_file.76
Creating file test_file.77
Creating file test_file.78
Creating file test_file.79
Creating file test_file.80
Creating file test_file.81
Creating file test_file.82
Creating file test_file.83
Creating file test_file.84
Creating file test_file.85
Creating file test_file.86
Creating file test_file.87
Creating file test_file.88
Creating file test_file.89
Creating file test_file.90
Creating file test_file.91
Creating file test_file.92
Creating file test_file.93
Creating file test_file.94
Creating file test_file.95
Creating file test_file.96
Creating file test_file.97
Creating file test_file.98
Creating file test_file.99
Creating file test_file.100
Creating file test_file.101
Creating file test_file.102
Creating file test_file.103
Creating file test_file.104
Creating file test_file.105
Creating file test_file.106
Creating file test_file.107
Creating file test_file.108
Creating file test_file.109
Creating file test_file.110
Creating file test_file.111
Creating file test_file.112
Creating file test_file.113
Creating file test_file.114
Creating file test_file.115
Creating file test_file.116
Creating file test_file.117
Creating file test_file.118
Creating file test_file.119
Creating file test_file.120
Creating file test_file.121
Creating file test_file.122
Creating file test_file.123
Creating file test_file.124
Creating file test_file.125
Creating file test_file.126
Creating file test_file.127
53687091200 bytes written in 279.73 seconds (183.03 MiB/sec).

root@aguia-pescadora-bravo:~# sysbench --test=fileio --file-total-size=50G --file-test-mode=rndrw --max-requests=0 run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Extra file open flags: (none)
128 files, 400MiB each
50GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...

Threads started!


File operations:
reads/s: 229.33
writes/s: 152.89
fsyncs/s: 492.28

Throughput:
read, MiB/s: 3.58
written, MiB/s: 2.39

General statistics:
total time: 10.2015s
total number of events: 8795

Latency (ms):
min: 0.00
avg: 1.14
max: 25.34
95th percentile: 5.88
sum: 9983.70

Threads fairness:
events (avg/stddev): 8795.0000/0.00
execution time (avg/stddev): 9.9837/0.00

root@aguia-pescadora-bravo:~# sysbench --test=fileio --file-total-size=50G cleanup
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Removing test files...


#### BENCHMARK DISCO SSD________________________________________________________
### @see https://www.shellhacks.com/disk-speed-test-read-write-hdd-ssd-perfomance-linux/

Expand Down
53 changes: 51 additions & 2 deletions logbook/aguia-pescadora-bravo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,54 @@ sudo apt install language-pack-pt language-pack-pt-base

sudo update-locale LANG=pt_PT.utf8

### Criar Swap_____________________________________________
# @see aguia-pescadora-bravo-benchmarks.sh
### Criar Swap__________________________________________________________________


#------------------------------------------------------------------------------#
# SEÇÃO: Benchmark do sistema #
# TL;DR: Avalia performance da máquina virtual e de rede #
# Essa VM mais do que decente pelo preço dela!!! #
#------------------------------------------------------------------------------#
# Nota: logs detalhados no aguia-pescadora-bravo-benchmarks.sh, aqui tem apenas
# parte da informação

### Velocidade da internet
sudo apt-get install speedtest-cli
speedtest-cli

# Nota: as velocidades estão dentro do oferecido pela OVH (que é 100Mbit/s)
# e isso é otimo considerando que é trafego ilimitado e mais do que
# atende as necessidades que se pretende usar o aguia-pescadora.
# Download: 97.58 Mbit/s
# Upload: 4.04 Mbit/s

### @see https://www.shellhacks.com/disk-speed-test-read-write-hdd-ssd-perfomance-linux/

# @see https://linuxhint.com/check-ram-ubuntu/
sudo apt-get install memtester
# Nota: memtester nao retorna velocidade, apenas se memoria esta saudável.
# melhor usar outros

### @see http://www.geekpills.com/operating-system/linux/linux-check-ram-speed-type

### @see https://askubuntu.com/questions/634513/cpu-benchmarking-utility-for-linux/634516#634516
### @see https://github.com/akopytov/sysbench#linux
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash
sudo apt install sysbench

## CPU, via sysbench
sysbench cpu run
# Resultado em aguia-pescadora-bravo-benchmarks.sh

## Memória RAM, via sysbench
sysbench memory run
# Resultado em aguia-pescadora-bravo-benchmarks.sh

## Disco SSH, via sysbench
#@see https://www.howtoforge.com/how-to-benchmark-your-system-cpu-file-io-mysql-with-sysbench

# O tamanho do arquivo de teste precisa ser muito maior que nossa RAM
# (que é 8GB), porém nosso disco tem livre 75GB. Vamos testar com 50GB
sysbench --test=fileio --file-total-size=50G prepare
sysbench --test=fileio --file-total-size=50G --file-test-mode=rndrw --max-requests=0 run
sysbench --test=fileio --file-total-size=50G cleanup

0 comments on commit 6f683a6

Please sign in to comment.