sta: write_timing_model stops scaling at 8 threads; search tag locks contended
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cpp
- Área
- backend, performance
Línea de trabajo
Start with the reported Search::findTag and Search::findTagGroup paths, then inspect Search::mutateTag and the tag locks in the timing analysis code; the issue provides a reproducer in the attached wtm_contention.zip and run-me.sh. Measure write_timing_model across thread counts and check that contention falls while the generated .lib remains identical. The issue describes the bottleneck but does not name source files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
write_timing_model on a 64 x 256 register file macro at global route (68k instances, asap7, the platform SDC's set_max_delay and group_path on [all_registers]) stops scaling at 8 threads: 77 s on 1 thread, 29 s on 8 and 28 s on 48. The .lib it writes is identical at every thread count.
Unzip and run (openroad 6ea4ca224f3589dd91809933f50f39af66053634 on PATH; the archive, wtm_contention.zip, is attached):
unzip wtm_contention.zip
./wtm_contention/run-me.sh
Reproduces in about 2.5 minutes on a 24-core machine:
write_timing_model, 1 threads: 76.7 s
write_timing_model, 8 threads: 28.72 s
write_timing_model, 48 threads: 28.209 s
regfile_1.lib and regfile_8.lib are identical
perf record -g at 48 threads: 32 % of samples are in futex syscalls and 25 % in the kernel's queued spin lock. The first STA frame above the spin-lock samples is Search::mutateTag (1440 samples), Search::findTag (1075), ArrivalVisitor::visit (802), Search::setVertexArrivals (784), Graph::visitFanouts (329) and Search::findTagGroup (243). Search::findTag takes tag_lock_ for every lookup in tag_set_ that the thread's tag cache misses, not only to insert a new tag; Search::findTagGroup takes tag_group_lock_ the same way.
The register files of a XiangShan core, built as macros of 270k to 370k instances, spend 4 to 6 minutes writing each abstract, write_timing_model being nearly all of it, with 400 to 870 s of system time per run.
Related: #11752 (the number of propagations, fixed) and #11933 (the -to [all_registers] lookup inside mutateTag, 22 % of the samples here).
- Lenguaje dominante
- Verilog
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 245
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de The-OpenROAD-Project/OpenROAD
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rulePosiblemente ocupada @LucasYuki la tomó hace 26 días. Abiertobug drt odb
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Posiblemente ocupada @osamahammad21 la tomó hace 26 días. Abiertobug drt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobazel enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersPosiblemente ocupada @shivarammysore la tomó hace 32 días. Abiertobazel bug odb
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processQuizá libre de nuevo @povik la tomó hace 31 días y no hay ningún pull request abierto. Abiertobug syn
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de The-OpenROAD-Project/OpenROAD
Issues similares
-
v3
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
pluginkollektiv/antispam-bee#952 ·
Los mantenedores suelen responder en 1 día
-
area: middleware enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
config: reject Proxy-Authorization and Proxy-Authenticate in server headersPosiblemente ocupada @haseemajaz la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
rohitgollarahalli/mcpx#38 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: API good first issue size/xs
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
DahanItamar/DockNest#354 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100