* [dpdk-dev] [PATCH 1/2] examples/vm_power_mgr: show warning when using systems with more than 64 cores
2015-08-06 11:07 [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager Pablo de Lara
@ 2015-08-06 11:07 ` Pablo de Lara
2015-08-06 11:07 ` [dpdk-dev] [PATCH 2/2] doc: add known issue regarding VM power mgr in release notes Pablo de Lara
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Pablo de Lara @ 2015-08-06 11:07 UTC (permalink / raw)
To: dev
When using VM power manager app on systems with more than 64 cores,
app could not run even though user does not use cores 64 or higher.
The problem happens only in that case, in which case it will result
in an undefined behaviour.
Thefere, this patch allows the user to run the app on a system with more
than 64 cores, warning the user not to use cores higher than 64 in the VM(s).
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
examples/vm_power_manager/channel_manager.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/examples/vm_power_manager/channel_manager.c b/examples/vm_power_manager/channel_manager.c
index 7d892e2..35ff40a 100644
--- a/examples/vm_power_manager/channel_manager.c
+++ b/examples/vm_power_manager/channel_manager.c
@@ -764,12 +764,11 @@ channel_manager_init(const char *path)
}
global_n_host_cpus = (unsigned)n_cpus;
- if (global_n_host_cpus > CHANNEL_CMDS_MAX_CPUS) {
- RTE_LOG(ERR, CHANNEL_MANAGER, "The number of host CPUs(%u) exceeds the "
- "maximum of %u\n", global_n_host_cpus, CHANNEL_CMDS_MAX_CPUS);
- goto error;
-
- }
+ if (global_n_host_cpus > CHANNEL_CMDS_MAX_CPUS)
+ RTE_LOG(WARNING, CHANNEL_MANAGER, "The number of host CPUs(%u) exceeds the "
+ "maximum of %u. No cores over %u should be used.\n",
+ global_n_host_cpus, CHANNEL_CMDS_MAX_CPUS,
+ CHANNEL_CMDS_MAX_CPUS - 1);
return 0;
error:
--
2.4.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [dpdk-dev] [PATCH 2/2] doc: add known issue regarding VM power mgr in release notes
2015-08-06 11:07 [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager Pablo de Lara
2015-08-06 11:07 ` [dpdk-dev] [PATCH 1/2] examples/vm_power_mgr: show warning when using systems with more than 64 cores Pablo de Lara
@ 2015-08-06 11:07 ` Pablo de Lara
2015-08-07 8:03 ` [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager Liu, Yong
2015-08-07 10:06 ` Gonzalez Monroy, Sergio
3 siblings, 0 replies; 6+ messages in thread
From: Pablo de Lara @ 2015-08-06 11:07 UTC (permalink / raw)
To: dev
Add new known issue where VM power manager app may not work
in a system with more than 64 cores, in release notes.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
doc/guides/rel_notes/known_issues.rst | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/doc/guides/rel_notes/known_issues.rst b/doc/guides/rel_notes/known_issues.rst
index 7b62085..a39c714 100644
--- a/doc/guides/rel_notes/known_issues.rst
+++ b/doc/guides/rel_notes/known_issues.rst
@@ -837,3 +837,27 @@ Devices bound to igb_uio with VT-d enabled do not work on Linux* kernel 3.15-3.1
+--------------------------------+--------------------------------------------------------------------------------------+
| Driver/Module | igb_uio module |
+--------------------------------+--------------------------------------------------------------------------------------+
+
+VM power manager may not work on systems with more than 64 cores
+----------------------------------------------------------------
+
++--------------------------------+--------------------------------------------------------------------------------------+
+| Title | VM power manager may not work on systems with more than 64 cores |
+| | |
++================================+======================================================================================+
+| Description | When using VM power manager on a system with more than 64 cores, |
+| | VM(s) should not use cores 64 or higher. |
+| | |
++--------------------------------+--------------------------------------------------------------------------------------+
+| Implication | VM power manager should not be used with VM(s) that are using cores 64 or above. |
+| | |
++--------------------------------+--------------------------------------------------------------------------------------+
+| Resolution/ Workaround | Do not use cores 64 or above. |
+| | |
++--------------------------------+--------------------------------------------------------------------------------------+
+| Affected Environment/ Platform | Platforms with more than 64 cores. |
+| | |
++--------------------------------+--------------------------------------------------------------------------------------+
+| Driver/Module | VM power manager application |
+| | |
++--------------------------------+--------------------------------------------------------------------------------------+
--
2.4.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager
2015-08-06 11:07 [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager Pablo de Lara
2015-08-06 11:07 ` [dpdk-dev] [PATCH 1/2] examples/vm_power_mgr: show warning when using systems with more than 64 cores Pablo de Lara
2015-08-06 11:07 ` [dpdk-dev] [PATCH 2/2] doc: add known issue regarding VM power mgr in release notes Pablo de Lara
@ 2015-08-07 8:03 ` Liu, Yong
2015-08-07 10:06 ` Gonzalez Monroy, Sergio
3 siblings, 0 replies; 6+ messages in thread
From: Liu, Yong @ 2015-08-07 8:03 UTC (permalink / raw)
To: De Lara Guarch, Pablo, dev
Tested-by: Marvin Liu <yong.liu@intel.com>
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara
> Sent: Thursday, August 06, 2015 7:08 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores
> when using VM power manager
>
> Pablo de Lara (2):
> examples/vm_power_mgr: show warning when using systems with more than
> 64 cores
> doc: add known issue regarding VM power mgr in release notes
>
> doc/guides/rel_notes/known_issues.rst | 24 ++++++++++++++++++++++++
> examples/vm_power_manager/channel_manager.c | 11 +++++------
> 2 files changed, 29 insertions(+), 6 deletions(-)
>
> --
> 2.4.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager
2015-08-06 11:07 [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager Pablo de Lara
` (2 preceding siblings ...)
2015-08-07 8:03 ` [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager Liu, Yong
@ 2015-08-07 10:06 ` Gonzalez Monroy, Sergio
2015-08-10 21:04 ` Thomas Monjalon
3 siblings, 1 reply; 6+ messages in thread
From: Gonzalez Monroy, Sergio @ 2015-08-07 10:06 UTC (permalink / raw)
To: Pablo de Lara, dev
On 06/08/2015 12:07, Pablo de Lara wrote:
> Pablo de Lara (2):
> examples/vm_power_mgr: show warning when using systems with more than
> 64 cores
> doc: add known issue regarding VM power mgr in release notes
>
> doc/guides/rel_notes/known_issues.rst | 24 ++++++++++++++++++++++++
> examples/vm_power_manager/channel_manager.c | 11 +++++------
> 2 files changed, 29 insertions(+), 6 deletions(-)
>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] Warn user if system has more than 64 cores when using VM power manager
2015-08-07 10:06 ` Gonzalez Monroy, Sergio
@ 2015-08-10 21:04 ` Thomas Monjalon
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2015-08-10 21:04 UTC (permalink / raw)
To: Pablo de Lara; +Cc: dev
2015-08-07 11:06, Gonzalez Monroy, Sergio:
> On 06/08/2015 12:07, Pablo de Lara wrote:
> > Pablo de Lara (2):
> > examples/vm_power_mgr: show warning when using systems with more than
> > 64 cores
> > doc: add known issue regarding VM power mgr in release notes
> >
> > doc/guides/rel_notes/known_issues.rst | 24 ++++++++++++++++++++++++
> > examples/vm_power_manager/channel_manager.c | 11 +++++------
> > 2 files changed, 29 insertions(+), 6 deletions(-)
> >
> Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 6+ messages in thread