Return-Path: Received: from bastet.se.axis.com (bastet.se.axis.com [195.60.68.11]) by mail.openembedded.org (Postfix) with ESMTP id 93B9974FC3 for ; Sat, 9 Jun 2018 10:50:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 7BDD818779 for ; Sat, 9 Jun 2018 12:50:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id oXHYq1lAeEsi for ; Sat, 9 Jun 2018 12:50:02 +0200 (CEST) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 4080D1877A for ; Sat, 9 Jun 2018 12:50:02 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 203C21E06A for ; Sat, 9 Jun 2018 12:50:02 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 144931E068 for ; Sat, 9 Jun 2018 12:50:02 +0200 (CEST) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP for ; Sat, 9 Jun 2018 12:50:02 +0200 (CEST) Received: from saur-2.se.axis.com (saur-2.se.axis.com [10.92.3.2]) by seth.se.axis.com (Postfix) with ESMTP id 085532C42 for ; Sat, 9 Jun 2018 12:50:02 +0200 (CEST) Received: from saur-2.se.axis.com (localhost [127.0.0.1]) by saur-2.se.axis.com (8.14.5/8.14.5) with ESMTP id w59AnqDu017545 for ; Sat, 9 Jun 2018 12:49:52 +0200 Received: (from pkj@localhost) by saur-2.se.axis.com (8.14.5/8.14.5/Submit) id w59AnqXl017544 for openembedded-core@lists.openembedded.org; Sat, 9 Jun 2018 12:49:52 +0200 From: Peter Kjellerstedt To: openembedded-core@lists.openembedded.org Date: Sat, 9 Jun 2018 12:49:49 +0200 Message-Id: <20180609104950.17497-2-pkj@axis.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180609104950.17497-1-pkj@axis.com> References: <20180609104950.17497-1-pkj@axis.com> X-TM-AS-GCONF: 00 Subject: [sumo][PATCH 2/3] Revert "rpm: add a patch to help with Docker performance issues" X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2018 10:50:04 -0000 This reverts commit 6f1822e5f1eaafd8bc46e999de730c1fcca77f3a. This patch only solved a part of the problem. Signed-off-by: Peter Kjellerstedt --- ...FD_CLOEXEC-on-opened-files-before-exec-fr.patch | 49 ---------------------- meta/recipes-devtools/rpm/rpm_4.14.1.bb | 1 - 2 files changed, 50 deletions(-) delete mode 100644 meta/recipes-devtools/rpm/files/0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch diff --git a/meta/recipes-devtools/rpm/files/0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch b/meta/recipes-devtools/rpm/files/0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch deleted file mode 100644 index 4651409a65..0000000000 --- a/meta/recipes-devtools/rpm/files/0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 982e47df7b82c5ffe3c414cf5641f08dba0f0e64 Mon Sep 17 00:00:00 2001 -From: Alexander Kanavin -Date: Fri, 26 Jan 2018 16:32:04 +0200 -Subject: [PATCH] Revert "Set FD_CLOEXEC on opened files before exec from lua - script is called" - -This reverts commit 7a7c31f551ff167f8718aea6d5048f6288d60205. -The reason is that when _SC_OPEN_MAX is much higher than the usual 1024 -(for example inside docker), the performance drops sharply. - -Upstream has been notified: -https://bugzilla.redhat.com/show_bug.cgi?id=1537564 - -Upstream-Status: Inappropriate [upstream needs to come up with a better fix] -Signed-off-by: Alexander Kanavin ---- - luaext/lposix.c | 12 ------------ - 1 file changed, 12 deletions(-) - -diff --git a/luaext/lposix.c b/luaext/lposix.c -index 0a7c26c71..c578c5a11 100644 ---- a/luaext/lposix.c -+++ b/luaext/lposix.c -@@ -335,22 +335,10 @@ static int Pexec(lua_State *L) /** exec(path,[args]) */ - const char *path = luaL_checkstring(L, 1); - int i,n=lua_gettop(L); - char **argv; -- int flag, fdno, open_max; - - if (!have_forked) - return luaL_error(L, "exec not permitted in this context"); - -- open_max = sysconf(_SC_OPEN_MAX); -- if (open_max == -1) { -- open_max = 1024; -- } -- for (fdno = 3; fdno < open_max; fdno++) { -- flag = fcntl(fdno, F_GETFD); -- if (flag == -1 || (flag & FD_CLOEXEC)) -- continue; -- fcntl(fdno, F_SETFD, FD_CLOEXEC); -- } -- - argv = malloc((n+1)*sizeof(char*)); - if (argv==NULL) return luaL_error(L,"not enough memory"); - argv[0] = (char*)path; --- -2.15.1 - diff --git a/meta/recipes-devtools/rpm/rpm_4.14.1.bb b/meta/recipes-devtools/rpm/rpm_4.14.1.bb index 818d3ef9e3..85d791ce5c 100644 --- a/meta/recipes-devtools/rpm/rpm_4.14.1.bb +++ b/meta/recipes-devtools/rpm/rpm_4.14.1.bb @@ -39,7 +39,6 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.14.x \ file://0003-rpmstrpool.c-make-operations-over-string-pools-threa.patch \ file://0004-build-pack.c-remove-static-local-variables-from-buil.patch \ file://0001-perl-disable-auto-reqs.patch \ - file://0001-Revert-Set-FD_CLOEXEC-on-opened-files-before-exec-fr.patch \ file://0001-configure.ac-add-option-for-dbus.patch \ " -- 2.12.0