[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-11-02 Thread Launchpad Bug Tracker
This bug was fixed in the package glibc - 2.27-3ubuntu1.3

---
glibc (2.27-3ubuntu1.3) bionic; urgency=medium

  [ Balint Reczey ]
  * debian/gbp.conf: Add initial configuration
  * debian/control.in/main: Add Vcs-* pointing to Ubuntu packaging repository
  * arm64: Enable searching shared libraries in atomics/ on LSE HW
  * Ship arm64 variant with LSE support in libc6-lse (LP: #1885012)
  * Run tests of libc6-lse on HW supporting LSE
  * debian/patches/git-updates.diff: update from upstream stable branch
- pthread_cond_broadcast: Fix waiters-after-spinning case
- Fix SSe2-based memmove corrupting memory (CVE-2017-18269)
- Fix strstr() performance regression on Haswell processors
- Support Japanese new era "令和 (Reiwa)"
- io: Remove copy_file_range emulation
(LP: #1851263, #1858203, #1838327, #1797335, #1756209, #1853193)
  * XFAIL stdlib/tst-getrandom (LP: #1891403)
  * debian/testsuite-xfail-debian.mk: XFAIL new tst-support_descriptors

  [ Thadeu Lima de Souza Cascardo ]
  * tests: Make preadwritev2 invalid flags tests unsupported (LP: #1770480)

  [ Andreas Hasenack ]
  * branch-pthread_rwlock_trywrlock-hang-23844.patch:
nptl: Fix pthread_rwlock_try*lock stalls (Bug 23844) (LP: #1864864)

 -- Balint Reczey   Wed, 02 Sep 2020 11:18:37 +0200

** Changed in: glibc (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

** CVE added: https://cve.mitre.org/cgi-bin/cvename.cgi?name=2017-18269

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-10-14 Thread Matthieu Clemenceau
** Tags added: fr-211

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-10-09 Thread Balint Reczey
Verified 2.27-3ubuntu1.3 on Bionic:

root@bb-glibc:~# gcc strstr.c 
root@bb-glibc:~# time ./a.out aa
matches = 300

real0m4.149s
user0m4.146s
sys 0m0.000s
root@bb-glibc:~# sed -i s/backports/proposed/ /etc/apt/sources.list
root@bb-glibc:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] 
  
Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]   
  
Get:5 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [123 
kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en 
[30.1 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted amd64 
Packages [40.9 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-proposed/restricted 
Translation-en [7508 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages 
[22.1 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en 
[11.0 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 
Packages [7244 B]
Get:12 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse 
Translation-en [2172 B]
Fetched 664 kB in 1s (852 kB/s)  
Reading package lists... Done
Building dependency tree   
Reading state information... Done
21 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@bb-glibc:~# apt install libc6 libc-bin locales
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  libc-dev-bin libc6-dev
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc-bin libc-dev-bin libc6 libc6-dev locales
5 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Need to get 9741 kB of archives.
After this operation, 13.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libc6-dev 
amd64 2.27-3ubuntu1.3 [2586 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libc-dev-bin 
amd64 2.27-3ubuntu1.3 [71.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libc6 amd64 
2.27-3ubuntu1.3 [2831 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 locales all 
2.27-3ubuntu1.3 [3613 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libc-bin 
amd64 2.27-3ubuntu1.3 [639 kB]
Fetched 9741 kB in 2s (5058 kB/s)
Preconfiguring packages ...
(Reading database ... 32938 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.27-3ubuntu1.3_amd64.deb ...
Unpacking libc6-dev:amd64 (2.27-3ubuntu1.3) over (2.27-3ubuntu1.2) ...
Preparing to unpack .../libc-dev-bin_2.27-3ubuntu1.3_amd64.deb ...
Unpacking libc-dev-bin (2.27-3ubuntu1.3) over (2.27-3ubuntu1.2) ...
Preparing to unpack .../libc6_2.27-3ubuntu1.3_amd64.deb ...
Unpacking libc6:amd64 (2.27-3ubuntu1.3) over (2.27-3ubuntu1.2) ...
Setting up libc6:amd64 (2.27-3ubuntu1.3) ...
(Reading database ... 32938 files and directories currently installed.)
Preparing to unpack .../locales_2.27-3ubuntu1.3_all.deb ...
Unpacking locales (2.27-3ubuntu1.3) over (2.27-3ubuntu1.2) ...
Preparing to unpack .../libc-bin_2.27-3ubuntu1.3_amd64.deb ...
Unpacking libc-bin (2.27-3ubuntu1.3) over (2.27-3ubuntu1.2) ...
Setting up libc-bin (2.27-3ubuntu1.3) ...
Setting up libc-dev-bin (2.27-3ubuntu1.3) ...
Setting up libc6-dev:amd64 (2.27-3ubuntu1.3) ...
Setting up locales (2.27-3ubuntu1.3) ...
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@bb-glibc:~# apt list --upgradable 
Listing... Done
cryptsetup/bionic-proposed 2:2.0.2-1ubuntu1.2 amd64 [upgradable from: 
2:2.0.2-1ubuntu1.1]
cryptsetup-bin/bionic-proposed 2:2.0.2-1ubuntu1.2 amd64 [upgradable from: 
2:2.0.2-1ubuntu1.1]
libcryptsetup12/bionic-proposed 2:2.0.2-1ubuntu1.2 amd64 [upgradable from: 
2:2.0.2-1ubuntu1.1]
libparted2/bionic-proposed 3.2-20ubuntu0.3 amd64 [upgradable from: 
3.2-20ubuntu0.2]
linux-libc-dev/bionic-proposed 4.15.0-119.120 amd64 [upgradable from: 
4.15.0-118.119]
login/bionic-proposed 1:4.5-1ubuntu2.1 amd64 [upgradable from: 1:4.5-1ubuntu2]
multiarch-support/bionic-proposed 2.27-3ubuntu1.3 amd64 [upgradable from: 
2.27-3ubuntu1.2]
openssh-client/bionic-proposed 1:7.6p1-4ubuntu0.4 amd64 [upgradable from: 
1:7.6p1-4ubuntu0.3]
openssh-server/bionic-proposed 1:7.6p1-4ubuntu0.4 amd64 [upgradable from: 
1:7.6p1-4ubuntu0.3]
openssh-sftp-server/bionic-proposed 1:7.6p1-4ubuntu0.4 amd64 [upgradable from: 
1:7.6p1-4ubuntu0.3]
parted/bionic-proposed 3.2-20ubuntu0.3 amd64 [upgradable from: 

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-09-10 Thread Steve Langasek
Hello Paul, or anyone else affected,

Accepted glibc into bionic-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/glibc/2.27-3ubuntu1.3
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
bionic to verification-done-bionic. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-bionic. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: glibc (Ubuntu Bionic)
   Status: New => Fix Committed

** Tags added: verification-needed verification-needed-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-09-09 Thread Balint Reczey
** Description changed:

- strstr() from glibc is up to 8 times slower than it was on ubuntu16.
- Looks like the sse2 optimized code is not used. To reproduce compile
- attached file (strstr.c) :
+ [Impact]
+ * Strstr() from glibc is up to 8 times slower than it was on ubuntu16. 
+ 
+ [Test Case]
+ * Compile and run the attached strstr.c test on an affected Haswell CPU. For 
the exact Haswell model see the upstream bug report, Qemu can be used to 
emulate the right model.
+ * Observe much faster execution times with the fixed glibc package.
+ 
+ [Regression Potential]
+ 
+ * The fix changes the per-model CPU feautures handling in a very
+ specific way fixing a previous change in the same area. Regressions here
+ are unlikely, but could in theory cause slowdowns, crashes and
+ miscalculations if the wrong CPU features are becoming used.
+ 
+ [Original Bug Text]
+ strstr() from glibc is up to 8 times slower than it was on ubuntu16. Looks 
like the sse2 optimized code is not used. To reproduce compile attached file 
(strstr.c) :
  
  $ gcc -o strstr strstr.c
  
  and then run on the 2 platforms :
  
  $ vagrant init ubuntu/bionic64
  $ vagrant up
  $ vagrant ssh
  Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86_64)
  
   * Documentation:  https://help.ubuntu.com
   * Management: https://landscape.canonical.com
   * Support:https://ubuntu.com/advantage
  
    System information as of Thu Oct 11 09:02:46 UTC 2018
  
    System load:  0.0  Processes: 97
    Usage of /:   9.8% of 9.63GB   Users logged in:   0
    Memory usage: 12%  IP address for enp0s3: 10.0.2.15
    Swap usage:   0%
  
   * Security certifications for Ubuntu!
     We now have FIPS, STIG, CC and a CIS Benchmark.
  
     - http://bit.ly/Security_Certification
  
   * Want to make a highly secure kiosk, smart display or touchscreen?
     Here's a step-by-step tutorial for a rainy weekend, or a startup.
  
     - https://bit.ly/secure-kiosk
  
    Get cloud support with Ubuntu Advantage Cloud Guest:
  http://www.ubuntu.com/business/services/cloud
  
  0 packages can be updated.
  0 updates are security updates.
  
  Last login: Thu Oct 11 09:02:17 2018 from 10.0.2.2
  vagrant@ubuntu-bionic:~$ cd /vagrant
  vagrant@ubuntu-bionic:/vagrant$ time ./strstr aa
  matches = 300
  
  real  0m4.877s
  user  0m4.852s
  sys   0m0.012s
  vagrant@ubuntu-bionic:/vagrant$
  
  Same machine :
  
  $ vagrant init ubuntu/xenial64
  $ vagrant up
  $ vagrant ssh
  Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-135-generic x86_64)
  
   * Documentation:  https://help.ubuntu.com
   * Management: https://landscape.canonical.com
   * Support:https://ubuntu.com/advantage
  
    Get cloud support with Ubuntu Advantage Cloud Guest:
  http://www.ubuntu.com/business/services/cloud
  
  0 packages can be updated.
  0 updates are security updates.
  
  New release '18.04.1 LTS' available.
  Run 'do-release-upgrade' to upgrade to it.
  
  Last login: Thu Oct 11 08:22:26 2018 from 10.0.2.2
  vagrant@ubuntu-xenial:~$ cd /vagrant
  vagrant@ubuntu-xenial:/vagrant$ time ./strstr aa
  matches = 300
  
  real  0m0.525s
  user  0m0.508s
  sys   0m0.000s
  vagrant@ubuntu-xenial:/vagrant$
  vagrant@ubuntu-xenial:/vagrant$ time ./strstr aa
  matches = 300
  
  real  0m0.525s
  user  0m0.508s
  sys   0m0.000s
  vagrant@ubuntu-xenial:/vagrant$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-05-22 Thread Balint Reczey
Fixed in glibc 2.29 and later, included in Ubuntu 19.04 and later.

** Changed in: glibc (Ubuntu)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2020-05-04 Thread Brian Murray
** Changed in: glibc (Ubuntu Cosmic)
   Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-12-07 Thread Adam Conrad
** Also affects: glibc (Ubuntu Cosmic)
   Importance: Undecided
   Status: New

** Also affects: glibc (Ubuntu Bionic)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-12-07 Thread Francis Ginther
** Tags added: id-5c094c3baba7ce7cee465e9c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-11-30 Thread Adam Conrad
** Changed in: glibc (Ubuntu)
   Status: Incomplete => Confirmed

** Changed in: glibc (Ubuntu)
 Assignee: (unassigned) => Adam Conrad (adconrad)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-11-30 Thread Adam Conrad
** Also affects: glibc via
   https://sourceware.org/bugzilla/show_bug.cgi?id=23709
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-11-29 Thread Paul Stephen Borile
The bug has been opened on glibc and being (or already) fixed : 
https://sourceware.org/bugzilla/show_bug.cgi?id=23709

Thanks
-Paul


** Bug watch added: Sourceware.org Bugzilla #23709
   https://sourceware.org/bugzilla/show_bug.cgi?id=23709

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-11-29 Thread Adam Conrad
On my system, I can clearly see it selecting the sse2 implementation
(there is no AVX implementation of strstr)

$ gdb ./strstr
(gdb) break strstr
Breakpoint 1 at 0x1040
(gdb) run aa
Starting program: /home/adconrad/Downloads/strstr aa

Breakpoint 1, __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch
/strstr-sse2-unaligned.S

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-11-29 Thread Steve Langasek
I notice that your cpu flags list avx2; this suggests the possibility
that the code path being used is one that's specific to avx2, not just
sse2.  I have attempted to reproduce this on CPUs both with and without
avx2 and I cannot.  I get no statistically-significant difference in
runtime, on either the avx2 system or the non-avx2 system, with glibc
from Ubuntu 16.04 vs. glibc from Ubuntu 18.04.

This could be a CPU bug or a bug in vagrant rather than in glibc;
there's currently not enough information to tell.  I think we would need
a trace that shows which implementation is being selected in glibc in
this environment first and foremost, to confirm whether it's the correct
one.

** Changed in: glibc (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-11-29 Thread Adam Conrad
I can't reproduce this here.  I'll note that I'm testing on a Broadwell
and you're on a Haswell, but I'd hope that doesn't make a huge
difference, unless H.J. Lu's latest round of CPU detection stuff has
gone amok.

model name  : Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz

(xenial-amd64)adconrad@nosferatu:~/Downloads$ /lib/x86_64-linux-gnu/libc.so.6 | 
head -n1
GNU C Library (Ubuntu GLIBC 2.23-0ubuntu10) stable release version 2.23, by 
Roland McGrath et al.
(xenial-amd64)adconrad@nosferatu:~/Downloads$ time ./strstr aa
matches = 300

real0m0.559s
user0m0.556s
sys 0m0.001s

(bionic-amd64)adconrad@nosferatu:~/Downloads$ /lib/x86_64-linux-gnu/libc.so.6 | 
head -n1
GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.
(bionic-amd64)adconrad@nosferatu:~/Downloads$ time ./strstr aa
matches = 300

real0m0.527s
user0m0.522s
sys 0m0.001s

(base)adconrad@nosferatu:~/Downloads$ /lib/x86_64-linux-gnu/libc.so.6 | head -n1
GNU C Library (Ubuntu GLIBC 2.28-0ubuntu1) stable release version 2.28.
(base)adconrad@nosferatu:~/Downloads$ time ./strstr aa
matches = 300

real0m0.528s
user0m0.525s
sys 0m0.002s

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-10-11 Thread Paul Stephen Borile
$ file strstr
strstr: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically 
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, 
BuildID[sha1]=f09b9ae65046d6650a9b7007a9aa5d6d472a2d06, not stripped

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-10-11 Thread Florian Weimer
Yes, but to be absolutely certain, the `strstr` binary you created is a
64-bit binary?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-10-11 Thread Paul Stephen Borile
I'm running on amd64, i7 cpu :

$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Model name: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
Stepping: 3
CPU MHz: 1660.927
CPU max MHz: 3500.
CPU min MHz: 800.
BogoMIPS: 4988.64
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 
xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave 
avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb 
stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep 
bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1797335] Re: strstr() on ubuntu18.04 8 times slower than on ubuntu16

2018-10-11 Thread Florian Weimer
Regarding:

$ gcc -o strstr strstr.c

Do you compile for i386 or amd64?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1797335

Title:
  strstr() on ubuntu18.04 8 times slower than on ubuntu16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1797335/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs