From patchwork Thu Aug 6 12:17:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 51999 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by patches.linaro.org (Postfix) with ESMTPS id 9A06D20539 for ; Thu, 6 Aug 2015 12:17:30 +0000 (UTC) Received: by iggf3 with SMTP id f3sf23135729igg.3 for ; Thu, 06 Aug 2015 05:17:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=g3Ufm9mG9VTtPasxog2tSL9ljvCtNqC324O5ntGT14A=; b=lxnavbEO1QbsTi0fM8L2R+svM05AdIA4dS4qrOLiJHiel1lPF9BcUCkSANJ45gxtej FYgWk7jbBJaALyecz3y7QoE72LRE3U1NRnoCdt0cocyi4SIaf+I1sAaG9Uza8e1gjASw LbYqrUHfE7UgvNLSBZNfi/4EwmpjLOehT3pwYgZ7We0fSt2rqMZ8GJs3ELdRyhS+xnRQ LT+m3MZwdyqzGydMT5qNMMVzTcGLYxgVzbB3hsfeZMznghBP5pqab93Wa4icHHmGF722 1rCddeEqBn+AlKSnzxhGsuijl/+Qv8VsxvAbdQPu/eYMy6IscwQ5j3v4B6Fpy2137RY9 cXzQ== X-Gm-Message-State: ALoCoQm5EqGMU7iqELppTvFUKCMSChUgpYZ1OwUPv2VDzrA0q1hDYBncAlVfm4iACYmsIbmj9naX X-Received: by 10.182.70.4 with SMTP id i4mr1108729obu.15.1438863450176; Thu, 06 Aug 2015 05:17:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.11 with SMTP id s11ls1204828qgs.20.gmail; Thu, 06 Aug 2015 05:17:30 -0700 (PDT) X-Received: by 10.140.20.214 with SMTP id 80mr2535443qgj.26.1438863450003; Thu, 06 Aug 2015 05:17:30 -0700 (PDT) Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com. [209.85.192.50]) by mx.google.com with ESMTPS id j19si11447014qhc.65.2015.08.06.05.17.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Aug 2015 05:17:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.192.50 as permitted sender) client-ip=209.85.192.50; Received: by qgj62 with SMTP id 62so25791656qgj.2 for ; Thu, 06 Aug 2015 05:17:29 -0700 (PDT) X-Received: by 10.140.22.73 with SMTP id 67mr2452063qgm.42.1438863449853; Thu, 06 Aug 2015 05:17:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.96.155.133 with SMTP id vw5csp832435qdb; Thu, 6 Aug 2015 05:17:29 -0700 (PDT) X-Received: by 10.55.22.142 with SMTP id 14mr2439232qkw.58.1438863449340; Thu, 06 Aug 2015 05:17:29 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z68si11478767qkg.64.2015.08.06.05.17.28; Thu, 06 Aug 2015 05:17:29 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 9686062102; Thu, 6 Aug 2015 12:17:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9C990620C1; Thu, 6 Aug 2015 12:17:25 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 08872620C2; Thu, 6 Aug 2015 12:17:23 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by lists.linaro.org (Postfix) with ESMTPS id 37FA1620A1 for ; Thu, 6 Aug 2015 12:17:22 +0000 (UTC) Received: by wibxm9 with SMTP id xm9so21532344wib.1 for ; Thu, 06 Aug 2015 05:17:21 -0700 (PDT) X-Received: by 10.195.13.200 with SMTP id fa8mr2797422wjd.9.1438863441507; Thu, 06 Aug 2015 05:17:21 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id s16sm3012759wib.16.2015.08.06.05.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Aug 2015 05:17:20 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 6 Aug 2015 15:17:15 +0300 Message-Id: <1438863435-5742-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCHv] validation: kill odp_generator X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.192.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Usually odp_generator exists when veth is destroyed, but not always. Because cpu load impacts on other performance tests we have to be sure that odp_generator is not running in background. Signed-off-by: Maxim Uvarov --- v2: kill by pid instead of killall test/performance/odp_l2fwd_run | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/performance/odp_l2fwd_run b/test/performance/odp_l2fwd_run index e89bec8..c20a3e1 100755 --- a/test/performance/odp_l2fwd_run +++ b/test/performance/odp_l2fwd_run @@ -59,10 +59,13 @@ run_l2fwd() (odp_generator${EXEEXT} -I $IF0 \ --srcip 192.168.0.1 --dstip 192.168.0.2 -m u 2>&1 > /dev/null) \ 2>&1 > /dev/null & + GEN_PID=$! echo "Run odp_l2fwd -i $IF1,$IF2 -m 0 -t 30 -c 2" odp_l2fwd${EXEEXT} -i $IF1,$IF2 -m 0 -t 30 -c 2 + kill ${GEN_PID} + cleanup_pktio_env if [ $? -ne 0 ]; then echo "cleanup_pktio_env error $?"