Closed-loop `--no-tui` reaches 3x of open loop with `-q`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- performance
Línea de trabajo
Reproduce with the documented taskset ... oha --no-tui ... -q <rate> command against a local server, then compare the two paths: fast::work_until (per-thread current-thread runtimes) and work_until_with_qps on the shared multi-thread runtime. Read the rate-limiting/scheduling code around those entry points and profile where offered rate is lost at high rps; #910 is referenced as related. Done means -q achieves close to the offered rate at the levels where it now plateaus near 500k rps. Expected to need async-runtime and benchmarking expertise.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
On our setup, -q runs stop scaling at about 500k rps, whatever the server. Closed-loop --no-tui runs on the same machine reach 1.4M rps.
This was discovered during benchmarking of relic_native, but I have chosen to recreate with dusty to be certain, as I'm the maintainer of the former.
Setup
oha 1.17.0 on GCP c4-standard-48 (Xeon Platinum 8581C), Linux 7.0. Server and oha run in separate network namespaces over veth, server on CPUs 0-8, oha on 9-17. HTTP/1.1 keep-alive, with a plaintext response.
taskset -c 9-17 oha --no-tui --output-format json --worker-threads 8 -c 64 -z 5s [-q <rate>] http://<server>/plaintext
| server (closed-loop rps) | -q offered |
achieved | achieved / offered |
|---|---|---|---|
| dusty, 8 executors (1,444k) | 722k | 482k | 67% |
| 1,083k | 492k | 45% | |
| 1,299k | 491k | 38% | |
| 1,444k | 496k | 34% | |
| hyper, 1 worker (263k) | 132k | 131k | 99% |
| 237k | 237k | 100% | |
| 263k | 260k | 99% |
Possible cause
Closed loop with --no-tui takes fast::work_until, which runs one current-thread runtime per thread. -q takes work_until_with_qps on the shared multi-thread runtime. Seems related to #910, but the issue was the same before 1.7.0.
- Lenguaje dominante
- Rust
- Estrellas
- 10.7k
- Forks
- 311
- Merge medio
- 24 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin 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 hatoo/oha
-
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
-
Panic: Unwrapping send on closed report channel causes ReceiveClosed in worker tasks under loadPosiblemente ocupada @tyr1k la tomó hace 173 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
-
TTFB info in regular outputAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
HTTP/3 very slowAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
Issues similares
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
help wanted small extra
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/rune#2432 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
netwatch: support tvOSAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
n0-computer/net-tools#282 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
eliasstravik/herdr-projects#1551 ·