From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AFFD3874C04; Tue, 23 Feb 2021 02:26:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AFFD3874C04 From: "cd_songkun at hotmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/19924] TLS performance degradation after dlopen Date: Tue, 23 Feb 2021 02:26:40 +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: attachments.created 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: Tue, 23 Feb 2021 02:26:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D19924 --- Comment #11 from ksong --- Created attachment 13253 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13253&action=3Ded= it tls performace Test step: I clone newest version for glibc and compile it. export glibc_install=3D"$(pwd)/glibc/build/install" git clone git://sourceware.org/git/glibc.git cd glibc mkdir build cd build ../configure --prefix "$glibc_install" make Download test case and compile it. Generate tls_mini. $LANG=3DC /home/ksong/work/package/glibc/build/elf/ld-linux-x86-64.so.2 --library-path /home/ksong/work/test/tls:/home/ksong/work/package/glibc/build:/home/ksong/= work/package/glibc/build/math:/home/ksong/work/package/glibc/build/elf:/hom= e/ksong/work/package/glibc/build/dlfcn:/home/ksong/work/package/glibc/build= /nss:/home/ksong/work/package/glibc/build/nis:/home/ksong/work/package/glib= c/build/rt:/home/ksong/work/package/glibc/build/resolv:/home/ksong/work/pac= kage/glibc/build/crypt:/home/ksong/work/package/glibc/build/mathvec:/home/k= song/work/package/glibc/build/nptl:/lib64 --list ./tls_mini linux-vdso.so.1 (0x00007ffdf37ce000) libtls_access.so =3D> /home/ksong/work/test/tls/libtls_access.so (0x00007f0d812ff000) libdl.so.2 =3D> /home/ksong/work/package/glibc/build/dlfcn/libdl.so.2 (0x00007f0d810fb000) libc.so.6 =3D> /home/ksong/work/package/glibc/build/libc.so.6 (0x00007f0d80d3b000) /lib64/ld-linux-x86-64.so.2 =3D> /home/ksong/work/package/glibc/build/elf/ld-linux-x86-64.so.2 (0x00007f0d81704000) Exec tls_mini. $LANG=3DC /home/ksong/work/package/glibc/build/elf/ld-linux-x86-64.so.2 --library-path /home/ksong/work/test/tls:/home/ksong/work/package/glibc/build:/home/ksong/= work/package/glibc/build/math:/home/ksong/work/package/glibc/build/elf:/hom= e/ksong/work/package/glibc/build/dlfcn:/home/ksong/work/package/glibc/build= /nss:/home/ksong/work/package/glibc/build/nis:/home/ksong/work/package/glib= c/build/rt:/home/ksong/work/package/glibc/build/resolv:/home/ksong/work/pac= kage/glibc/build/crypt:/home/ksong/work/package/glibc/build/mathvec:/home/k= song/work/package/glibc/build/nptl:/lib64 ./tls_mini time: 0.510322 time: 1.468314 time: 0.501844 after "git am --reject 0001-Fix-TLS-performance-degradation-after-dlopen.pa= tch" and recompile glibc. Exec tls_mini $LANG=3DC /home/ksong/work/package/glibc/build/elf/ld-linux-x86-64.so.2 --library-path /home/ksong/work/test/tls:/home/ksong/work/package/glibc/build:/home/ksong/= work/package/glibc/build/math:/home/ksong/work/package/glibc/build/elf:/hom= e/ksong/work/package/glibc/build/dlfcn:/home/ksong/work/package/glibc/build= /nss:/home/ksong/work/package/glibc/build/nis:/home/ksong/work/package/glib= c/build/rt:/home/ksong/work/package/glibc/build/resolv:/home/ksong/work/pac= kage/glibc/build/crypt:/home/ksong/work/package/glibc/build/mathvec:/home/k= song/work/package/glibc/build/nptl:/lib64 ./tls_mini time: 0.585535 time: 0.555755 time: 0.554991 We can see a big change in the performance of dlopen. --=20 You are receiving this mail because: You are on the CC list for the bug.=