[petsc-users] Scalability
SCOTTO Alexandre
alexandre.scotto at irt-saintexupery.com
Fri Feb 13 01:14:47 CST 2026
Dear Matthew, Barry,
Thank you for your answers. The question of the problem size was part of my concern regarding the relevance of the quick test setup, I am going to increase the size in the suggested way to see the difference.
Regarding the sparsity pattern, I assume that the more “diagonal” the matrix is the better the speedup, is this is a correct rule of thumb?
Best regards,
Alexandre.
De : Barry Smith <bsmith at petsc.dev>
Envoyé : jeudi 12 février 2026 17:10
À : Matthew Knepley <knepley at gmail.com>
Cc : SCOTTO Alexandre <alexandre.scotto at irt-saintexupery.com>; petsc-users at mcs.anl.gov
Objet : Re: [petsc-users] Scalability
The problem size is also very small. Typically one cannot get speedup when the number of variables per MPI rank is below on the order of 10,000. In your 64 process case you only have 390 variables. I would be stunned with any kind of speedup for such sizes. Run a problem at least 10 times bigger, better yet 20 times.
On Feb 12, 2026, at 9:00 AM, Matthew Knepley <knepley at gmail.com<mailto:knepley at gmail.com>> wrote:
On Thu, Feb 12, 2026 at 6:48 AM SCOTTO Alexandre via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
Dear PETSc community,
I have conducted a quick strong scalability-like test on direct and adjoint matrix-vector product with a 25,000 x 25,000 sparse matrix, distributed over 2, 4, …, 32 and 64 processes and the results I obtained were not so great.
I am not very confident in my setup, so a as a matter of reference, is there any available results on weak and strong scalability of PETSc.Mat mult() and multTranspose() operations?
1. This behavior depends on available bandwidth, not on cores. Do you know the bandwidth for your configurations?
2. Strong scaling depends heavily on matrix sparsity. If inevitably declines, but slower with more work to do.
3. We published a paper on performance recently: https://urldefense.us/v3/__https://www.sciencedirect.com/science/article/abs/pii/S016781912100079X__;!!G_uCfscf7eWS!eV_IiuO3vH2ZpW_dBJVlJMaQrV4cgKIZY9zbKqT1jv_KxjWYt5QxPk9CZ6YQsDkA3nBdSIOKvGAf0E55rPv1G1x0j_G4MnIEMljD3zuFSA$ <https://urldefense.us/v3/__https:/www.sciencedirect.com/science/article/abs/pii/S016781912100079X__;!!G_uCfscf7eWS!Zr5jUpk1srGDF2h9mXmw_GIn1OFZ2g3APzC0JHZREcxRzzy-2Oz2yyBWtzSI6F21kV4W_ubmc7A0NIIoVXnb$>
Thanks,
Matt
Best regards,
Alexandre.
--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eV_IiuO3vH2ZpW_dBJVlJMaQrV4cgKIZY9zbKqT1jv_KxjWYt5QxPk9CZ6YQsDkA3nBdSIOKvGAf0E55rPv1G1x0j_G4MnIEMlgIc0eMgg$ <https://urldefense.us/v3/__http:/www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!Zr5jUpk1srGDF2h9mXmw_GIn1OFZ2g3APzC0JHZREcxRzzy-2Oz2yyBWtzSI6F21kV4W_ubmc7A0NEclfLI_$>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260213/c0c2cb3e/attachment.html>
More information about the petsc-users
mailing list