From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 312D2558C for ; Mon, 12 Sep 2016 13:39:06 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 1515D290C8; Mon, 12 Sep 2016 13:39:06 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org, cristian.dumitrescu@intel.com Date: Mon, 12 Sep 2016 13:38:49 +0200 Message-Id: <1473680329-29595-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.8.1 Subject: [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2016 11:39:06 -0000 The sched test consumes 35MB memory. When memory is too fragmented (with 2M hugepages), the test can fail. To reduce this risk, decrease it to 4.5MB by modifying n_pipes_per_subport and qsize. Signed-off-by: Olivier Matz --- app/test/test_sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_sched.c b/app/test/test_sched.c index 63ab084..bd2776d 100644 --- a/app/test/test_sched.c +++ b/app/test/test_sched.c @@ -79,8 +79,8 @@ static struct rte_sched_port_params port_param = { .mtu = 1522, .frame_overhead = RTE_SCHED_FRAME_OVERHEAD_DEFAULT, .n_subports_per_port = 1, - .n_pipes_per_subport = 4096, - .qsize = {64, 64, 64, 64}, + .n_pipes_per_subport = 1024, + .qsize = {32, 32, 32, 32}, .pipe_profiles = pipe_profile, .n_pipe_profiles = 1, }; -- 2.8.1