4 Replies Latest reply on Jul 10, 2018 10:37 AM by hardcoregames™

    Very poor Python performance on EPYC 7601

    absmith1

      Hello,

      I am benchmarking and AMD EPYC 7601 vs Intel 6148. Both systems are identical re: O/S:

       

      Red Hat Enterprise Linux Server release 7.5 (Maipo)

      gcc (GCC) 7.2.0

       

      Python 3.6.5 been built from source using both these methods:

       

      ./configure --prefix=/home/andrew.york/Python-3.6.5-EPYC-bin --enable-optimizations

      CFLAGS='-O3 -march=znver1' ./configure --prefix=/home/andrew/Python-3.6.5-EPYC-bin --enable-optimizations

       

      The second method gives slightly slower results. But the the standard Python benchmarks comparing AMD and Intel performance shows that Python is not being built for the correct architecture:

       

      +-------------------------+----------------+------------------------------+

      | Benchmark               | AMD 7601 | Intel 6148                |

      +=========================+================+==============================+

      | 2to3                    | 681 ms         | 397 ms: 1.72x faster (-42%)  |

      +-------------------------+----------------+------------------------------+

      | chameleon               | 23.7 ms        | 12.0 ms: 1.98x faster (-49%) |

      +-------------------------+----------------+------------------------------+

      | chaos                   | 262 ms         | 138 ms: 1.90x faster (-47%)  |

      +-------------------------+----------------+------------------------------+

      | crypto_pyaes            | 222 ms         | 127 ms: 1.74x faster (-43%)  |

      +-------------------------+----------------+------------------------------+

      | deltablue               | 17.2 ms        | 9.72 ms: 1.77x faster (-44%) |

      +-------------------------+----------------+------------------------------+

      | django_template         | 320 ms         | 159 ms: 2.01x faster (-50%)  |

      +-------------------------+----------------+------------------------------+

      | fannkuch                | 1.00 sec       | 575 ms: 1.74x faster (-43%)  |

      +-------------------------+----------------+------------------------------+

      | float                   | 243 ms         | 138 ms: 1.77x faster (-43%)  |

      +-------------------------+----------------+------------------------------+

      | genshi_text             | 76.8 ms        | 36.3 ms: 2.12x faster (-53%) |

      +-------------------------+----------------+------------------------------+

       

       

      Can any one shed some light on what may be going on?

       

      Many thanks,

       

      Andrew