From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by dpdk.org (Postfix) with ESMTP id 406762FDD for ; Fri, 15 Sep 2017 18:23:17 +0200 (CEST) Received: by mail-lf0-f51.google.com with SMTP id l196so2942634lfl.1 for ; Fri, 15 Sep 2017 09:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=nPmBeeK7n//PGx++CrQ70tDXJlpDneHG5VwdtrbRxps=; b=bIbjPlcgigp+sqpaPRdjy8oMyVb0oZ+8UiGMOm2euqfQn6fswQTXHznEfIlxXa1Doo S4tS7PTrtvAO3N+8MzB/+zlvAeevOQK5lY8GssYA8+xK8xuNsI82tpN51oZXbBg0L3mH vjLsQ14U+8lLty9vSKrDf1jO2krLEOf8i/N8Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nPmBeeK7n//PGx++CrQ70tDXJlpDneHG5VwdtrbRxps=; b=m2tW6OmrHXcy0VQm6yG2b/lUw1Bg8Kd29ODqqJzcRtQMjRkajeZWlCu02/6NfBzsW+ h1QR6TJs2mrIKhYan84qO9BplyTDc0dupudyo3F2KReS9EPOcCmuW3Mb7ZrXwfavqVXG MjejVWh121jBzE0WKPQY6W9qkn3zqFqyk2QNbELPvegL5EGTaR4VdbnIMiubHfEP5uN3 EWPkkswV5CayFuRjJIIgsx1WcJw92B0OuVcixiLQzkr0xNu7uQB+LVdbkf7d5wi2sBg4 08fn35Bh/1Qvbypd/Zss82ORszKWbrOMGDJLxkBMgpMuE3akkeFuq9C3U89WjmgJcysj Ilow== X-Gm-Message-State: AHPjjUgNoF2DFNBI+OfeRBEanC8Xo+PsOuc9Bi6LQkPnoEOJ79U2IV46 WNXu3XSi7mOBJLFZzLfDWg== X-Google-Smtp-Source: AOwi7QAzFsH20wcQCugJ2gzlYi0K0AHbWrz4/xPPawm2+kp9b53bbyCNFovtNd2ZIG0wIIxII7Sjqg== X-Received: by 10.46.34.194 with SMTP id i185mr3582343lji.45.1505492596636; Fri, 15 Sep 2017 09:23:16 -0700 (PDT) Received: from rad-H81M-S1.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id j1sm210343lfe.82.2017.09.15.09.23.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Sep 2017 09:23:15 -0700 (PDT) From: Radoslaw Biernacki To: dts@dpdk.org Cc: jianbo.liu@linaro.org, herbert.guan@arm.com, Radoslaw Biernacki Date: Fri, 15 Sep 2017 18:22:28 +0200 Message-Id: <1505492549-8602-1-git-send-email-radoslaw.biernacki@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [dts] [PATCH] framework: Adding limit for make job execution X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2017 16:23:17 -0000 Unlimited parralel job execution cause OOM on memory constrained targets Signed-off-by: Radoslaw Biernacki --- framework/project_dpdk.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 402ac8d..23d1d7c 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -210,7 +210,8 @@ class DPDKdut(Dut): self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#") # compile - out = self.send_expect("make -j install T=%s %s" % (target, extra_options), "# ", build_time) + out = self.send_expect("make -j %d install T=%s %s" % + (self.number_of_cores, target, extra_options), "# ", build_time) #should not check test app compile status, because if test compile fail, #all unit test can't exec, but others case will exec sucessfull self.build_install_dpdk_test_app(target, build_time) @@ -253,9 +254,9 @@ class DPDKdut(Dut): assert ("No rule to make" not in out), "No rule to make error..." def build_install_dpdk_test_app(self, target, build_time, os_type="linux"): - cmd_build_test = "make -j -C test/" + cmd_build_test = "make -j %d -C test/" % (self.number_of_cores) if os_type == "freebsd": - cmd_build_test = "make -j -C test/ CC=gcc48" + cmd_build_test = "make -j %d -C test/ CC=gcc48" % (self.number_of_cores) self.send_expect(cmd_build_test, "# ", build_time) app_list = ['./test/test/test', './test/test-acl/testacl', './test/test-pipeline/testpipeline', './test/cmdline_test/cmdline_test'] @@ -380,7 +381,8 @@ class DPDKdut(Dut): self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#") self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#") self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#") - return self.send_expect("make -j -C %s %s" % (folder, extra_options), + return self.send_expect("make -j %d -C %s %s" % (self.number_of_cores, + folder, extra_options), "# ", timeout) def build_dpdk_apps_freebsd(self, folder, extra_options): @@ -390,7 +392,8 @@ class DPDKdut(Dut): self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#") self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#") self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#") - return self.send_expect("make -j -C %s %s CC=gcc48" % (folder, extra_options), + return self.send_expect("make -j %d -C %s %s CC=gcc48" % (self.number_of_cores, + folder, extra_options), "# ", 180) def get_blacklist_string(self, target, nic): -- 1.9.1