From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernard Iremonger Subject: [PATCH v2] examples/vhost: reduce number of hugepages needed Date: Thu, 10 Dec 2015 13:53:21 +0000 Message-ID: <1449755601-25670-1-git-send-email-bernard.iremonger@intel.com> References: <1449749971-5422-1-git-send-email-bernard.iremonger@intel.com> To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 574958E58 for ; Thu, 10 Dec 2015 14:53:28 +0100 (CET) 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" Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages required by the vhost-switch program. Changes in v2: remove comment added before #define MAX_QUEUES in v1 patch. Signed-off-by: Bernard Iremonger Acked-by: Yuanhan Liu --- examples/vhost/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index b30f1bd..5ce5926 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,7 @@ #include "main.h" -#define MAX_QUEUES 512 +#define MAX_QUEUES 128 /* the maximum number of external ports supported */ #define MAX_SUP_PORTS 1 -- 2.6.3