From nobody Fri May 3 20:41:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+79283+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79283+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1628872432; cv=none; d=zohomail.com; s=zohoarc; b=RzFwBC5JdRbnOmuMa+y9F62Sg0T097Fd0nJYFe5w+v/rAIPWrhZSVBpoaMMAk3slZl7d1Ni5LBun5+nVVbvhLPWACbU8KDK2/VwNjhREQ9+TtaE5CAU/+Il9qi57BqYdK3Tly+XBTnrNVbTbU6NoCcC+/se3iUTWFwJ6ppK7A70= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628872432; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=JZgAUQh3xHca60jor2RnX3s8JhVab0P8a/joNEpbXlk=; b=TB8Emgb17QZvvrhfy69INITopK2cnvkywwD129EkV6snwHENSlchhmp2hB9JHuxPMHCpHZLjdoGzVxpXv0KnvjoGBF8nttWC6qoG5N1A8ii7MRfn0jh5dH65rlL1cPMS1MuAzX2CSfG1c/hEM8sfx1vTxdbmLfC6RMJgJmbauLs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79283+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1628872432119700.4817328471838; Fri, 13 Aug 2021 09:33:52 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id hKl9YY1788612xB86iNFBw6z; Fri, 13 Aug 2021 09:33:50 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.39092.1628872428758252060 for ; Fri, 13 Aug 2021 09:33:49 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10075"; a="215581626" X-IronPort-AV: E=Sophos;i="5.84,319,1620716400"; d="scan'208";a="215581626" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2021 09:33:47 -0700 X-IronPort-AV: E=Sophos;i="5.84,319,1620716400"; d="scan'208";a="422267909" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.171.152]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2021 09:33:47 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Jayaprakash Nevara , Daryl McDaniel , Jaben Carsey , Rebecca Cran Subject: [edk2-devel] [edk2-libc Patch] StdLib/Include/sys/syslimits.h: Increase OPEN_MAX from 20 to 255 Date: Fri, 13 Aug 2021 09:33:35 -0700 Message-Id: <20210813163335.11-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com X-Gm-Message-State: EeOPdt8CkfEn1gpbEsDkuBykx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628872430; bh=kDObRSLgjAovuIvOZxTYwRRbg4WgYYrkpWg7I1aBCow=; h=Cc:Date:From:Reply-To:Subject:To; b=jZg+xA9NhB0+0HCXjsSGtg9S3eJBs7v8/Dz2B8U08OCxY4mFAnIluTe2WG+flOfj2Rc 5+EfXg2Ps8aoX4Ac8YYJ/z9gEEbcSGXC9YIior/TIw+BoS1vg68W5fs1/+Z5NyA1AMcRT LhvMLplsHohBUM/P64/LV8pfWO221aweu/I= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628872433123100001 Content-Type: text/plain; charset="utf-8" From: Jayaprakash Nevara REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3548 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 Reviewed-by: Rebecca Cran --- 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. --=20 2.32.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79283): https://edk2.groups.io/g/devel/message/79283 Mute This Topic: https://groups.io/mt/84867510/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-