def PrepareActConfig(vm, load): """Prepare config file for act benchmark.""" if FLAGS.act_parallel: for i in range(FLAGS.act_reserved_partitions, len(vm.scratch_disks)): act.PrepActConfig(vm, float(load), i) else: act.PrepActConfig(vm, float(load))
def Prepare(benchmark_spec): """Prepares act benchmark.""" vm = benchmark_spec.vms[0] vm.Install('act') if FLAGS.act_parallel: for i in range(len(vm.scratch_disks))[FLAGS.act_reserved_partitions:]: act.PrepActConfig(vm, i) else: act.PrepActConfig(vm) for d in vm.scratch_disks: vm.RemoteCommand('sudo umount %s' % d.mount_point)