Activity log for bug #1797335

Date Who What changed Old value New value Message
2018-10-11 09:09:00 Paul Stephen Borile bug added bug
2018-10-11 09:09:00 Paul Stephen Borile attachment added strstr.c https://bugs.launchpad.net/bugs/1797335/+attachment/5199882/+files/strstr.c
2018-10-11 09:09:29 Paul Stephen Borile description 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 = 3000000 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 = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$ vagrant@ubuntu-xenial:/vagrant$ time ./strstr aa matches = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$ 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 = 3000000 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 = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$ vagrant@ubuntu-xenial:/vagrant$ time ./strstr aa matches = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$
2018-11-29 22:50:45 Steve Langasek glibc (Ubuntu): status New Incomplete
2018-11-30 00:34:12 Paul Stephen Borile bug watch added https://sourceware.org/bugzilla/show_bug.cgi?id=23709
2018-11-30 19:38:31 Adam Conrad bug task added glibc
2018-11-30 19:58:04 Adam Conrad glibc (Ubuntu): status Incomplete Confirmed
2018-11-30 19:58:07 Adam Conrad glibc (Ubuntu): assignee Adam Conrad (adconrad)
2018-12-07 13:33:52 Francis Ginther tags bionic64 sse2 strstr bionic64 id-5c094c3baba7ce7cee465e9c sse2 strstr
2018-12-07 20:55:07 Adam Conrad nominated for series Ubuntu Cosmic
2018-12-07 20:55:07 Adam Conrad bug task added glibc (Ubuntu Cosmic)
2018-12-07 20:55:07 Adam Conrad nominated for series Ubuntu Bionic
2018-12-07 20:55:07 Adam Conrad bug task added glibc (Ubuntu Bionic)
2020-05-04 19:01:50 Brian Murray glibc (Ubuntu Cosmic): status New Won't Fix
2020-05-22 22:53:48 Balint Reczey glibc (Ubuntu): status Confirmed Fix Released
2020-09-09 21:10:36 Balint Reczey description 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 = 3000000 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 = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$ vagrant@ubuntu-xenial:/vagrant$ time ./strstr aa matches = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$ [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 = 3000000 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 = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$ vagrant@ubuntu-xenial:/vagrant$ time ./strstr aa matches = 3000000 real 0m0.525s user 0m0.508s sys 0m0.000s vagrant@ubuntu-xenial:/vagrant$
2020-09-10 23:04:01 Steve Langasek glibc (Ubuntu Bionic): status New Fix Committed
2020-09-10 23:04:03 Steve Langasek bug added subscriber Ubuntu Stable Release Updates Team
2020-09-10 23:04:06 Steve Langasek bug added subscriber SRU Verification
2020-09-10 23:04:09 Steve Langasek tags bionic64 id-5c094c3baba7ce7cee465e9c sse2 strstr bionic64 id-5c094c3baba7ce7cee465e9c sse2 strstr verification-needed verification-needed-bionic
2020-10-09 18:10:51 Balint Reczey tags bionic64 id-5c094c3baba7ce7cee465e9c sse2 strstr verification-needed verification-needed-bionic bionic64 id-5c094c3baba7ce7cee465e9c sse2 strstr verification-done verification-done-bionic
2020-10-14 15:47:58 Matthieu Clemenceau tags bionic64 id-5c094c3baba7ce7cee465e9c sse2 strstr verification-done verification-done-bionic bionic64 fr-211 id-5c094c3baba7ce7cee465e9c sse2 strstr verification-done verification-done-bionic
2020-11-02 18:30:36 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2020-11-02 18:40:35 Launchpad Janitor glibc (Ubuntu Bionic): status Fix Committed Fix Released
2020-11-02 18:40:35 Launchpad Janitor cve linked 2017-18269