From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH] examples/vhost: reduce number of hugepages needed Date: Thu, 10 Dec 2015 20:59:11 +0800 Message-ID: <20151210125911.GV29571@yliu-dev.sh.intel.com> References: <1449749971-5422-1-git-send-email-bernard.iremonger@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Bernard Iremonger Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CD049567E for ; Thu, 10 Dec 2015 13:58:00 +0100 (CET) Content-Disposition: inline In-Reply-To: <1449749971-5422-1-git-send-email-bernard.iremonger@intel.com> 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" On Thu, Dec 10, 2015 at 12:19:31PM +0000, Bernard Iremonger wrote: > Change MAX_QUEUES to 128 to reduce the number of hugepages required > by the vhost-switch program. > > Signed-off-by: Bernard Iremonger > --- > 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 */ Minor nit: I would suggest to simply remove this comment, which might be a bit confusing without the content (that 512 would let vhost-switch fail to start if given memory is small). Otherwise, this patch looks good to me. Acked-by: Yuanhan Liu Thanks. --yliu > +#define MAX_QUEUES 128 > > /* the maximum number of external ports supported */ > #define MAX_SUP_PORTS 1 > -- > 2.6.3