DPDK patches and discussions
 help / color / mirror / Atom feed
From: Edwin Leung <edwin.leung@oracle.com>
To: Iain Barker <iain.barker@oracle.com>,
	"Burakov, Anatoly" <anatoly.burakov@intel.com>,
	"Wiles, Keith" <keith.wiles@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Question about DPDK hugepage fd change
Date: Wed, 27 Feb 2019 10:02:55 -0800 (PST)	[thread overview]
Message-ID: <ce4fbebd-da47-473a-b7f2-e01c1fd08b02@default> (raw)
In-Reply-To: <eaa8311f-f5d2-417f-8a6f-a423be7aa799@default>

Hi Anatoly,

In my test for DPDK 18.11, I notice the following:

1. Using --legacy-mem switch, DPDK still opens 1 fd/huge page.  In essence, it is the same with or without this switch.

2. Using --single-file-segments does reduce the open fd to 1.  However, for each huge page that is in-use, a .lock file is opened.  As a result, it still uses up a large number of fd's.

Thanks.
--  edwin

-----Original Message-----
From: Iain Barker 
Sent: Wednesday, February 27, 2019 8:57 AM
To: Burakov, Anatoly <anatoly.burakov@intel.com>; Wiles, Keith <keith.wiles@intel.com>
Cc: dev@dpdk.org; Edwin Leung <edwin.leung@oracle.com>
Subject: RE: [dpdk-dev] Question about DPDK hugepage fd change

Original Message from: Burakov, Anatoly [mailto:anatoly.burakov@intel.com] 

>I just realized that, unless you're using --legacy-mem switch, one 
>other way to alleviate the issue would be to use --single-file-segments 
>option. This will still store the fd's, however it will only do so per 
>memseg list, not per page. So, instead of 1000's of fd's with 2MB 
>pages, you'd end up with under 10. Hope this helps!

Hi Anatoly,

Thanks for the update and suggestion. We did try using --single-file-segments previously. Although it lowers the amount of fd's allocated for tracking the segments as you noted, there is still a problem.

It seems that a .lock file is created for each huge page, not for each segment. So with 2MB pages the glibc limit of 1024 fd's is still exhausted quickly if there is ~2GB of 2MB huge pages.

Edwin can provide more details from his testing. In our case much sooner, as we already use >500 fd's for the application, just 1GB of 2MB huge pages is enough to hit the fd limit due to the .lock files.

Thanks.

  reply	other threads:[~2019-02-27 18:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-05 18:56 Iain Barker
2019-02-05 20:29 ` Wiles, Keith
2019-02-05 21:27   ` Iain Barker
2019-02-05 21:36     ` Wiles, Keith
2019-02-05 21:49       ` Iain Barker
2019-02-05 22:02         ` Wiles, Keith
2019-02-06 13:57           ` Iain Barker
2019-02-07 11:15             ` Burakov, Anatoly
2019-02-22 17:08             ` Burakov, Anatoly
2019-02-27 13:57               ` Iain Barker
2019-02-27 18:02                 ` Edwin Leung [this message]
2019-02-28 10:36                   ` Burakov, Anatoly
     [not found] <1820650896.208393.1633616003335.ref@mail.yahoo.com>
2021-10-07 14:13 ` Vijay Atreya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ce4fbebd-da47-473a-b7f2-e01c1fd08b02@default \
    --to=edwin.leung@oracle.com \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=iain.barker@oracle.com \
    --cc=keith.wiles@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).