예제 #1
0
trial_name = "tpca"

targetSys = []
if EXP3_DAST_ONLY:
    targetSys = ["chronos"]
else:
    targetSys = SysNames

for sysname in targetSys:
    cmd = ["./run_all.py"]
    cmd.extend(["-hh", "config/out.yml"])
    cmd.extend(["-s", str(N_REGIONS * N_SHARD_PER_REGION)])
    cmd.extend(["-c", str(N_REGIONS * N_SHARD_PER_REGION)])
    cmd.extend(["-r", "3"])
    cmd.extend(["-z", "0.5"])  # will be changed by the run_all.py
    cmd.extend(["-cc", "config/tpca_zipf.yml"])
    cmd.extend(["-cc", "config/client_closed.yml"])
    cmd.extend(["-cc", "config/concurrent_50.yml"])  # default
    cmd.extend(["-cc", "config/" + sysname + ".yml"])
    cmd.extend(["-b", "tpca"])
    cmd.extend(["-m", sysname + ":" + sysname])
    cmd.extend(["-t", trial_name])
    cmd.extend(["--allow-client-overlap"])
    cmd.extend(["testing"])

    cmd = [str(c) for c in cmd]

    res = subprocess.call(cmd)

genFigure.drawFig(trial_name)
예제 #2
0
import subprocess
from exp_config import *
import genFigure

trial_name = "n_clients"

for sysname in SysNames:
    for cps in CLIENT_PROCESS_PER_SHARD:
        cmd = ["./run_all.py"]
        cmd.extend(["-hh", "config/out.yml"])
        cmd.extend(["-s", str(N_REGIONS * N_SHARD_PER_REGION)])
        cmd.extend(["-c", str(N_REGIONS * N_SHARD_PER_REGION * cps)])
        cmd.extend(["-r", "3"])
        cmd.extend(["-cc", "config/tpcc.yml"])
        cmd.extend(["-cc", "config/client_closed.yml"])
        cmd.extend(["-cc", "config/concurrent_1.yml"
                    ])  # this value will be changed anyway, use 1
        cmd.extend(["-cc", "config/" + sysname + ".yml"])
        cmd.extend(["-b", "tpcc"])
        cmd.extend(["-m", sysname + ":" + sysname])
        cmd.extend(["-t", trial_name])
        cmd.extend(["--allow-client-overlap"])
        cmd.extend(["testing"])

        cmd = [str(c) for c in cmd]

        res = subprocess.call(cmd)

genFigure.drawFig("n_clients")