classification_finite_simple_groups cannot be evaluated: restore stack limit and vm.max_map_count

Aperta Adatta ai principianti
#725 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, linux, python
Ambito
ci-cd

Direzione di ricerca

Inizia in scripts/fetch_dependency_caches.py, dove il ripristino leantar imposta RLIMIT_STACK a 64 MiB; alzalo ad almeno 1 GiB o al limite rigido quando è illimitato, poi riesegui prepare_ci_dependencies.py e fetch_dependency_caches --restore sugli artefatti Certificates.Kernel.* elencati per confermare che si decomprimono. Decidi separatamente se il workflow ubuntu-24.04 debba impostare vm.max_map_count tramite sysctl oppure se la documentazione del problema debba avvertire chi invia che importare CFSG.Statement supera il valore predefinito. Fatto significa un ripristino pulito e lake test sulla configurazione previous-stable, oppure un requisito documentato dove il runner non può essere modificato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

While preparing a submission for classification_finite_simple_groups on the previous-stable configuration (Lean v4.35.0; lean-eval main at bcc14246; cfsg 965a0775, TauCeti 1f9b4414, Mathlib 07406378), we found two problems that, as far as we can tell, stop any submission to this problem from being evaluated. We followed the CI steps: prepare_toolchain.py previous-stable --apply, prepare_ci_dependencies.py, fetch_dependency_caches --restore, then lake test (comparator with NanoDa) in the workspace with the submission overlaid.

1. scripts/fetch_dependency_caches.py: 64 MiB stack is too small for some cfsg artifacts

The restore step raises RLIMIT_STACK to 64 MiB for leantar. With that limit, leantar exits with 139 (SIGSEGV) while unpacking 9 Certificates.Kernel.* artifacts, so the restore fails after its retries:

  • Certificates.Kernel.SporSch.PairJ3.FormsText
  • Certificates.Kernel.Co1B.Acts0
  • Certificates.Kernel.Sporadic.OddCore.SuzCert
  • Certificates.Kernel.Sporadic.Fi22.Ext2073
  • Certificates.Kernel.Sporadic.OddCore.HND4
  • Certificates.Kernel.Misc.Perm.J2C3C
  • Certificates.Kernel.HeLoc.SevenData
  • Certificates.Kernel.Misc.RuFive.Text
  • Certificates.Kernel.D43.HexG

When we unpacked the same .ltar files by hand, 8 of them needed 256 MiB of stack, and Certificates.Kernel.SporSch.PairJ3.FormsText needed 1 GiB. With a 4 GiB soft limit the restore completed. Raising the limit in the script to at least 1 GiB (or to the hard limit when it is unlimited) should fix this.

For scale, the import closure of CFSG.Statement is about 227k cfsg modules. The restored cfsg/.lake is about 201 GB, and the package tree is about 213 GB in 3.8 million files. That may also matter for runner disk and time budgets.

2. Importing CFSG.Statement fails under the default vm.max_map_count

After a complete restore, lake test fails while building Submission. The error is:

error: Submission.lean:1:0: failed to read file '.../cfsg/.lake/build/lib/lean/CFSG/LocalAnalysis/.../*.olean.private'
error: build failed

We measured the following:

  • Memory is not the cause. The build fails the same way at 16 CPU / 32 GiB (peak 28.3 GB) and at 62 CPU / 240 GiB (peak 17.9 GB).
  • A plain lake env lean on a file that only imports CFSG.Statement fails when the process reaches 1,048,142 memory mappings. At that point it has only 11–14 open file descriptors.
  • vm.max_map_count is 1,048,576 on our machines. This is the Ubuntu 24.04 default, and the CI workflows also use ubuntu-24.04.

So importing CFSG.Statement (and with it this problem's statement) seems to need vm.max_map_count well above 1.05M. A submitter cannot change this setting; it has to be raised on the runner, e.g. sysctl -w vm.max_map_count=4194304. If that is not possible, a note on the problem might save other submitters the long restore.

We have not submitted anything for this problem. The gorenstein_walter workspace on the same configuration restores and evaluates fine (about 1.7k cfsg modules).

Lingua principale
Lean
Stelle
52
Fork
46
Merge medio
1g 1h
PR unite (30g)
16

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di leanprover/lean-eval

Tutte le issue di leanprover/lean-eval

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.