[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2016-02-14 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : -- resolution: fixed -> status: closed -> open ___ Python tracker <http://bugs.python.org/issue24915> ___ ___ Python-bugs-

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-02-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've added a fix for the PGO builds after the issue pointed out by you. Can you please test it also? -- ___ Python tracker <http://bugs.python.org/is

[issue26359] CPython build options for out-of-the box performance

2016-02-14 Thread Alecsandru Patrascu
New submission from Alecsandru Patrascu: Hello, This is Alecsandru from the Dynamic Scripting Languages Optimization Team at Intel Corporation. I would like to submit a patch as a response to the discussion thread opened in Python-Dev (https://mail.python.org/pipermail/python-dev/2016

[issue26359] CPython build options for out-of-the box performance

2016-02-14 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file41919/cpython3_pgo_default-v02.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-02-14 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : -- nosy: +alecsandru.patrascu ___ Python tracker <http://bugs.python.org/issue26249> ___ ___ Python-bugs-list mailing list Unsub

[issue26382] List object memory allocator

2016-02-19 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : -- nosy: +alecsandru.patrascu ___ Python tracker <http://bugs.python.org/issue26382> ___ ___ Python-bugs-list mailing list Unsub

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-02-21 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've added the patch here also. -- keywords: +patch Added file: http://bugs.python.org/file41999/pgofix-cpython2.patch ___ Python tracker <http://bugs.python.org/is

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-02-21 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file42000/pgofix-cpython3.patch ___ Python tracker <http://bugs.python.org/issue26307> ___ ___ Pytho

[issue26359] CPython build options for out-of-the box performance

2016-02-27 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : -- nosy: +brett.cannon, gregory.p.smith, lemburg, pitrou, r.david.murray, scoder, skrah, steve.dower, zach.ware ___ Python tracker <http://bugs.python.org/issue26

[issue26285] Garbage collection of unused input sections from CPython binaries

2016-02-27 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : -- nosy: +gregory.p.smith, lemburg, scoder, steve.dower, zach.ware ___ Python tracker <http://bugs.python.org/issue26285> ___ ___

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-03 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Yes, you can use LTO without PGO, but the proposed ways it's more efficient and makes more sense for CPython builds. -- ___ Python tracker <http://bugs.python.org/is

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-03 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I understand now your question. LTO is not enabled when running just `make`, only in `make profile-opt` -- ___ Python tracker <http://bugs.python.org/issue25

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-03 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: >From our experience, pybench only is not a representative benchmark. Instead, >if you like to measure performance close to real workloads, you can run the >Grand Unified Python Benchmark suite, that is more complete. Also, you need to

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-04 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: You are doing measurements on a virtual machine... For sure you are not the only user that has active workloads on the physical machine while you do benchmarks :) On the other hand, the path you are going with just LTO is nice for experiments, but for

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Hello Victor, Indeed, the best outcome is to have PGO, LTO, etc enabled by default when running ./configure && make, for production level. I also feel that they should be on by default, if only developers would use the debug version. Do you th

[issue26359] CPython build options for out-of-the box performance

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Maybe that end users are lazy and want to type just `make` and let things happen magically behind the scenes :-) -- ___ Python tracker <http://bugs.python.org/issue26

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: @Stefan and @Marc, you say that people don't want to wait for PGO to build when running ./configure && make, but why? Even though many developers use it, this mode is not intended for development, it is production level and should be run onc

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-04-14 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Maybe an workflow like the one proposed in issue #26359 can be helpful in these development phases. -- ___ Python tracker <http://bugs.python.org/issue25

[issue26359] CPython build options for out-of-the box performance

2016-04-15 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: That sounds like a good idea and plan, to have everything enabled with just one dedicated configure flag. I can work on this and post the patches as soon as they are done. Thank you -- ___ Python tracker

[issue26787] test_distutils fails when configured --with-lto

2016-04-17 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I will investigate this and submit a fix. At a first glance, it seems the test is failing because it does not have the knowledge of the LTO flags. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2016-04-17 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I will investigate this issue to understand what is happening there and submit a fix. Thank you for pointing out the exact OS and toolchain used. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26787] test_distutils fails when configured --with-lto

2016-04-18 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Hello, You can find a patch for this issue attached. Basically, since LTO needs LD flags when used, I modified the makefile template file and the test to push the flags up to the sysconfig module. -- keywords: +patch Added file: http

[issue26787] test_distutils fails when configured --with-lto

2016-04-18 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: This patch is for CPython 3, and if it looks good I will post also the CPython 2 version. -- ___ Python tracker <http://bugs.python.org/issue26

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2016-04-23 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I uploaded a patch that skips these tests if optimizations are available. -- keywords: +patch Added file: http://bugs.python.org/file42574/issue26788.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26359] CPython build options for out-of-the box performance

2016-04-23 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've added the --with-optimizations option to configure, for CPython3 only at this point. If it looks good I'll create a version also for CPython2. -- Added file: http://bugs.python.org/file42576/cpython3_with_optimizations

[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file42871/cpython2_with_optimizations_v01.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file42872/cpython3_with_optimizations_v02.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've attached a cleaner version for CPython 3 and one for CPython 2. The problem with CPython 2 is that Gregory did not yet merged the LTO on this branch (#25702), but as soon as he does it, I'll post updated patches. Regards,

[issue26359] CPython build options for out-of-the box performance

2016-05-16 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Brett, I tried to add you in the "assigned to", but I do not have any rights to update those :( -- ___ Python tracker <http://bugs.python.o

<    1   2