Relay CPU goes to portable ChaCha20-Poly1305 instead of AES-GCM
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- networking, performance
Línea de trabajo
Start by tracing TLS cipher suite negotiation and the provider's suite ordering, then check where rind supplies ChaCha20 and AES backends. Reproduce the relay profile on a host with AES-NI and compare the negotiated suite and CPU profile before and after a maintainer-approved change. Done means the cause is identified and the same workload shows a measured improvement.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In a profile of a relay serving many SD subscribers, the top self-time was portable ChaCha20-Poly1305 from rind:
rind::low::generic::chacha20::keystream: 18.0%rind::low::generic::poly1305::Poly1305::add_bytes: 4.0%rind::low::generic::chacha20poly1305::cipher: 1.1%
That's about 23% of the relay's CPU in the generic (non-SIMD) code path. An earlier profile of the same workload showed AES-GCM at 2.4%, so either the suite that gets negotiated changed, or the AES backend did.
Work
- Find out why these sessions negotiate
TLS13_CHACHA20_POLY1305_SHA256rather than AES-128-GCM on hosts with AES-NI. It could be the client's suite order, the server's preference, or how the provider lists its suites. - Then do one or both of these, which is a decision for the maintainer:
- On hosts with hardware AES, have the server prefer AES-GCM.
- Give
rind's ChaCha20 a SIMD backend.
- Measure before and after, using the same profile.
(Written by Claude Opus 5.5 with high)
- Lenguaje dominante
- Rust
- Estrellas
- 1.6k
- Forks
- 251
- Merge medio
- 10 h 10 min
- PR fusionados (30 d)
- 832
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 moq-dev/moq
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Bump the quest flake input past kixel-ai/quest#1202 (Codex reviews use the config's gateway)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de moq-dev/moq
Issues similares
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryAbiertobug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsotto/sotto-authenticator#139 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
registrystack/registry-stack#2924 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
foundry-rs/starknet-foundry#4733 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100