From patchwork Thu Dec 10 12:19:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Iremonger, Bernard" X-Patchwork-Id: 9461 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id D8FF38E79; Thu, 10 Dec 2015 13:19:56 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 40F218E5A for ; Thu, 10 Dec 2015 13:19:55 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 10 Dec 2015 04:19:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,407,1444719600"; d="scan'208";a="704599725" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 10 Dec 2015 04:19:35 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id tBACJXQr003283; Thu, 10 Dec 2015 12:19:33 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id tBACJXZ1005628; Thu, 10 Dec 2015 12:19:33 GMT Received: (from bairemon@localhost) by sivswdev01.ir.intel.com with id tBACJXmW005622; Thu, 10 Dec 2015 12:19:33 GMT From: Bernard Iremonger To: dev@dpdk.org Date: Thu, 10 Dec 2015 12:19:31 +0000 Message-Id: <1449749971-5422-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Change MAX_QUEUES to 128 to reduce the number of hugepages required by the vhost-switch program. Signed-off-by: Bernard Iremonger Acked-by: Yuanhan Liu --- examples/vhost/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index b30f1bd..8fb0adb 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1,7 +1,7 @@ /*- * BSD LICENSE * - * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. + * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -53,7 +53,8 @@ #include "main.h" -#define MAX_QUEUES 512 +/* decrease MAX_QUEUES from 512 to reduce number of hugepages needed */ +#define MAX_QUEUES 128 /* the maximum number of external ports supported */ #define MAX_SUP_PORTS 1