-
Notifications
You must be signed in to change notification settings - Fork 2
Install update #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dvalinrh
wants to merge
10
commits into
master
Choose a base branch
from
install_update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Install update #56
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
420b904
Update installation and fix mssql
dvalinrh 5a58e1d
Bring in hammerb_scripts
dvalinrh 513ed83
Updates
dvalinrh de9795f
Code review updates from qodo
dvalinrh a9d55ba
Code review updates.
dvalinrh 4b29984
Code review updates.
dvalinrh 982b980
Change password
dvalinrh 1838b42
Code review updates
dvalinrh 28b5d55
Updates from AI code review.
dvalinrh be9d2cd
Cleanup issues from AI code review.
dvalinrh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| "bc", | ||
| "git", | ||
| "unzip", | ||
| "wget", | ||
| "zip" | ||
| ], | ||
| "pip": [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "dependencies": { | ||
| "rhel": [ | ||
| "mssql-server", | ||
| "unixODBC-devel", | ||
| "gdb", | ||
| "cyrus-sasl", | ||
| "libatomic", | ||
| "lsof" | ||
| ], | ||
| "pip": [ | ||
| "typing-extensions" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/tclsh | ||
| # | ||
|
|
||
| puts "SETTING CONFIGURATION" | ||
|
|
||
| global complete | ||
| proc wait_to_complete {} { | ||
| global complete | ||
| set complete [vucomplete] | ||
| if {!$complete} {after 5000 wait_to_complete} else { exit } | ||
| } | ||
|
|
||
|
|
||
| dbset db mysql | ||
| diset connection mysql_host 127.0.0.1 | ||
| diset connection mysql_port 3306 | ||
| diset tpcc mysql_count_ware 500 | ||
| diset tpcc mysql_partition true | ||
| diset tpcc mysql_num_vu 50 | ||
| diset tpcc mysql_pass mysql | ||
| diset tpcc mysql_storage_engine innodb | ||
| print dict | ||
| buildschema | ||
| wait_to_complete | ||
| vwait forever |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| #!/bin/sh | ||
|
|
||
| export PATH=$PATH:.: | ||
| ## Stop and start the mariadb server and drop and create the database | ||
| LD_LIBRARY_PATH=/lib64/mysql:$LD_LIBRARY_PATH | ||
| export LD_LIBRARY_PATH | ||
|
|
||
| ## Setting up variables for the run and Collecting system information #### | ||
| Usercount="50" | ||
| whc="500" | ||
| Testname="HDB_tpcc_mariadb" | ||
| benchmark_name="Hammerdb-tpcc" | ||
| echo ${benchmark_name} > ${benchmark_run_dir}/user-benchmark-name.txt | ||
| hostnm=`hostname -f` | ||
| hostip=`hostname -i` | ||
| numcpu=`nproc` | ||
| totmem=`cat /proc/meminfo |grep "MemTotal:" | awk '{print $2}'` | ||
| krel=`uname -r` ## Kernel | ||
|
|
||
| usage() | ||
| { | ||
| echo "Usage: | ||
| ./build_mariadb_tpcc.sh [-h] [-u users] [-w warehouse count] | ||
|
|
||
| Usage: | ||
| -h help | ||
| -u # of users (Default - 50) | ||
| -w warehouse count (Default - 500) | ||
|
|
||
| Examples: | ||
| ./build_mariadb_tpcc.sh -u "10" -w 50 | ||
| Build 50 warehouse tpcc database with 10 users | ||
| " | ||
| } | ||
|
|
||
| while [ $# -gt 0 ] | ||
| do | ||
| case $1 in | ||
| -h) usage; | ||
| exit; | ||
| ;; | ||
| -w) whc=$2 | ||
| shift 2 | ||
| ;; | ||
| -u) Usercount=$2 | ||
| shift 2 | ||
| ;; | ||
| *) usage; | ||
| exit; | ||
| ;; | ||
| esac | ||
| done | ||
|
|
||
|
|
||
|
|
||
| ## Updating the value of buffer_pool_size based on available memory | ||
| ## Setting bufferpool to half of physical memory if memory is less than 128G else set to 64G | ||
| totmem_BP=`expr $totmem / 1024` | ||
| totmem_BP=`expr $totmem_BP / 2` | ||
|
|
||
| if [ $totmem_BP -lt 64000 ] | ||
| then | ||
| sed -i "s/^innodb_buffer_pool_size=.*/innodb_buffer_pool_size=${totmem_BP}M/" my.cnf | ||
| else | ||
| sed -i "s/^innodb_buffer_pool_size=.*/innodb_buffer_pool_size=64000M/" my.cnf | ||
| fi | ||
|
|
||
| /usr/bin/cp -f my.cnf /etc/my.cnf | ||
|
|
||
| ### Shutting down and starting Mariadb instance #### | ||
| systemctl restart mariadb.service | ||
| echo "Restarted DB" | ||
| sleep 60 | ||
|
dvalinrh marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Define number of warehouses and user count for the build | ||
|
|
||
|
|
||
| echo "Dropping database tpcc" | ||
| mysql -p100yard- -e 'drop database tpcc;' | ||
|
|
||
| echo "Building ${whc} warehouses with ${Usercount} users" | ||
| sed -i "s/^diset connection mysql_host.*/diset connection mysql_host ${hostip}/" build_mariadb.tcl | ||
| sed -i "s/^diset tpcc mysql_count_ware.*/diset tpcc mysql_count_ware ${whc}/" build_mariadb.tcl | ||
| sed -i "s/^diset tpcc mysql_num_vu.*/diset tpcc mysql_num_vu ${Usercount}/" build_mariadb.tcl | ||
|
|
||
| ./hammerdbcli auto build_mariadb.tcl > build_mariadb_${Testname}_${whc}WH_${Usercount}.out | ||
|
|
||
| echo "Mariadb TPCC database with ${whc} build done" | ||
|
dvalinrh marked this conversation as resolved.
|
Binary file not shown.
|
dvalinrh marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| [mysqld] | ||
| #large-pages | ||
| skip-log-bin | ||
| datadir=/perf1/mysql/data | ||
| port=3306 | ||
| skip-networking=0 | ||
| skip-bind-address | ||
| skip-grant-tables | ||
|
|
||
| # general | ||
| max_connections=4000 | ||
| table_open_cache=8000 | ||
| #table_open_cache_instances=16 | ||
| back_log=1500 | ||
| #default_password_lifetime=0 | ||
| ssl=0 | ||
| performance_schema=OFF | ||
| max_prepared_stmt_count=128000 | ||
| skip_log_bin=1 | ||
| character_set_server=latin1 | ||
| collation_server=latin1_swedish_ci | ||
| transaction_isolation=REPEATABLE-READ | ||
|
|
||
| # files | ||
| innodb_file_per_table | ||
| innodb_log_file_size=1024M | ||
| innodb_log_files_in_group=32 | ||
| innodb_open_files=4000 | ||
|
|
||
| # buffers | ||
| innodb_buffer_pool_size=16384M | ||
| innodb_buffer_pool_instances=16 | ||
| innodb_log_buffer_size=64M | ||
|
|
||
| # tune | ||
| innodb_doublewrite=0 | ||
| innodb_thread_concurrency=0 | ||
| innodb_flush_log_at_trx_commit=0 | ||
| innodb_max_dirty_pages_pct=90 | ||
| #innodb_max_dirty_pages_pct_lwm=10 | ||
|
|
||
| join_buffer_size=32K | ||
| sort_buffer_size=32K | ||
| innodb_use_native_aio=1 | ||
| #innodb_stats_persistent=1 | ||
| innodb_spin_wait_delay=6 | ||
|
|
||
| #innodb_max_purge_lag_delay=300000 | ||
| #innodb_max_purge_lag=0 | ||
| innodb_flush_method=O_DIRECT | ||
| #innodb_checksum_algorithm=none | ||
| #innodb_io_capacity=4000 | ||
| #innodb_io_capacity_max=20000 | ||
| #innodb_lru_scan_depth=9000 | ||
| innodb_change_buffering=none | ||
| #innodb_read_only=0 | ||
| #innodb_page_cleaners=4 | ||
| #innodb_undo_log_truncate=off | ||
|
|
||
| # perf special | ||
| innodb_adaptive_flushing=1 | ||
| #innodb_flush_neighbors=0 | ||
| innodb_read_io_threads=16 | ||
| innodb_write_io_threads=16 | ||
| innodb_purge_threads=4 | ||
| innodb_adaptive_hash_index=0 | ||
|
|
||
| # monitoring | ||
| #innodb_monitor_enable='%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| #!/bin/sh | ||
| export PATH=$PATH:.: | ||
|
|
||
| LD_LIBRARY_PATH=/lib64/mariadb:$LD_LIBRARY_PATH | ||
| export LD_LIBRARY_PATH | ||
|
|
||
| ## Set variables for the run | ||
| storagetype="Storage not specified" | ||
| Usercount="10 20 40 80 100" | ||
| whc="500" | ||
| #benchmark_results_dir=`pwd`"/results" | ||
| DBRESTARTUP="n" | ||
| Testname="HDB_tpcc_mariadb" | ||
|
|
||
| usage() | ||
| { | ||
| echo "Usage: | ||
| run_mssql_tpcc.sh [-h] [-u users] [-t runlength] [-w warehouse count] [-s storage type] | ||
|
|
||
| Usage: | ||
| -h help | ||
| -u # of users (Default - "10 20 40 80 100") | ||
| -t runlength in minutes (Default - 15 minuteS) | ||
| -w warehouse count (Default - 500 ) | ||
| -s storage type ( Default - "Storage not speficied" ) | ||
|
|
||
| Examples: | ||
| nrunoastoltp150.sh -u "10 20 30" | ||
|
dvalinrh marked this conversation as resolved.
Outdated
|
||
| Do runs with 10, 20 and 30 users | ||
| nrunoastoltp150.sh -s "nvme" | ||
| Do a 10 user, 500 warehouse, 15 minute run with storage type as "nvme" | ||
| nrunoastoltp150.sh -w 1000 -u "10 20 40 80 100" -s "iscsi" | ||
| Do a 1000 warehouse run with 10 20 40 80 and 100 users and storage type specified as iscsi | ||
| " | ||
| } | ||
|
|
||
| while [ $# -gt 0 ] | ||
| do | ||
| case $1 in | ||
| -h) usage; | ||
| exit; | ||
| ;; | ||
| -w) whc=$2 | ||
| shift 2 | ||
| ;; | ||
| -u) Usercount=$2 | ||
| shift 2 | ||
| ;; | ||
| -s) storagetype=$2 | ||
| shift 2 | ||
| ;; | ||
| -t) RUNLENGTH=$2 | ||
| shift 2 | ||
| ;; | ||
| *) usage; | ||
| exit; | ||
| ;; | ||
| esac | ||
| done | ||
|
|
||
| mkdir -p results | ||
|
|
||
| if [ -z "${benchmark_results_dir}" ] | ||
| then | ||
| benchmark_results_dir=`pwd`"/results" | ||
| fi | ||
|
|
||
| if [ -z "${benchmark_run_dir}" ] | ||
| then | ||
| benchmark_run_dir=`pwd`"/results" | ||
| fi | ||
|
|
||
| #echo ${storagetype} | ||
| #echo ${Usercount} | ||
| #echo ${benchmark_results_dir} | ||
| #echo ${whc} | ||
|
|
||
|
|
||
| ## Collecting system information | ||
| benchmark_name="Hammerdb-tpcc" | ||
| benchmark_ver="HammerDB-3.2" | ||
| #echo ${benchmark_name} ${benchmark_ver} > ${benchmark_run_dir}/user-benchmark-name.txt | ||
| hostnm=`hostname -f` | ||
| hostip=`hostname -i` | ||
| numcpu=`nproc` | ||
| totmem=`cat /proc/meminfo |grep "MemTotal:" | awk '{print $2}'` | ||
| krel=`uname -r` ## Kernel | ||
|
|
||
| ## Stop and start the mariadb server and drop and create the database | ||
|
dvalinrh marked this conversation as resolved.
Outdated
|
||
| #systemctl restart mariadb.service | ||
| #echo "Restarted DB" | ||
| #sleep 60 | ||
|
|
||
|
|
||
| # Set Host IP and Warehouse Count in the tcl file | ||
| #sed -i "s/^diset connection mysql_host.*/diset connection mysql_host ${hostip}/" runtest_mariadb.tcl | ||
|
dvalinrh marked this conversation as resolved.
Outdated
|
||
| sed -i "s/^diset tpcc mysql_count_ware.*/diset tpcc mysql_count_ware ${whc}/" runtest_mariadb.tcl | ||
|
|
||
| echo "StartTime,EndTime,Hostname,Kernel,Database,DBVer,Cpus,Memory,StorageType,Users,Tpm" > user-benchmark-result.csv | ||
| mariaver=`mysql -V |awk '{print $5}' | sed -e 's/,//'` | ||
|
|
||
|
|
||
| for uc in ${Usercount} | ||
| do | ||
| echo "Restarting Database before each run" | ||
| systemctl restart mariadb.service | ||
|
dvalinrh marked this conversation as resolved.
|
||
| starttime=`date +%Y.%m.%d.%T` | ||
| echo "Run with ${uc} users" | ||
| sed -i "s/^vuset.*/vuset vu ${uc}/" runtest_mariadb.tcl | ||
| ./hammerdbcli auto runtest_mariadb.tcl > test_mariadb_${Testname}_${uc}.out 2>&1 | ||
| endtime=`date +%Y.%m.%d.%T` | ||
| grep RESULT test_mariadb_${Testname}_${uc}.out | ||
| tpm=`grep TPM test_mariadb_${Testname}_${uc}.out | awk '{print $7}'` | ||
| echo "\"${starttime}\",\"${endtime}\",\"${hostnm}\",\"${krel}\",\"Mariadb\",\"${mariaver}\",\"${numcpu}\",\"${totmem}\",\"${storagetype}\",\"${uc}\",\"${tpm}\"" >> user-benchmark-result.csv | ||
| cp user-benchmark-result.csv $benchmark_results_dir | ||
| cp /etc/my.cnf $benchmark_results_dir | ||
| cp test_mariadb_${Testname}_${uc}.out $benchmark_results_dir | ||
| done | ||
| systemctl stop mariadb.service | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.