DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed
@ 2015-12-10 12:19 Bernard Iremonger
  2015-12-10 12:59 ` Yuanhan Liu
  2015-12-10 13:53 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
  0 siblings, 2 replies; 11+ messages in thread
From: Bernard Iremonger @ 2015-12-10 12:19 UTC (permalink / raw)
  To: dev

Change MAX_QUEUES to 128 to reduce the number of hugepages required
by the vhost-switch program.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 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
-- 
2.6.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-12-11  9:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-10 12:19 [dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed Bernard Iremonger
2015-12-10 12:59 ` Yuanhan Liu
2015-12-10 13:26   ` Iremonger, Bernard
2015-12-10 13:34     ` Yuanhan Liu
2015-12-10 13:53 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
2015-12-10 14:50   ` Ananyev, Konstantin
2015-12-10 15:43     ` Iremonger, Bernard
2015-12-11  9:05     ` Panu Matilainen
2015-12-10 15:49   ` [dpdk-dev] [PATCH v3] " Bernard Iremonger
2015-12-10 16:32     ` Ananyev, Konstantin
2015-12-10 21:35       ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).