From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2134E388702F; Thu, 25 Feb 2021 09:54:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2134E388702F From: "cd_songkun at hotmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/19924] TLS performance degradation after dlopen Date: Thu, 25 Feb 2021 09:54:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.23 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cd_songkun at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 09:54:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D19924 --- Comment #16 from ksong --- Refer http://patches-tcwg.linaro.org/patch/49142/ I also try backport these patch. [01/15] aarch64: free tlsdesc data on dlclose [BZ #27403] [02/15] elf: Fix data race in _dl_name_match_p [BZ #21349] [03/15] Add test case for [BZ #19329] [04/15] Add a DTV setup test [BZ #27136] [05/15] elf: Fix a DTV setup issue [BZ #27136] [06/15] elf: Fix comments and logic in _dl_add_to_slotinfo [07/15] elf: Refactor _dl_update_slotinfo to avoid use after free [08/15] elf: Fix data races in pthread_create and TLS access [BZ #19329] [09/15] elf: Use relaxed atomics for racy accesses [BZ #19329] [10/15] elf: Fix DTV gap reuse logic [BZ #27135]=20 and try to rebuild glibc, but for our testcase tls_mini, Performance has not improved. For below patch,=20 [11/15] x86_64: Avoid lazy relocation of tlsdesc [BZ #27137] [12/15] i386: Avoid lazy relocation of tlsdesc [BZ #27137] [13/15] x86_64: Remove lazy tlsdesc relocation related code [14/15] i386: Remove lazy tlsdesc relocation related code [15/15] elf: Remove lazy tlsdesc relocation related code=20 I backported them,but compile failed. In file included from dynamic-link.h:92:0, from dl-load.c:60: ../sysdeps/x86_64/dl-machine.h: In function =E2=80=98elf_machine_runtime_se= tup=E2=80=99: ../sysdeps/x86_64/dl-machine.h:132:23: error: =E2=80=98_dl_tlsdesc_resolve_= rela=E2=80=99 undeclared (first use in this function); did you mean =E2=80=98_dl_tlsdesc_= return=E2=80=99? =3D (ElfW(Addr)) &_dl_tlsdesc_resolve_rela; ^~~~~~~~~~~~~~~~~~~~~~~~ _dl_tlsdesc_return ../sysdeps/x86_64/dl-machine.h:132:23: note: each undeclared identifier is reported only once for each function it appears in --=20 You are receiving this mail because: You are on the CC list for the bug.=