From: "Rebecca Cran" <rebecca@nuviainc.com>
To: Michael D Kinney <michael.d.kinney@intel.com>, devel@edk2.groups.io
Cc: Jayaprakash Nevara <n.jayaprakash@intel.com>,
Daryl McDaniel <edk2-lists@mc2research.org>,
Jaben Carsey <jaben.carsey@intel.com>
Subject: Re: [edk2-libc Patch] StdLib/Include/sys/syslimits.h: Increase OPEN_MAX from 20 to 255
Date: Wed, 18 Aug 2021 19:43:58 -0600 [thread overview]
Message-ID: <92fc85ef-4195-2c7a-39b2-66e4db631f1a@nuviainc.com> (raw)
In-Reply-To: <20210813163335.11-1-michael.d.kinney@intel.com>
Reviewed-by: Rebecca Cran <rebecca@nuviainc.com>
On 8/13/21 10:33 AM, Michael D Kinney wrote:
> From: Jayaprakash Nevara <n.jayaprakash@intel.com>
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3548
>
> A port of Python 3.6.8 interpreter for UEFI uses the
> standard C Library from the edk2-libc project. The python
> interpreter fails with the following error when the
> python interpreter is launched:
>
> "IOError: [Errno 24] Too many open files"
>
> Python 3.6.8 interpreter opens and loads many python modules
> (files) when it is boot strapped and this is leading to the
> too many open files error.
>
> To fix the issue the OPEN_MAX limit value is increased from
> 20 to 255.
>
> Cc: Daryl McDaniel <edk2-lists@mc2research.org>
> Cc: Jaben Carsey <jaben.carsey@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Rebecca Cran <rebecca@nuviainc.com>
> Signed-off-by: Jayaprakash Nevara <n.jayaprakash@intel.com>
> ---
> StdLib/Include/sys/syslimits.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/StdLib/Include/sys/syslimits.h b/StdLib/Include/sys/syslimits.h
> index 9515e8f..70ec619 100644
> --- a/StdLib/Include/sys/syslimits.h
> +++ b/StdLib/Include/sys/syslimits.h
> @@ -53,7 +53,7 @@
> #define MAX_OUTPUT 255 ///< Maximum bytes in terminal output.
> #define NAME_MAX 255 ///< Maximum bytes in a file name.
> #ifndef OPEN_MAX
> - #define OPEN_MAX 20 ///< Maximum open files per process.
> + #define OPEN_MAX 255 ///< Maximum open files per process.
> #endif
> #define PATH_MAX 1024 ///< Maximum bytes in pathname.
> #define PIPE_BUF 512 ///< Maximum bytes for atomic pipe writes.
prev parent reply other threads:[~2021-08-19 1:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-13 16:33 [edk2-libc Patch] StdLib/Include/sys/syslimits.h: Increase OPEN_MAX from 20 to 255 Michael D Kinney
2021-08-19 1:43 ` Rebecca Cran [this message]
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-list 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=92fc85ef-4195-2c7a-39b2-66e4db631f1a@nuviainc.com \
--to=devel@edk2.groups.io \
/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