Bill Allombert on Mon, 26 Jun 2023 20:23:35 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gp-2.15.3 compiled on Ubuntu on AMD 7600X very slow compared to i7 (many page faults), Win11 gp-2.15.3 on 7600X better than i7. How to fix AMD Ubuntu?
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: gp-2.15.3 compiled on Ubuntu on AMD 7600X very slow compared to i7 (many page faults), Win11 gp-2.15.3 on 7600X better than i7. How to fix AMD Ubuntu?
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 26 Jun 2023 20:18:54 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1687803524; c=relaxed/relaxed; bh=qRyvEpge8zoEc+ZpiaBpZFatFWi8Tqn9lAUOrJ0i/tc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=yreRtElK+RtKvqnInWMDrC7dAjN0yqF2JoKP7E3aI5MtCch/Y6e3No5bJ/xvoWOsbrgcHuBdWW28R18cu1YpZJWEVQL4B16q2r2yo7IqTyJT6D0KBDvWI7osQtduAzyEuEn1HkcTjF9tIBq1AKylLSkeV1h7cB43m8F53zt47qj6dF6N0TwkRWIId7TbU8yu6tNJ4hMXf2uUL05JMlOIU0IM+usBE6ICh0X1K5zCr/elU2m7uFdJj0knju/DyXAu+6sH6YADdZFQBUPf9B08WNyhp0v09eSk/H3TDSRmquq7yL7rYzHKjwW6jOB7nrTISJyTbxRd4xs69TLqInBKRDjWMnsxZkNIewmoQIuP8+Bz28udZDuztfcUFMTI+VRM7ivreipqvTReKaAHN39/jaZqVJcRwO9f1oiz5Khj6rly+bzAGVLe2r/sW+iASAldEhsDjr6BP5j/z1FqLB21kiREDchZQFPrt2h7G5Z3iJM/NOkqJKtMAIIfl1tKP5EmgN7y4HYaOPCR6xhxyiA+TukpuvYDr0g6VIql4o5H0Dq3UH/rYmDKoIlprCiRs9yaCUrVjnfbziE28KL0y4CAut5+SGyMMx+BD2PkaKCeO6Q9KK2/bFR9bQ1MC5FmA8JcuZz6GEm4TXmNyELBZl9AbAxp34fVAhvWqqjYCa980Dc=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1687803524; cv=none; b=UYROxxPiLCnkaSNNXXNJnU27vQJxiGYc1jvvtyp+P7RUpD1jZaJNYNzrpcEfix8HTDRF24co9IL5hiGKJwckJPZmE8sBCb49WidutmkvyM1GlAOpAqRGSIyBChNTdpfpKFs+PWZEinDpPTCW8uzGTvP/UL827WpjuN9vcT+zOz3z3zVML5p/Mhhb5tKKO9kwF8DLpOCc0ihiG0IWMB8wJj2k07WecHEMKTYdUi8QdebBxrHrbYCy/+yvnb/PNLulkdiqIoTyH22zgqvpej0ODfWOLfuNiBbFvfobdUa//SLRiWASaDY4hGnREm8b+JujB4tohcryOLwOkFLawPwn3AH7zTEW9acTfUuSU3iph4Ef1Z32f6RchyZ2AGGeAiaI0l+/c/5iE00hU8M5I9ZyNQCJwuBrajUmNjlyVMc35Tal38pbzYd2oBE+C1SDOJ6tCp41Zvap64XiYamOdH4Mueqnjn/IEN3RftkbVEMLp8P4LDcY/gDLD5xx2WXNadCfwetgfsZcEhhKjfreIQ3DBVhS6SSNYgZwY6+q0bbSH7Z3w6bIjWD78BQrNO8/y38qavi5TTp5hCYeIg8KY2ZGWhloB8CVjsdRXtjjFHhcV6i4zRAUPA4HOK35bUADUbcC96qaI9dSLUFKyZI7VnlxjjooqQ19BheLlgU6SMaAl18=
- Authentication-results: smail; arc=none
- Delivery-date: Mon, 26 Jun 2023 20:23:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1687803523; bh=qRyvEpge8zoEc+ZpiaBpZFatFWi8Tqn9lAUOrJ0i/tc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=OIZXBKIdTGSGg0dCY4IDSUdpwY1F7nmTLHBEzelMx9//lmONQ0MpMlVCeHpak63YN iA6nkG47yKJ8j8II9O6Yn5PuvEiG1db9Xe/93j8RCFb4/tUCUvcvyUWy3McABKEbWu 3/AVIIl6cImcgPOTjQD/RqzuPKBwWOF224n8lamZLmBpDpGjlC9UaWeK7nSL/7Wzpo xtQB2D9pJaxmMdaIe/HgrM+6lloPrS9k7tpoebgN2T+WWx7Brv8Um+7W0zFYu7nWiC BIOrBSLiMSzzttjjmtl9o5ETuPF0hCgc503S2l7q7//V+UX1jU+QM/eJpYl+XmBb0t RcIMb/GFxLU8nS+9Y2plj0jFf/QF6zos8y7Bbm/NnbcBzP15iP00Mopom4pPkAeJ4I d034nB59KlDfykb6U+/NIVY9FlmdXis8qXZym7xTe/xRjb8Dg5jMtwM8GG0hQQYsgB 4AjNo5A7r2CfZmwPKJGSwBMqDf85ZMsVak7trBM34Dw1W3MmY9mRB2o7mJ0WiRBDSL mvDnoGFMXZw8eg5HZbN/r3gP+I6nLty8C4upo/2XjYgHc2agl3HlORmTeFrhjZqzaV PLluZhJyusbXIIw3m0f8JCWNmgtTLRAloRe0Zbl3aCHwpC/7QCaZd5J6C8AyzJW10U 2V91HyXL7PPEQuBDU+u/xxUs=
- In-reply-to: <751d40ac2cfd1c5271d3a738803a9a5f@stamm-wilbrandt.de>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <751d40ac2cfd1c5271d3a738803a9a5f@stamm-wilbrandt.de>
On Mon, Jun 26, 2023 at 08:01:12PM +0200, hermann@stamm-wilbrandt.de wrote:
> I bought new not-too-expensive big single thread performance PC with AMD
> Ryzen 7600X CPU for factoring big numbers / number theory:
> https://github.com/Hermann-SW/7600X#7600x
>
> I used C++ with libgmpx executables to determine "sqrt(-1) (mod p)" for
> 10,000-/36,401-/100,355-digit primes.
> 7600X runtimes measured were 10%+ better for 7600X compared to i7-11850H,
> matching PassMark single thread numbers (no PBO yet, Performance Boost
> Optimization):
> https://github.com/Hermann-SW/7600X#c-with-libgmpxx
>
> Win11 was preinstalled, so I installed Ubuntu 22.04 server on other disk in
> parallel, allowing same hardware+bios comparisons.
> While 7600X Win11 gp-1.25.3 is a bit faster with GP scripts (determining
> same numbers as with C++) than i7, 7600X Ubuntu numbers are much worse than
> i7-11850H numbers:
> https://github.com/Hermann-SW/7600X#parigp
>
> I compiled gp-2.15.3 sources on i7 and 7600X the same, following
> instructions in INSTALL.
> Reason for the bad 7600X Ubunto runtimes seems to be the many page faults
> seen with "perf stat".
Do you have the same version of GNU MP on both systems ?
Did you compile PARI with pthread support ?
If you want to speed up PARI, build with
CFLAGS='-march=native -flto=auto' ./Configure
make bench
and use
Olinux-x86_64/gp-sta
Using --mt=pthread will slow PARI down a little.
Cheers,
Bill