[dpdk-dev] Problem with running the load balancer example application

Bruce Richardson bruce.richardson at intel.com
Sat Dec 20 10:32:45 CET 2014


On Fri, Dec 19, 2014 at 12:14:27PM -0600, Haowei Yuan wrote:
> Hi Bruce,
> 
> Thank you very much for the information. I guess I will just use hugepages then.
> 
> At the beginning, the reason for using the --no-huge flag was that
> somehow hugepages used by the app was not released (I don't remember
> what the exact situation was, it might be that the program failed
> somewhere because something was not properly configured), and with 2K
> hugepages, after running the app several times, there was no hugepage
> left. So I just wanted to try the --no-huge flag as it seemed to be
> easy, and I guess there are probably ways to release those hugepages.
> Then the warning messages showed up after the --no-huge flag was
> added.
> 

At the end of the application run, the hugepages are released by the application
as the rest of the memory it uses is, ie. automatically on process termination.
However, the hugepage files used to map that memory are not automatically deleted.
Despite this, the memory is still available for reuse by a subsequent DPDK run - which
will automatically delete the old files on startup - or by another app - in which
case you may need to manually delete the files.

> At the moment, the app works fine with hugepages.
> 

Ok, good to know.

/Bruce

> Thanks,
> Haowei
> 
> 
> On Fri, Dec 19, 2014 at 4:14 AM, Bruce Richardson
> <bruce.richardson at intel.com> wrote:
> > On Fri, Dec 19, 2014 at 01:43:26AM -0600, Haowei Yuan wrote:
> >> Hi folks,
> >>
> >> I am new to DPDK and have been trying to run the load balancer example
> >> application on a machine with two NUMA nodes. Somehow the program
> >> cannot be launched correctly if I add the "--no-huge" option to the
> >> command. I am wondering if someone had seen similar problems, or maybe
> >> I did something wrong.
> >>
> >
> > Hi,
> >
> > Can I ask why you want to run the app with the -no-huge flag. That flag is
> > primarily for testing only, and is not designed for use in a real-world
> > environment.
> >
> > /Bruce
> >


More information about the dev mailing list