You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
custom_mg: an unsplit placed-ribbon coarse tail exhausts node memory before the first iteration #893
Reported by kaiju through the science hub (2026-10-29); not yet reproduced elsewhere.
What happens
custom_mg.set_custom_fmg on a hierarchy whose coarse tail is unsplit placed-ribbon ladder levels (place_fault_ribbon_2d(split=False)) exhausts node memory: 170-377 GB at np 16 on a 127k-cell annulus. The growth comes after the solver's "Setup solver" stage and before the first iteration.
Split ladder levels and an unplaced coarse tail are fine on the same model.
What it is not
The case reproduces with each of these taken out, so none of them is the cause:
the TI model;
the FAC patch smoother: the band off, and FAC disabled;
a plain viscoplastic host instead of the campaign rheology;
all but one placed coarse level (it reproduces with only one).
That leaves the hierarchy or transfer build between unsplit placed levels (barycentric transfer, cross_partition="auto").
Reproduction (kaiju)
runs/slab_ti_check2b: the TAf checkpoint 40 with -uw_fault_realisation ti -uw_ti_check 2, library build 547c2e5 (bugfix/faulted-rebuild-leak, on feature/box-faults-warm). The campaign works around it with -uw_chain 0 for the TI runs.
Bearing
This is the hierarchy path #889 and #890 ship. A memory probe of the transfer build between two unsplit placed levels at np 4 would show whether this is the build or a later stage.
Underworld development team with AI support from Claude Code
Verdict: UNPROBED on development 01dec8d. H1 (review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)) did not reproduce the memory growth with a generic case.
The probe is a box at cellSize 1/32 with refinement 2. The finest level is a ladder ribbon placed with split=False on the base (320 rungs). The hierarchy is [L0, L1, placed(L1, 160 rungs)], compared with the unplaced tail [L0, L1]. It is a viscous Stokes solve with set_custom_fmg(..., field_id=0) and cross_partition="auto", and it records VmRSS and VmHWM around solve():
tail unplaced: RSS growth over solve per rank (MB) [182, 171, 240, 186], peak [616, 556, 673, 573]
levels (rows, nnz/row): [(9346, 55.8), (37890, 92.0), (166186, 91.4)]; vel its 4
tail placed: RSS growth over solve per rank (MB) [186, 177, 271, 191], peak [629, 569, 720, 586]
levels (rows, nnz/row): [(9346, 56.7), (37890, 58.4), (44770, 73.8), (166186, 91.4)]; vel its 3
The placed coarse level adds about 7 % to the peak, and its Galerkin operator is no denser than the finest. There is no growth like the 170-377 GB reported. The probe differs from the reported case in its domain (a box, not an annulus), size, rank count (4, not 16), rheology and checkpoint. A rerun of the reported case (slab_ti_check2b, run on a Linux cluster under Slurm with Intel Xeon Gold 6230R nodes) on development with -uw_chain on would settle it. If that passes, this can close.
Underworld development team with AI support from Claude Code
Serial probe on development (macOS, 12-core Apple M4): not reproduced, including at the reported size.
The fixture is an annulus with refinement 2. The finest level is an unsplit placed ladder ribbon on the base, and the tail holds a second placed level on L1, as in H1's box probe. Peak RSS of the whole solve:
finest cells
tail [L0, L1]
tail [L0, L1, placed(L1)]
9,628
510 MB
520 MB
142,594
3,044 MB
3,212 MB (+5.5 %)
Every solve converged in 3 velocity iterations.
The cross-partition node builder (_node_transfer_no_repair, barycentric), run directly on the full gathered coarse cloud every rank holds (the placed level's 72,064 P2 nodes):
against a sixteenth of the finest's nodes: +10 MB;
against all 286,700: +100 MB.
So neither the serial build nor that builder grows anywhere near 10 to 23 GB per rank.
What is left runs only in parallel: the assembly of the cross-partition transfer and PETSc's Galerkin products. A cross-partition transfer has many off-rank columns. The candidate to test is the non-scalable MatPtAP, which can allocate by the global column count on every rank. That needs the reported case rerun at np 16 with -memory_view, once as is and once with -mat_product_algorithm scalable.
Underworld development team with AI support from Claude Code
Activity
lmoresi commentedon Nov 13, 2026
Verdict: UNPROBED on development 01dec8d. H1 (review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)) did not reproduce the memory growth with a generic case.
The probe is a box at cellSize 1/32 with refinement 2. The finest level is a ladder ribbon placed with
split=Falseon the base (320 rungs). The hierarchy is[L0, L1, placed(L1, 160 rungs)], compared with the unplaced tail[L0, L1]. It is a viscous Stokes solve withset_custom_fmg(..., field_id=0)andcross_partition="auto", and it records VmRSS and VmHWM aroundsolve():mpirun -n 4, finest level 41,802 cells:The placed coarse level adds about 7 % to the peak, and its Galerkin operator is no denser than the finest. There is no growth like the 170-377 GB reported. The probe differs from the reported case in its domain (a box, not an annulus), size, rank count (4, not 16), rheology and checkpoint. A rerun of the reported case (
slab_ti_check2b, run on a Linux cluster under Slurm with Intel Xeon Gold 6230R nodes) on development with-uw_chainon would settle it. If that passes, this can close.Underworld development team with AI support from Claude Code
lmoresi commentedon Nov 20, 2026
Serial probe on development (macOS, 12-core Apple M4): not reproduced, including at the reported size.
The fixture is an annulus with refinement 2. The finest level is an unsplit placed ladder ribbon on the base, and the tail holds a second placed level on L1, as in H1's box probe. Peak RSS of the whole solve:
Every solve converged in 3 velocity iterations.
The cross-partition node builder (
_node_transfer_no_repair, barycentric), run directly on the full gathered coarse cloud every rank holds (the placed level's 72,064 P2 nodes):So neither the serial build nor that builder grows anywhere near 10 to 23 GB per rank.
What is left runs only in parallel: the assembly of the cross-partition transfer and PETSc's Galerkin products. A cross-partition transfer has many off-rank columns. The candidate to test is the non-scalable
MatPtAP, which can allocate by the global column count on every rank. That needs the reported case rerun at np 16 with-memory_view, once as is and once with-mat_product_algorithm scalable.Underworld development team with AI support from Claude Code