From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 6C9F98D88 for ; Thu, 10 Dec 2015 17:32:22 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 10 Dec 2015 08:32:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,409,1444719600"; d="scan'208";a="870988251" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by fmsmga002.fm.intel.com with ESMTP; 10 Dec 2015 08:32:07 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.203]) by IRSMSX107.ger.corp.intel.com ([169.254.10.124]) with mapi id 14.03.0248.002; Thu, 10 Dec 2015 16:32:06 +0000 From: "Ananyev, Konstantin" To: "Iremonger, Bernard" , "dev@dpdk.org" Thread-Topic: [PATCH v3] examples/vhost: reduce number of hugepages needed Thread-Index: AQHRM2JdxxWoJyR40E+l529lcvlU0J7EaavQ Date: Thu, 10 Dec 2015 16:32:06 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725836AD2700@irsmsx105.ger.corp.intel.com> References: <1449755601-25670-1-git-send-email-bernard.iremonger@intel.com> <1449762557-28782-1-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1449762557-28782-1-git-send-email-bernard.iremonger@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] 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: , X-List-Received-Date: Thu, 10 Dec 2015 16:32:22 -0000 > -----Original Message----- > From: Iremonger, Bernard > Sent: Thursday, December 10, 2015 3:49 PM > To: dev@dpdk.org > Cc: Xie, Huawei; yuanhan.liu@linux.intel.com; Ananyev, Konstantin; Iremon= ger, Bernard > Subject: [PATCH v3] examples/vhost: reduce number of hugepages needed >=20 > Add #ifndef MAX_QUEUES to change MAX_QUEUES at compile time if needed. > Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages > required by the vhost-switch program. >=20 > To change MAX_QUEUES add '-D MAX_QUEUES=3D512' to the EXTRA_CFLAGS variab= le, > before building the application. >=20 > Changes in v3: > Added #ifndef MAX_QUEUES line before #define MAX_QUEUES 128 >=20 > Changes in v2: > remove comment added before #define MAX_QUEUES in v1 patch. >=20 > Signed-off-by: Bernard Iremonger > --- > examples/vhost/main.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/examples/vhost/main.c b/examples/vhost/main.c > index b30f1bd..2dcdacb 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,9 @@ >=20 > #include "main.h" >=20 > -#define MAX_QUEUES 512 > +#ifndef MAX_QUEUES > +#define MAX_QUEUES 128 > +#endif >=20 > /* the maximum number of external ports supported */ > #define MAX_SUP_PORTS 1 > -- Acked-by: Konstantin Ananyev > 2.6.3