[Bug 1638695] Re: Python 2.7.12 performance regression
Jorge Niedbalski
1638695 at bugs.launchpad.net
Thu Nov 17 13:08:55 UTC 2016
Hello,
I am in the process of verifying this performance regression on a 16.04
Xenial machine using the kernel Linux-4.4.0-38.
I ran a locally compiled python 2.7.12 version built with different
versions of GCC, 5.3.1 (current) and 4.8.0 both coming from the Ubuntu
archives.
The benchmark suite I am using is the pyperformance suite
(https://github.com/python/performance), I am running the full test
suite, using the following command:
$ pyperformance run --python=python2 -o xxx.json
According to the latest test run i did using Python 2.7.12/GCC 4.8
(using GCC 5.3.1 as the baseline), 50% of the tests (32/64) have a
significant variance in performance from which 19/32 are slower (in
times ranging from 5-15%).
Just for information, I am comparing results using the following
command:
$ pyperformance compare python-2.7.12-gcc-5.3.1.json
python-2.7.12-gcc-4.8.0.json
I am attaching here the current comparison results for analysis.
** Attachment added: "comparison-gcc-5.3.1-gcc-4.8.json"
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1638695/+attachment/4778622/+files/comparison-gcc-5.3.1-gcc-4.8.json
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1638695
Title:
Python 2.7.12 performance regression
Status in python2.7 package in Ubuntu:
Confirmed
Bug description:
I work on the OpenStack-Ansible project and we've noticed that testing
jobs on 16.04 take quite a bit longer to complete than on 14.04. They
complete within an hour on 14.04 but they normally take 90 minutes or
more on 16.04. We use the same version of Ansible with both versions
of Ubuntu.
After more digging, I tested python performance (using the
'performance' module) on 14.04 (2.7.6) and on 16.04 (2.7.12). There
is a significant performance difference between each version of
python. That is detailed in a spreadsheet[0].
I began using perf to dig into the differences when running the python
performance module and when using Ansible playbooks. CPU migrations
(as measured by perf) are doubled in Ubuntu 16.04 when running the
same python workloads.
I tried changing some of the kerne.sched sysctl configurables but they
had very little effect on the results.
I compiled python 2.7.12 from source on 14.04 and found the
performance to be unchanged there. I'm not entirely sure where the
problem might be now.
We also have a bug open in OpenStack-Ansible[1] that provides
additional detail. Thanks in advance for any help you can provide!
[0] https://docs.google.com/spreadsheets/d/18MmptS_DAd1YP3OhHWQqLYVA9spC3xLt4PS3STI6tds/edit?usp=sharing
[1] https://bugs.launchpad.net/openstack-ansible/+bug/1637494
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1638695/+subscriptions
More information about the foundations-bugs
mailing list