in fiosynth_lib/fiosynth.py [0:0]
def prepServers(dut_list, args, profile):
# The increment variable is used to set the "offset_increment" fio option
# for the readhammer workload. Setting this option allows the workload to
# read from 32 equally
# spaced regions on the flash device in parallel.
# The offset_increment is calculated by converting the flash device
# capacity from bytes to MiB then dividing by 32, representing 1/32
# of the total flash device capacity. Offet is in MiB.
for dut in dut_list:
if not dut.inLocalMode():
startAoeServer(dut)
if args.tunneling == "y":
startSshTunnel(dut)
fio_json_parser.tunnel2host[dut.sshTunnelPort] = dut.serverName
if dut.capacity:
dut.increment = int(float(dut.capacity) / 2 ** 20 / 32)
dut.offset = randint(0, dut.increment)
dut.numjobs *= args.job_scale
if args.factor <= 0.0:
if profile["scale_by_capacity"] != "N":
dut.factor = getMultiplier(dut.capacity)
else:
dut.factor = 1.0
else:
dut.factor = args.factor