aboutsummaryrefslogtreecommitdiffstats
path: root/samples/computecapacity.yaml
blob: bf6a2ade77cf7d702d6fdfeed48fc153bfbde6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
# Sample benchmark task config file
# compute capacity and scale.

# the results have
# number of CPUs, number of physical cores in a single CPU
# number of logical cores, total memory size
# cache size per CPU, total cache size
# HT (Hyper-Thread) support status, 1 for open, 0 for close

schema: "yardstick:task:0.1"

scenarios:
-
  type: ComputeCapacity
  options:

  nodes:
    host: node5.LF

  runner:
    type: Iteration
    iterations: 1

context:
  type: Node
  name: LF
  file: /root/yardstick/etc/yardstick/nodes/compass_sclab_virtual/pod.yaml
).done CONFIG_CMD = CONFIG_CMD += ./configure CONFIG_CMD += --target-list="x86_64-softmmu" QEMU_VANILLA = ../../src_vanilla/qemu QEMU_CUSE = ../../src_cuse/qemu all: force_make .PHONY: install force_install config force_make # install depends on make force_install: force_make @echo "Finished making $(WORK_DIR) " config $(WORK_DIR)/Makefile: $(WORK_DIR)/configure $(AT)cd $(WORK_DIR); $(CONFIG_CMD) @echo "Configure done" INSTALL_TARGET = force_install force_make force_make: $(WORK_DIR)/Makefile $(AT)cd $(WORK_DIR) && git pull $(QEMU_URL) $(QEMU_TAG) $(AT)echo "git pull done" $(AT)$(MAKE) -C $(WORK_DIR) $(MORE_MAKE_FLAGS) @echo "Make done" force_install: $(AT)sudo $(MAKE) -C $(WORK_DIR) install install: $(INSTALL_TARGET) # hard way to clean and clobber clean: $(AT)cd $(WORK_DIR) && git clean -xfd *.o clobber: $(AT)rm -rf $(WORK_DIR) $(AT)rm -rf $(QEMU_VANILLA) $(AT)rm -rf $(QEMU_CUSE) # distclean is for developer who would like to keep the # clone git repo, saving time to fetch again from url distclean: $(AT)cd $(WORK_DIR) && git clean -xfd && git checkout -f test: @echo "Make test in $(WORK_DIR) (stub) " sanity: @echo "Make sanity in $(WORK_DIR) (stub) " $(WORK_DIR)/configure: $(TAG_DONE_FLAG) $(WORK_DIR): $(AT)git clone $(QEMU_URL) $(AT)mkdir -p $(QEMU_VANILLA) $(AT)cp -rf ./* $(QEMU_VANILLA) $(AT)mkdir -p $(QEMU_CUSE) $(AT)cp -rf ./* $(QEMU_CUSE) $(TAG_DONE_FLAG): $(WORK_DIR) $(AT)cd $(WORK_DIR); git checkout $(QEMU_TAG) ifneq ($(PATCH_FILE),) $(AT)cd $(WORK_DIR); patch -p1 < ../$(PATCH_FILE) endif $(AT)touch $@