Performance data#
What to expect#
How large a driven model gfem has solved across MPI ranks, and on one node
with pmg_gmres, and how fast, on one cluster. These are observations from two sets of runs, each of one gfem version;
each table says which. They are not limits or promises for your model. Every
number in this summary comes from the tables below.
For gfem and another solver on the same meshes, on one node from 8 to 112 cores, see Benchmarks.
Largest model.
linear_solver="bddc_gmres"solved 108,570,046 DOF on 4 to 32 nodes. Its fastestgfem.solvewas 423 s, on 8 nodes, in the earlier version (table); 291 s on 32 nodes in the later one (table).Largest model with
direct.linear_solver="direct"solved 47,277,960 DOF on 16 nodes in 832 s (table). At 108,570,046 DOF on 32 nodes it ran out of memory (details).Which solver. Up to 14,217,194 DOF on 1 to 4 nodes,
directwas faster: 21 s against 36 s at 3,061,188 DOF on one node, 54 s against 76 s at 14,217,194 DOF on 4 nodes (table). From 23,148,138 DOF up,bddc_gmreswas faster at every node count tried: 199 s against 410 s on one node, 128 s against 161 s on 8 nodes (table). It also needed less memory: 175 GiB against 716 GiB on the largest node at 23,148,138 DOF on one node.How many nodes. In the earlier version, past a point more nodes made
bddc_gmresslower: at 108,570,046 DOF its time was lowest on 8 nodes, at 23,148,138 DOF on 4 to 8 nodes. On 16 and 32 nodes that version factored BDDC’s coarse problem on 64 ranks. In the later version, on a PETSc stack built by its build script, a single solve took 440, 323 and 291 s on 8, 16 and 32 nodes at 108,570,046 DOF, and 129, 111 and 76 s at 23,148,138 DOF (table). Each of these times is one run. On a stack built by an earlier script, the later version factors the coarse problem another way, and these times do not apply to it.Repeated solves. When one script solves the same mesh again, as a loop over designs does, gfem keeps the ordering and symbolic factorization of BDDC’s coarse problem between the solves, and GMRES starts from the previous design’s solution. In one loop of 3 designs at 108,570,046 DOF in the later version, the second and third designs took 301 and 300 s on 8 nodes, 187 s each on 16 and 153 and 152 s on 32, against 440, 323 and 291 s for the first (table). The 3 designs together took 1042, 697 and 596 s.
One node, photonic models.
linear_solver="pmg_gmres"took about 10 iterations per port on silicon guides from a few to a dozen wavelengths across, and needed about a quarter ofdirect’s memory (two thirds with a perfectly matched layer holding most of the unknowns). It was faster thandirectfrom a few million unknowns on, and solved models wheredirectneeds a large-memory node (table). These are rounded observations; the table holds the measured values.Before the solve. Reading and partitioning the mesh come before
gfem.solveand are not in its time: about 200 s at 108,570,046 DOF (table).
All of this is one machine, three gfem versions (each table says which), two families of meshes (a coplanar line across ranks, silicon guides on one node), order 2 unless a row says otherwise, and one frequency per solve. A time here is an observation, not a promise for another mesh, layout or machine: time a small run of your own model before you size a large job. Run a distributed solve shows how to run both solvers and how to choose ranks and threads.
The S of these runs were checked against one process and against the other solver: see How gfem is checked. The later version’s one-frequency S differ from the earlier version’s, on the same mesh and node count, by at most \(2.4 \times 10^{-12}\).
The machine#
MareNostrum 5 general-purpose nodes, two Intel Xeon Platinum 8480+ per node, 112
cores, run as 28 ranks of 4 threads per node. What the hardware gives apart from any
solver: MKL’s dense multiply and a STREAM triad on one node against thread count,
then a ping-pong and Allreduce between nodes.
Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
One node (gs01r3b17, Intel(R) Xeon(R) Platinum 8480+): MKL dgemm (n=4000), zgemm (n=2000) and a STREAM triad, medians.
Threads |
dgemm, GFLOP/s |
zgemm, GFLOP/s |
Triad, GB/s |
|---|---|---|---|
1 |
67 |
68 |
18 |
4 |
267 |
267 |
68 |
28 |
1849 |
1782 |
194 |
56 |
3047 |
3031 |
239 |
112 |
4645 |
5176 |
478 |
28x4, side by side |
- |
- |
489 |
Ping-pong from rank 0, 896 ranks on 32 nodes, Open MPI v4.1.6, medians.
Bytes |
Same node, us |
Same node, GB/s |
Other node, us |
Other node, GB/s |
|---|---|---|---|---|
8 |
0.9 |
0.01 |
1.8 |
0.00 |
4,096 |
9.1 |
0.45 |
3.6 |
1.13 |
1,048,576 |
142.7 |
7.35 |
41.2 |
25.43 |
16,777,216 |
1944.7 |
8.63 |
576.0 |
29.12 |
Allreduce, the slowest rank’s median.
Ranks on nodes |
1 doubles, us |
64 doubles, us |
4,096 doubles, us |
|---|---|---|---|
28 on 1 |
6.2 |
14.4 |
53.7 |
896 on 32 |
31.8 |
45.9 |
113.1 |
The meshes#
One family: a coplanar line on a TopMetal2 layer with its conductors removed from the volume (“voided”), at three refinements, and the uniform split of each, which replaces every tetrahedron by eight.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Mesh |
Tetrahedra |
DOF |
md5 |
|---|---|---|---|
r0.5_void |
430,889 |
3,061,188 |
|
B1_void |
882,600 |
6,238,560 |
|
B2_void |
2,044,386 |
14,217,194 |
|
r0.5_void_split |
3,447,112 |
23,148,138 |
|
B1_void_split |
7,060,800 |
47,277,960 |
|
B2_void_split |
16,355,088 |
108,570,046 |
|
Order 2 Nedelec DOF as the runs counted them; md5 of the mesh file.
Strong scaling, bddc_gmres, 108,570,046 DOF#
The largest run:
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
bddc_gmres on B2_void_split: 108,570,046 DOF, 32 nodes, 896 ranks of 4 threads, tol=1e-08, iterations 63/64 for ports 1/2, gfem.solve 540 s, S bit for bit the same on all ranks.
From 4 to 32 nodes. The gfem.solve median is lowest on 8 nodes and higher on 16
and 32. direct on 32 nodes is a row of its own.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Nodes |
Ranks x threads |
Solver |
Mesh |
DOF |
DOF per rank |
Owned per rank, min-max |
DOF per node |
|
Repeats |
Iterations, ports 1/2 |
|
Range, s |
Coarse apply median, s |
Efficiency against 4 nodes |
Largest node, GiB |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 |
112 x 4 |
|
B2_void_split |
108,570,046 |
969 k |
946-1008 k |
27.1 M |
1e-08 |
3 |
63/64 |
494 |
491-511 |
260 |
base |
226 |
8 |
224 x 4 |
|
B2_void_split |
108,570,046 |
485 k |
449-507 k |
13.6 M |
1e-08 |
3 |
63/64 |
423 |
416-429 |
214 |
0.58 |
143 |
16 |
448 x 4 |
|
B2_void_split |
108,570,046 |
242 k |
227-261 k |
6.8 M |
1e-08 |
3 |
63/64 |
547 |
502-631 |
230 |
0.23 |
132 |
32 |
896 x 4 |
|
B2_void_split |
108,570,046 |
121 k |
111-135 k |
3.4 M |
1e-08 |
3 |
63/64 |
540 |
525-618 |
231 |
0.11 |
117 |
32 |
896 x 4 |
|
B2_void_split |
108,570,046 |
121 k |
- |
3.4 M |
- |
1 |
- |
CANCELLED in |
- |
- |
- |
- |
gfem.solve is the slowest rank’s whole call: spaces, ports, preconditioner or factorization, and GMRES, with the instrumentation’s true residual and one extra apply and matvec inside it. The mesh read and the partition come before it. Efficiency is the median’s time at the base times its nodes, over time here times these nodes, same solver and mesh. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct. A failed run is its own row, with Slurm’s state and the phase its trace left open; its DOF are the mesh’s.
These runs are of the earlier version. On 16 and 32 nodes it factored the coarse problem on 64 ranks; for the later version see The later version: one solve and repeated solves.
Strong scaling, both solvers, 23,148,138 DOF#
From 1 to 32 nodes. Above 8 nodes a rank holds fewer than about 90 k DOF, under the
layout the recipe recommends (Choose ranks and threads); the rows are there to show it.
direct on 16 nodes ran out of its time limit, so 32 nodes was not run.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Nodes |
Ranks x threads |
Solver |
Mesh |
DOF |
DOF per rank |
Owned per rank, min-max |
DOF per node |
|
Repeats |
Iterations, ports 1/2 |
|
Range, s |
Coarse apply median, s |
Efficiency against 1 node |
Largest node, GiB |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
28 x 4 |
|
r0.5_void_split |
23,148,138 |
827 k |
845-871 k |
23.1 M |
1e-08 |
3 |
71/69 |
199 |
191-220 |
108 |
base |
175 |
2 |
56 x 4 |
|
r0.5_void_split |
23,148,138 |
413 k |
404-437 k |
11.6 M |
1e-08 |
3 |
71/69 |
146 |
144-157 |
82 |
0.68 |
122 |
4 |
112 x 4 |
|
r0.5_void_split |
23,148,138 |
207 k |
196-218 k |
5.8 M |
1e-08 |
3 |
71/69 |
127 |
126-147 |
71 |
0.39 |
72 |
8 |
224 x 4 |
|
r0.5_void_split |
23,148,138 |
103 k |
96-111 k |
2.9 M |
1e-08 |
3 |
71/69 |
128 |
120-136 |
78 |
0.19 |
47 |
16 |
448 x 4 |
|
r0.5_void_split |
23,148,138 |
52 k |
48-56 k |
1.4 M |
1e-08 |
2 |
71/69 |
312 |
301-323 |
152 |
0.04 |
63 |
16 |
448 x 4 |
|
r0.5_void_split |
23,148,138 |
52 k |
- |
1.4 M |
- |
1 |
- |
TIMEOUT in |
- |
- |
- |
- |
32 |
896 x 4 |
|
r0.5_void_split |
23,148,138 |
26 k |
23-29 k |
0.7 M |
1e-08 |
3 |
71/69 |
271 |
259-309 |
137 |
0.02 |
45 |
1 |
28 x 4 |
|
r0.5_void_split |
23,148,138 |
827 k |
845-871 k |
23.1 M |
- |
3 |
- |
410 |
359-452 |
- |
base |
716 |
2 |
56 x 4 |
|
r0.5_void_split |
23,148,138 |
413 k |
404-437 k |
11.6 M |
- |
3 |
- |
267 |
239-283 |
- |
0.77 |
462 |
4 |
112 x 4 |
|
r0.5_void_split |
23,148,138 |
207 k |
196-218 k |
5.8 M |
- |
3 |
- |
175 |
161-208 |
- |
0.59 |
314 |
8 |
224 x 4 |
|
r0.5_void_split |
23,148,138 |
103 k |
96-111 k |
2.9 M |
- |
3 |
- |
161 |
154-165 |
- |
0.32 |
237 |
16 |
448 x 4 |
|
r0.5_void_split |
23,148,138 |
52 k |
- |
1.4 M |
- |
1 |
- |
TIMEOUT in |
- |
- |
- |
- |
gfem.solve is the slowest rank’s whole call: spaces, ports, preconditioner or factorization, and GMRES, with the instrumentation’s true residual and one extra apply and matvec inside it. The mesh read and the partition come before it. Efficiency is the median’s time at the base times its nodes, over time here times these nodes, same solver and mesh. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct. A failed run is its own row, with Slurm’s state and the phase its trace left open; its DOF are the mesh’s.
These runs are of the earlier version. Its bddc_gmres rows on 16 and 32 nodes
factored the coarse problem on 64 ranks; for the later version see
The later version: one solve and repeated solves.
Weak scaling, about 3 M DOF per node#
From 1 to 32 nodes, each rung its own mesh of the family; the DOF per node column gives each rung’s size. The 4-node rung holds more than the others.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Nodes |
Ranks x threads |
Solver |
Mesh |
DOF |
DOF per rank |
Owned per rank, min-max |
DOF per node |
|
Repeats |
Iterations, ports 1/2 |
|
Range, s |
Coarse apply median, s |
Efficiency against 1 node (weak) |
Largest node, GiB |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
28 x 4 |
|
r0.5_void |
3,061,188 |
109 k |
109-117 k |
3.1 M |
1e-08 |
3 |
67/66 |
36 |
33-36 |
22 |
base |
28 |
2 |
56 x 4 |
|
B1_void |
6,238,560 |
111 k |
108-120 k |
3.1 M |
1e-08 |
3 |
66/67 |
40 |
39-42 |
21 |
0.90 |
32 |
4 |
112 x 4 |
|
B2_void |
14,217,194 |
127 k |
121-134 k |
3.6 M |
1e-08 |
3 |
61/62 |
76 |
70-88 |
32 |
0.48 |
39 |
8 |
224 x 4 |
|
r0.5_void_split |
23,148,138 |
103 k |
96-111 k |
2.9 M |
1e-08 |
3 |
71/69 |
128 |
120-136 |
78 |
0.28 |
47 |
16 |
448 x 4 |
|
B1_void_split |
47,277,960 |
106 k |
97-113 k |
3.0 M |
1e-08 |
3 |
68/68 |
342 |
333-408 |
172 |
0.11 |
77 |
32 |
896 x 4 |
|
B2_void_split |
108,570,046 |
121 k |
111-135 k |
3.4 M |
1e-08 |
3 |
63/64 |
540 |
525-618 |
231 |
0.07 |
117 |
1 |
28 x 4 |
|
r0.5_void |
3,061,188 |
109 k |
109-117 k |
3.1 M |
- |
3 |
- |
21 |
21-23 |
- |
base |
71 |
2 |
56 x 4 |
|
B1_void |
6,238,560 |
111 k |
108-120 k |
3.1 M |
- |
3 |
- |
29 |
28-29 |
- |
0.73 |
70 |
4 |
112 x 4 |
|
B2_void |
14,217,194 |
127 k |
121-134 k |
3.6 M |
- |
3 |
- |
54 |
53-55 |
- |
0.39 |
87 |
8 |
224 x 4 |
|
r0.5_void_split |
23,148,138 |
103 k |
96-111 k |
2.9 M |
- |
3 |
- |
161 |
154-165 |
- |
0.13 |
237 |
16 |
448 x 4 |
|
B1_void_split |
47,277,960 |
106 k |
97-113 k |
3.0 M |
- |
3 |
- |
832 |
796-854 |
- |
0.03 |
401 |
32 |
896 x 4 |
|
B2_void_split |
108,570,046 |
121 k |
- |
3.4 M |
- |
1 |
- |
CANCELLED in |
- |
- |
- |
- |
gfem.solve is the slowest rank’s whole call: spaces, ports, preconditioner or factorization, and GMRES, with the instrumentation’s true residual and one extra apply and matvec inside it. The mesh read and the partition come before it. Efficiency is the median’s time at the base over time here, same solver. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct. A failed run is its own row, with Slurm’s state and the phase its trace left open; its DOF are the mesh’s.
These runs are of the earlier version. Its bddc_gmres rows on 16 and 32 nodes
factored the coarse problem on 64 ranks. The later version was not run on this
ladder; its 32-node solve of the largest mesh is in The later version: one solve and repeated solves.
direct at 108,570,046 DOF#
One attempt on 32 nodes. The factorization reported too little memory, and gfem’s retry with a larger memory allowance was then stopped by the cluster for running out of memory. No S came out of it. The estimates below are what MUMPS printed before the factorization.
highmem nodes.
Mesh |
Nodes |
Ranks x threads |
Analysis |
Order n |
Factor entries, estimated |
Largest front, estimated |
Flops, estimated |
Total memory, TB (INFOG(17)) |
Largest rank, GB |
End |
|---|---|---|---|---|---|---|---|---|---|---|
B2_void_split |
32 |
896 x 4 |
1 |
108,570,046 |
2.45e+11 |
101,501 |
7.33e+15 |
22.25 |
79.6 |
CANCELLED in |
B2_void_split |
32 |
896 x 4 |
2 |
108,570,046 |
2.53e+11 |
81,750 |
7.74e+15 |
30.40 |
99.5 |
CANCELLED in |
MUMPS’s own printed estimates, in-core. A second analysis is the retry gfem makes after MUMPS reports too little memory, with a larger ICNTL(14); the step’s log gives both values.
Where the time goes#
The phases of the largest bddc_gmres rungs, and GMRES’s own share: its vector work
(the basis’s orthogonalization, norms, scaling and updates) and the time its ranks
wait in reductions.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Mesh |
Nodes |
Ranks x threads |
DOF per rank |
|
Mesh read, s |
Partition, s |
Spaces, s |
Coarse setup, s |
GMRES, s |
Coarse apply, s |
|
Coarse apply in |
Krylov vector share of GMRES |
Reduction wait, s |
Reduction wait in GMRES |
Reduction wait in |
Coarse DOF |
Coarse ranks |
Coarse factor entries |
Repeats |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B2_void_split |
4 |
112 x 4 |
969 k |
1e-08 |
116 |
84 |
88 |
111 |
291 |
260 |
494 |
53% |
11.2% |
32.5 |
11.2% |
6.6% |
30,399,588 |
56 |
8.91e+09 |
3 |
B2_void_split |
8 |
224 x 4 |
485 k |
1e-08 |
116 |
84 |
88 |
92 |
229 |
214 |
423 |
51% |
7.0% |
16.1 |
7.0% |
3.8% |
30,399,588 |
56 |
8.8e+09 |
3 |
B2_void_split |
16 |
448 x 4 |
242 k |
1e-08 |
116 |
85 |
88 |
166 |
237 |
230 |
547 |
42% |
3.5% |
8.3 |
3.5% |
1.5% |
30,399,588 |
64 |
1.09e+10 |
3 |
B2_void_split |
32 |
896 x 4 |
121 k |
1e-08 |
117 |
86 |
90 |
203 |
234 |
231 |
540 |
43% |
1.9% |
4.4 |
1.9% |
0.8% |
30,399,588 |
64 |
1.1e+10 |
3 |
B1_void_split |
16 |
448 x 4 |
106 k |
1e-08 |
47 |
35 |
37 |
125 |
176 |
172 |
342 |
50% |
2.6% |
4.5 |
2.6% |
1.3% |
13,759,148 |
64 |
7.78e+09 |
3 |
r0.5_void_split |
32 |
896 x 4 |
26 k |
1e-08 |
22 |
18 |
19 |
101 |
138 |
137 |
271 |
51% |
0.9% |
1.0 |
0.7% |
0.4% |
7,050,962 |
64 |
7.75e+09 |
3 |
r10M_void |
32 |
896 x 4 |
11 k |
1e-08 |
15 |
11 |
12 |
11 |
20 |
20 |
45 |
43% |
2.9% |
0.4 |
1.9% |
0.8% |
3,336,536 |
32 |
5.91e+08 |
1 |
Medians over the finished repeats, and shares of those medians. Phases are the slowest rank’s. GMRES holds the coarse apply; the coarse setup is its factorization. The Krylov vector share is the time in GMRES’s vector work, reductions included, over GMRES’s time, the median of the repeats’ shares; the reduction wait is the time in its Allreduce calls. Coarse factor entries are MUMPS’s printed count. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct.
These runs are of the earlier version. On 16 and 32 nodes it factored the coarse problem on 64 ranks; for the later version see The later version: one solve and repeated solves.
At 108,570,046 DOF in the earlier version, the coarse apply is 42 % to 53 % of
gfem.solve at every node count, and the coarse setup grows from 8 to 32 nodes.
At 32 nodes the reduction wait is 0.8 % of gfem.solve.
The later version: one solve and repeated solves#
These runs need the PETSc stack that the later version’s
petsc_wheelhouse.sh builds (Solve with PETSc and SLEPc): its MUMPS orders
BDDC’s coarse problem with PT-Scotch on at most 32 processes. On that stack
gfem factors the coarse problem on every fourth rank, 7 per node at 28 ranks
per node, in every set-up. Solves repeated on one mesh in one process keep the
coarse problem’s ordering and symbolic factorization. On a stack built by an
earlier script, without that limit, gfem takes another route for the coarse
problem, and the tables of this section do not describe it.
One solve at one frequency, from 8 to 32 nodes, at 108,570,046 and 23,148,138 DOF, one run per row. Efficiency is against 8 nodes, so it does not compare with the earlier tables’ column, which is against 4 nodes at 108,570,046 DOF and 1 node at 23,148,138 DOF.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Nodes |
Ranks x threads |
Solver |
Mesh |
DOF |
DOF per rank |
Owned per rank, min-max |
DOF per node |
|
Repeats |
Iterations, ports 1/2 |
|
Range, s |
Coarse ordering |
Coarse ranks |
Coarse apply median, s |
Efficiency against 8 nodes |
Largest node, GiB |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 |
224 x 4 |
|
B2_void_split |
108,570,046 |
485 k |
449-507 k |
13.6 M |
1e-08 |
1 |
63/64 |
440 |
- |
PT-Scotch |
56 |
228 |
base |
148 |
16 |
448 x 4 |
|
B2_void_split |
108,570,046 |
242 k |
227-261 k |
6.8 M |
1e-08 |
1 |
63/64 |
323 |
- |
PT-Scotch |
112 |
138 |
0.68 |
122 |
32 |
896 x 4 |
|
B2_void_split |
108,570,046 |
121 k |
111-135 k |
3.4 M |
1e-08 |
1 |
63/64 |
291 |
- |
PT-Scotch |
224 |
113 |
0.38 |
119 |
8 |
224 x 4 |
|
r0.5_void_split |
23,148,138 |
103 k |
96-111 k |
2.9 M |
1e-08 |
1 |
71/69 |
129 |
- |
PT-Scotch |
56 |
78 |
base |
48 |
16 |
448 x 4 |
|
r0.5_void_split |
23,148,138 |
52 k |
48-56 k |
1.4 M |
1e-08 |
1 |
71/69 |
111 |
- |
PT-Scotch |
112 |
64 |
0.58 |
40 |
32 |
896 x 4 |
|
r0.5_void_split |
23,148,138 |
26 k |
23-29 k |
0.7 M |
1e-08 |
1 |
71/69 |
76 |
- |
PT-Scotch |
224 |
34 |
0.42 |
35 |
gfem.solve is the slowest rank’s whole call: spaces, ports, preconditioner or factorization, and GMRES, with the instrumentation’s true residual and one extra apply and matvec inside it. The mesh read and the partition come before it. Efficiency is the median’s time at the base times its nodes, over time here times these nodes, same solver and mesh. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct. A failed run is its own row, with Slurm’s state and the phase its trace left open; its DOF are the mesh’s. The coarse ordering is MUMPS’s ordering of BDDC’s coarse problem, and the coarse ranks those it is factored on. A run of a design loop counts here by its first design, a solve at one frequency, with the memory after it.
A loop of 3 designs#
Three designs solved one after the other in one process, on the 108,570,046 DOF mesh, one run per node count. Each design changes one volume’s permittivity and keeps the mesh, and each starts GMRES from the previous design’s solution. GMRES took 63/64 iterations in every design. Design 0 is the 108,570,046 DOF row above.
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Nodes |
Design |
Coarse ordering |
Coarse ranks |
Analysis kept |
Coarse set-up, s |
Coarse analysis, s |
Coarse factorization, s |
Coarse apply per call, s |
|
Running total, s |
Reduction wait in |
Iterations, ports 1/2 |
Largest node after this design, GiB |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 |
0 |
PT-Scotch |
56 |
no |
98 |
44 |
49 |
1.78 |
440 |
440 |
3.7% |
63/64 |
148 |
8 |
1 |
PT-Scotch |
56 |
yes |
53 |
- |
50 |
1.78 |
301 |
741 |
5.4% |
63/64 |
148 |
8 |
2 |
PT-Scotch |
56 |
yes |
53 |
- |
50 |
1.77 |
300 |
1042 |
5.4% |
63/64 |
148 |
16 |
0 |
PT-Scotch |
112 |
no |
77 |
41 |
33 |
1.08 |
323 |
323 |
2.6% |
63/64 |
122 |
16 |
1 |
PT-Scotch |
112 |
yes |
36 |
- |
33 |
1.08 |
187 |
510 |
4.4% |
63/64 |
123 |
16 |
2 |
PT-Scotch |
112 |
yes |
36 |
- |
34 |
1.08 |
187 |
697 |
4.4% |
63/64 |
124 |
32 |
0 |
PT-Scotch |
224 |
no |
71 |
41 |
29 |
0.88 |
291 |
291 |
1.5% |
63/64 |
119 |
32 |
1 |
PT-Scotch |
224 |
yes |
30 |
- |
28 |
0.89 |
153 |
443 |
2.8% |
63/64 |
121 |
32 |
2 |
PT-Scotch |
224 |
yes |
30 |
- |
28 |
0.88 |
152 |
596 |
2.8% |
63/64 |
121 |
A design loop solves 3 designs in one process, on one mesh, one gfem.solve at one frequency each: design \(i\) scales the permittivity of the highest-permittivity volume by \(1 + 10^{-3} i\), so the designs’ S differ by design. Design 0 is the first solve. An analysis kept is the coarse problem’s ordering and symbolic factorization from an earlier design, which then only refactors; its analysis and factorization are MUMPS’s printed times. The coarse apply per call is the slowest rank’s time over the calls. The running total adds the designs’ gfem.solve; the mesh read comes before design 0. The largest node’s memory is its peak so far. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct.
Designs 1 and 2 keep design 0’s coarse analysis and only refactor: the coarse set-up goes from 98, 77 and 71 s in design 0 to 53, 36 and 30 s on 8, 16 and 32 nodes. The coarse apply per call is the same in every design of a run.
The phases of the one-frequency runs, as in Where the time goes:
MareNostrum 5 GPP, Intel(R) Xeon(R) Platinum 8480+; highmem nodes.
Mesh |
Nodes |
Ranks x threads |
DOF per rank |
|
Mesh read, s |
Partition, s |
Spaces, s |
Coarse setup, s |
GMRES, s |
Coarse apply, s |
|
Coarse apply in |
Krylov vector share of GMRES |
Reduction wait, s |
Reduction wait in GMRES |
Reduction wait in |
Coarse DOF |
Coarse ranks |
Coarse factor entries |
Repeats |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B2_void_split |
8 |
224 x 4 |
485 k |
1e-08 |
116 |
85 |
89 |
98 |
243 |
228 |
440 |
52% |
6.7% |
16.2 |
6.7% |
3.7% |
30,399,588 |
56 |
8.89e+09 |
1 |
B2_void_split |
16 |
448 x 4 |
242 k |
1e-08 |
117 |
86 |
89 |
77 |
146 |
138 |
323 |
43% |
5.7% |
8.3 |
5.7% |
2.6% |
30,399,588 |
112 |
8.74e+09 |
1 |
B2_void_split |
32 |
896 x 4 |
121 k |
1e-08 |
118 |
87 |
91 |
71 |
117 |
113 |
291 |
39% |
3.7% |
4.3 |
3.7% |
1.5% |
30,399,588 |
224 |
9e+09 |
1 |
r0.5_void_split |
8 |
224 x 4 |
103 k |
1e-08 |
22 |
17 |
18 |
25 |
82 |
78 |
129 |
61% |
4.8% |
3.9 |
4.8% |
3.1% |
7,050,962 |
56 |
2.65e+09 |
1 |
r0.5_void_split |
16 |
448 x 4 |
52 k |
1e-08 |
22 |
17 |
18 |
24 |
66 |
64 |
111 |
57% |
2.9% |
1.9 |
2.8% |
1.7% |
7,050,962 |
112 |
2.76e+09 |
1 |
r0.5_void_split |
32 |
896 x 4 |
26 k |
1e-08 |
22 |
18 |
19 |
18 |
36 |
34 |
76 |
45% |
3.3% |
1.0 |
2.7% |
1.3% |
7,050,962 |
224 |
2.59e+09 |
1 |
Medians over the finished repeats, and shares of those medians. Phases are the slowest rank’s. GMRES holds the coarse apply; the coarse setup is its factorization. The Krylov vector share is the time in GMRES’s vector work, reductions included, over GMRES’s time, the median of the repeats’ shares; the reduction wait is the time in its Allreduce calls. Coarse factor entries are MUMPS’s printed count. tol is SolverOptions.tolerance, GMRES’s relative preconditioned residual; it does not apply to direct.
Ranks and threads, 10,248,856 DOF#
These are separate runs, not part of the tables above: one run per layout of a prototype script on the 10,248,856 DOF coplanar line, on the same machine with an earlier gfem version. The advice in Choose ranks and threads rests on them.
Nodes |
Solver |
Ranks x threads per node |
Time, s |
|---|---|---|---|
4 |
|
28 x 4 |
54 |
4 |
|
16 x 7 |
61 |
4 |
|
8 x 14 |
79 |
4 |
|
28 x 4 |
57 |
4 |
|
16 x 7 |
54 |
1 |
|
8 x 14 |
118 |
1 |
|
28 x 4 |
145 |
At 28 x 4 on 4 nodes a rank holds about 92 k DOF. S did not depend on the layout.
The one-node rows come from an earlier gfem and a prototype script, and time the
whole run. A later measurement on one node, with the benchmark suite and gfem
771da66, timed the work after startup and found 28 x 4 fastest for
bddc_gmres: 60.5 s against 154 s for one process of 112 threads
(r10M_void).
Layouts were compared up to 4 nodes and 10,248,856 DOF; past that the advice is an
extrapolation.
One node, pmg_gmres#
Silicon strip guides in silicon oxide at 1.55 µm, several cladding wavelengths
across, and a half model of a guide between perfectly matched layers, solved on
one MareNostrum 5 general-purpose node in one process with
linear_solver="pmg_gmres" and with "direct", at order 2 (one row at
order 3). Each row gives the model, its unknowns, its size in wavelengths, the
GMRES iterations per excited port, and the time and peak memory of each
solver. The commit and the run records are on the table’s first line.
MareNostrum 5 general-purpose partition, Intel(R) Xeon(R) Platinum 8480+.
Model |
Unknowns |
Wavelengths |
Order |
Solver |
Threads |
Direct set |
Iterations per port |
Solver, s |
Solver, GiB |
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
Strip, straight |
2,935,646 |
8 |
2 |
|
56 |
18.8 % |
10 |
64 |
18.3 |
161 |
72.1 |
Strip, straight |
2,935,646 |
8 |
2 |
|
8 |
18.8 % |
10 |
87 |
16.0 |
161 |
72.1 |
Strip, straight |
2,935,646 |
8 |
2 |
|
56 |
- |
222-224 |
430 |
23.7 |
161 |
72.1 |
Strip, straight |
6,566,738 |
12 |
2 |
|
112 |
18.8 % |
11 |
135 |
42.0 |
407 |
179.7 |
Strip between PMLs, half model |
2,110,480 |
4 |
2 |
|
56 |
72.2 % |
9 |
185 |
40.7 |
207 |
61.1 |
Bend, \(h = 0.05\) µm |
17,211,038 |
8 |
2 |
|
112 |
18.7 % |
8 |
298 |
115.1 |
- |
- |
Strip, straight (order 3) |
2,158,413 |
4 |
3 |
|
56 |
6.5 % |
9 |
75 |
23.9 |
- |
- |
Each run is one process and one gfem.solve at one frequency, both ports excited, tolerance=1e-6. A time is the whole call, from the model to S (assembly, port modes and the solver’s setup included); memory is the process’s peak resident set during it. Wavelengths is the box width in silica wavelengths; the direct set is the share of the unknowns pmg_gmres solves exactly, from its INFO record. The direct columns repeat the model’s one direct run, made at the thread count of its first row.
Bend, \(h = 0.05\) µm: direct not run, its factorization, at about 48 KiB per unknown, needs about 788 GiB, more than the node holds; it was checked against direct’s outgoing waves from a run on a large-memory node.
Strip, straight (order 3): direct not run, this row measures pmg_gmres’s memory at order 3: its peak, less the process’s memory once the model was built, is 11.5 KiB per unknown.
How these were measured#
gfem: the earlier version is the development version of 5 November 2026, between the preview and 0.1.0, with Open MPI 4.1.6, PETSc 3.26.0 and NGSolve 6.2.2608. The later version is the development version of 21 November 2026, with the same Open MPI, PETSc and NGSolve, on a PETSc stack built by that version’s
petsc_wheelhouse.sh, whose MUMPS caps PT-Scotch’s parallel ordering at 32 processes.Machine: MareNostrum 5 general-purpose partition,
highmemnodes, 28 ranks of 4 threads per node.Runs: order 2, one frequency of 50 GHz unless a row says otherwise, both ports excited.
bddc_gmresran at thegfem.SolverOptionstolerancein each row’stolcolumn; gfem’s own default is1e-6.directis PETSc’s MUMPS with PT-Scotch ordering. The repeats of a row ran back to back on the same nodes, so a row’s range is run-to-run noise, not placement.Design loop: design \(i\), from 0, scales the permittivity of the highest-permittivity volume by \(1 + 10^{-3} i\) and is one
gfem.solveat one frequency, all in one process on one mesh.
The scaling record (Zenodo, DOI pending) holds both sets, each with the commit it
names: the run records, logs, job scripts, meshes and the tools/ scripts at that
commit. scale_env.sh makes the
environment, scale_steps.py writes each job’s steps, scale_job.sbatch runs one job
per rung per solver and scale_run.py makes each run and its record. scale_bench.py
is the machine benchmark. The voided meshes are in the record, by md5; split_mesh.py
makes the splits. scale_mesh.py rebuilds a voided mesh’s source with gsim==0.7.0,
ihp-gdsfactory==0.2.8 and gmsh==4.15.2 only: a current gsim writes a different
conductivity, so S would move for a reason unrelated to the mesh. scale_void.py then
removes the conductors.
The tables are not computed when these docs build. To redo them from the record, with
COMMIT the commit the record names:
python tools/scale_tables.py RECORDS docs/project/_scaling --commit COMMIT \
--logs LOGS --mesh-md5 meshes/md5.txt --mesh-md5 meshes/splits.md5
python tools/scale_tables.py RECORDS2 docs/project/_scaling --set coarse \
--commit COMMIT2 --logs LOGS2
RECORDS, LOGS and COMMIT are the earlier version’s; RECORDS2, LOGS2 and
COMMIT2 the later one’s.