1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/calbench/test_disable_enable.sql
2016-01-06 14:08:59 -06:00

31 lines
1.3 KiB
SQL

\! /usr/local/Calpont/bin/calpontConsole getsystemstatus | grep "Module pm" | grep ' ACTIVE ' | wc -l | awk '{print "-- -- -- " $0" Active PMs -- -- --"}'
\. flush
-- elapsed time with 0% cache hit (all PIO)
select count(*) from lineorder;
-- elapsed time with 100% cache hit (all LIO)
select count(*) from lineorder;
\! sleep 40 | /usr/local/Calpont/bin/calpontConsole altersystem-disablemodule pm3,pm4 y | grep Modules
\! /usr/local/Calpont/bin/calpontConsole getsystemstatus | grep "Module pm" | grep ' ACTIVE ' | wc -l | awk '{print "-- -- -- " $0" Active PMs -- -- --"}'
-- elapsed time with variable cache hit %
select count(*) from lineorder;
\. flush
-- elapsed time with 0% cache hit (all PIO)
select count(*) from lineorder;
-- elapsed time with 100% cache hit (all LIO)
select count(*) from lineorder;
\! /usr/local/Calpont/bin/calpontConsole altersystem-enablemodule pm3,pm4 y | grep Modules
\! /usr/local/Calpont/bin/calpontConsole getsystemstatus | grep "Module pm" | grep ' ACTIVE ' | wc -l | awk '{print "-- -- -- " $0" Active PMs -- -- --"}'
-- elapsed time with variable cache hit %
select count(*) from lineorder;
\. flush
-- elapsed time with 0% cache hit (all PIO)
select count(*) from lineorder;
-- elapsed time with 100% cache hit (all LIO)
select count(*) from lineorder;