From patchwork Thu Oct 24 12:47:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 21247 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CF994244EE for ; Thu, 24 Oct 2013 12:47:44 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id tp5sf6613961ieb.9 for ; Thu, 24 Oct 2013 05:47:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=x19hRVj+7bqjsz3XmolRO8ls8PK2ehcyxkmwN0ihvQ0=; b=BdbtHBgA5NInwvMc7EZHVETNMjOdqzdK6XbVH+rGymXFMpqAVLPTNeQoRKjr2oJcDl etgqlmjrB2YtLuL337dBCobgfcBwshVoa4NTKVU43SIv+JTEUngyXuRZVNm7d8ANSr1P AGxTIHdhn1OO1TZYXRrAy/aWtIxd486/0sUcswcJ7YMwH2aj5+B15Y2yVAYvPSv4gmgL ftsmEpk+EU1M3cCB3PqZTIE3sZUEjGWn0V4HOcg4vftvI749TKSlk1pwJjYOWDupRWda VUP7WcqSuElfWk7mYIR3tdNoDr3I9/gwVc/WuSgfm/OOGHNkBSFXhYN+SwkUnRr4fBjI GUaQ== X-Received: by 10.182.109.137 with SMTP id hs9mr884586obb.21.1382618863926; Thu, 24 Oct 2013 05:47:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.228 with SMTP id n4ls755941qen.71.gmail; Thu, 24 Oct 2013 05:47:43 -0700 (PDT) X-Received: by 10.58.255.71 with SMTP id ao7mr1324215ved.16.1382618863781; Thu, 24 Oct 2013 05:47:43 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id m10si276451vcy.18.2013.10.24.05.47.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Oct 2013 05:47:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id cz12so1331057veb.3 for ; Thu, 24 Oct 2013 05:47:43 -0700 (PDT) X-Gm-Message-State: ALoCoQlYCiM+8WIVOoFBTaNWTaBvHbKXiscmeEihiyDhDmOLrpoLW7VERbhRFfysutGoglzHbI3l X-Received: by 10.220.164.202 with SMTP id f10mr1340811vcy.25.1382618863627; Thu, 24 Oct 2013 05:47:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp388134vcz; Thu, 24 Oct 2013 05:47:42 -0700 (PDT) X-Received: by 10.152.7.105 with SMTP id i9mr1734322laa.9.1382618862085; Thu, 24 Oct 2013 05:47:42 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by mx.google.com with ESMTPS id m1si855549lae.160.2013.10.24.05.47.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Oct 2013 05:47:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.169 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id o14so1888539lbi.28 for ; Thu, 24 Oct 2013 05:47:41 -0700 (PDT) X-Received: by 10.152.20.74 with SMTP id l10mr1156755lae.46.1382618861462; Thu, 24 Oct 2013 05:47:41 -0700 (PDT) Received: from localhost.localdomain ([92.39.133.154]) by mx.google.com with ESMTPSA id vx8sm2237392lbb.8.2013.10.24.05.47.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Oct 2013 05:47:40 -0700 (PDT) From: Maxim Uvarov To: linaro-networking@linaro.org Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, Maxim Uvarov Subject: [PATCH] add openem x86 tests Date: Thu, 24 Oct 2013 16:47:28 +0400 Message-Id: <1382618848-3377-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Maxim Uvarov --- ubuntu/openem.yaml | 28 ++++++++++++++++++++++++++ ubuntu/scripts/openem.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 ubuntu/openem.yaml create mode 100755 ubuntu/scripts/openem.sh diff --git a/ubuntu/openem.yaml b/ubuntu/openem.yaml new file mode 100644 index 0000000..1a3939d --- /dev/null +++ b/ubuntu/openem.yaml @@ -0,0 +1,28 @@ +metadata: + name: thp + format: "Lava-Test-Shell Test Definition 1.0" + description: "Test for open event machine x86." + +install: + git-repos: + - git://git.linaro.org/qa/test-definitions.git + deps: + - python-twisted + - git + - make + - unzip + - gcc + - build-essential + - libc6-dev + - gcc-multilib +run: + steps: + - "cd testcases/ubuntu/scripts" + - "./openem.sh" + + +parse: + pattern: "^(?P[a-zA-Z0-9_-]+):\\s(?P\\w+)" + fixupdict: + PASS: pass + FAIL: fail diff --git a/ubuntu/scripts/openem.sh b/ubuntu/scripts/openem.sh new file mode 100755 index 0000000..63bb028 --- /dev/null +++ b/ubuntu/scripts/openem.sh @@ -0,0 +1,50 @@ +#!/bin/bash -x + +mount -t tmpfs none /dev/shm +echo 400 > /proc/sys/vm/nr_hugepages + +rm -rf ./Build +mkdir ./Build +cd ./Build + +wget http://people.linaro.org/~maxim.uvarov/Intel_DPDK%20Code_1.5.0_8.zip +unzip Intel_DPDK\ Code_1.5.0_8.zip +mv DPDK-1.5.0 DPDK_1.5.0-8 + +git clone git://git.linaro.org/lng/eventmachine-code.git eventmachine-code.git + +patch -p0 < ./eventmachine-code.git/misc/linux-generic/patch/DPDK_1.5.0-8-linux-generic.patch +cd DPDK_1.5.0-8 + +sed -i 's/CONFIG_RTE_MAX_MEMZONE=2560/CONFIG_RTE_MAX_MEMZONE=131072/' ./config/defconfig_* +sed -i 's/CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE=512/CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE=2048/' ./config/defconfig_* +sed -i 's/CONFIG_RTE_MBUF_SCATTER_GATHER=y/CONFIG_RTE_MBUF_SCATTER_GATHER=n/' ./config/defconfig_* +sed -i 's/CONFIG_RTE_MBUF_REFCNT_ATOMIC=y/CONFIG_RTE_MBUF_REFCNT_ATOMIC=n/' ./config/defconfig_* +sed -i 's/CONFIG_RTE_PKTMBUF_HEADROOM=128/CONFIG_RTE_PKTMBUF_HEADROOM=192/' ./config/defconfig_* +make install T=generic_32-default-linuxapp-gcc + +export RTE_SDK=`pwd` +export RTE_TARGET=generic_32-default-linuxapp-gcc +#export RTE_TARGET=generic_64-default-linuxapp-gcc + +mkdir /mnt/huge +umount /mnt/huge +mount -t hugetlbfs nodev /mnt/huge + +#EM +cd ../eventmachine-code.git/event_test/example/linux-generic +make real_clean && make em_clean +make + +#run some tests: +./build/hello -c 0xfe -n 4 -- -p | head -n 500 # (Run 'hello' on 7 cores using EM process-per-core mode(-p)) +./build/hello -c 0xfcfc -n 4 -- -t | head -n 500 # (Run 'hello' on 12 cores using EM thread-per-core mode(-t)) +./build/perf -c 0xffff -n 4 -- -p | head -n 500 # (Run 'perf' on 16 cores using EM process-per-core mode(-p)) +./build/perf -c 0xfffe -n 4 -- -t | hean -n 500 # (Run 'perf' on 15 cores using EM thread-per-core mode(-t)) +./build/event_group -c 0x0c0c -n 4 -- -p | head -n 500 # (Run 'event_group' on 4 cores using EM process-per-core mode(-p)) +./build/event_group -c 0x00f0 -n 4 -- -t | head -n 500 # (Run 'event_group' on 4 cores using EM thread-per-core mode(-t)) +./build/error -c 0x3 -n 4 -- -p |head -n 500 # (Run 'error' on 2 cores using EM process-per-core mode(-p)) +./build/error -c 0x2 -n 4 -- -t |head -n 500 # (Run 'error' on 1 core using EM thread-per-core mode(-t)) + +echo "OPENEM TEST END!!!" +