[dpdk-dev] [PATCH] mem: fix division by zero in no-NUMA mode

Thomas Monjalon thomas at monjalon.net
Mon Nov 26 15:37:18 CET 2018


26/11/2018 12:14, Hunt, David:
> Hi Anatoly,
> 
> On 26/11/2018 10:57 AM, Anatoly Burakov wrote:
> > When RTE_EAL_NUMA_AWARE_HUGEPAGES is set to "n", not all memtypes
> > will be valid, because we skip some due to not supporting other
> > NUMA nodes, leading to a division by zero error down the line
> > because the necessary memtype fields weren't populated.
> >
> > Fix it by limiting number of memtypes to number of memtypes we
> > have actually created.
> >
> > Fixes: 1dd342d0fdc4 ("mem: improve segment list preallocation")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> 
> Fixes the issue on my machine. vm_power_manager crashes with floating point
> exception without patch, starts successfully with patch.
> 
> Tested-by: David Hunt <david.hunt at intel.com>

Applied (in last minute), thanks





More information about the dev mailing list