From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web10.64203.1629337441160268818 for ; Wed, 18 Aug 2021 18:44:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=Eh1UtHam; spf=pass (domain: nuviainc.com, ip: 209.85.216.43, mailfrom: rebecca@nuviainc.com) Received: by mail-pj1-f43.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso3659941pjy.5 for ; Wed, 18 Aug 2021 18:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=7TBCoxZchIQMYVLwjLqKyULrPWaRplu9O31Ckb/JbG4=; b=Eh1UtHamji6ZjWpv0tpKvkg8D4zM2poxH51ajs9btpiZrtlqoieKF8Zvw/H+C6wALs gPXLcubJ5oBebSpRC4gBFy3dNI95URkaX5WiAWlP0CFD2daEyuf3XGmNQmFF2kqitLTh p2uXg29vg1FSKK+uTUEqXcihHyBgOGfnkOQrDQsl+SBH0tKv0tGS8EdfkFC4W3GKwQ4r d2g8y5qptvePxVKquxwZXfYh5QtgJqutCpAp5rARECAeQfeBXaQXXWZUXDUbIViM1qrv 413yCHRYSaznQOh1Ah4GvYrR+8r1KuPxrGSvwpGNcF+85N3pabErqiKih5UNXf4cQRDH rsJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=7TBCoxZchIQMYVLwjLqKyULrPWaRplu9O31Ckb/JbG4=; b=GV97rQzwJOe+dOOEUf6zqXex0FAkilS/PtVRWYOOYmViYJLXLwtyiXm9I2TctlBVn9 xkPhR5q9MWQRN05uNiqYfbgtqL+mefUVDdwFieVv9P5NaFWfwvPP8OJ36ddpmtU7lsDB D0UL1iYA58M3xhWizRmUBzT8PEbd4z10FMqMibag+6Yx1og+CaGwkWlcZXYCPILlvnsr ZRINFY7wYRLkD4U6Jpk5SdMca8Uzlck3YaDJRv9yVTIlpYvlcv2/ySRUvtgjlpqqV8ot mo9P5XtTg3iT0jZ1ZmelH5DnEYxr7tvNINxSWY+WRGmzBQXeAQR7s2OBwT53W5NMUXue HEzA== X-Gm-Message-State: AOAM530DGNaOKNV8ALrylB0XLPKd2AvNOX4bLMgXBrPjZoYBCD/e+Jri zzga9kgOxN3bcY+e2mqOv3Bdjg== X-Google-Smtp-Source: ABdhPJwL95zJTtl+0dioKvDrZERl/IAxVHr+1I+qzHAh2OzdbbbDImfG4hJpuJelGyicCrHJST1voQ== X-Received: by 2002:a17:90a:de0b:: with SMTP id m11mr12552299pjv.39.1629337440760; Wed, 18 Aug 2021 18:44:00 -0700 (PDT) Return-Path: Received: from linbox.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id h5sm1069734pfv.131.2021.08.18.18.43.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Aug 2021 18:44:00 -0700 (PDT) Subject: Re: [edk2-libc Patch] StdLib/Include/sys/syslimits.h: Increase OPEN_MAX from 20 to 255 To: Michael D Kinney , devel@edk2.groups.io Cc: Jayaprakash Nevara , Daryl McDaniel , Jaben Carsey References: <20210813163335.11-1-michael.d.kinney@intel.com> From: "Rebecca Cran" Message-ID: <92fc85ef-4195-2c7a-39b2-66e4db631f1a@nuviainc.com> Date: Wed, 18 Aug 2021 19:43:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210813163335.11-1-michael.d.kinney@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Reviewed-by: Rebecca Cran On 8/13/21 10:33 AM, Michael D Kinney wrote: > From: Jayaprakash Nevara > > 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 > Cc: Jaben Carsey > Cc: Michael D Kinney > Cc: Rebecca Cran > Signed-off-by: Jayaprakash Nevara > --- > 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.