GitHub Hot Board

GitHub Hot Board · Archivo del repositorio

mlichvar/rsntp

High-performance NTP server written in Rust (Esta descripción procede del propio repositorio.)

Datos al October 22mlichvar

Mejor puesto

#130

Gemas ignoradas

100

Estrellas totales

17

Forks totales

1

Días en rankings (30 d)

Estado del proyectoLicencia: desconocidoÚltimo push: desconocidoIssues abiertos (PR incl.): desconocido

Recolectado desde 2026-10-25; desconocido = aún no recopilado

Pon la insignia en tu README · mlichvar/rsntp[![Pon la insignia en tu README](https://git.vaiox.xyz/api/badge/mlichvar/rsntp.svg)](https://git.vaiox.xyz/es/repo/mlichvar/rsntp)
<a href="https://git.vaiox.xyz/es/repo/mlichvar/rsntp"><img src="https://git.vaiox.xyz/api/badge/mlichvar/rsntp.svg" alt="Pon la insignia en tu README" height="20"></a>

Documentación del proyecto

rsntp

rsntp is an experimental high-performance NTP server written in Rust. It does not implement a full NTP client and relies on another NTP client and server to be running on the system instead. It periodically updates its state to mirror the real NTP client/server and uses multiple threads to serve the current system time.

By default, rsntp uses one thread for IPv4 and another for IPv6. In order to get the best performance, it’s necessary to increase the number of threads using the --ipv4-threads and --ipv6-threads options to correspond to the number of CPU cores available on the system.

The real NTP client/server needs to be configured to listen on 127.0.0.1 on port 11123 (or another port if specified with the --server-address option). For instance, the following configuration should work with chronyd:

allow 127.0.0.1
port 11123
bindaddress 127.0.0.1

The following graphs compare the rsntp performance with chronyd (version 4.1), as measured by ntpperf. The tests ran on a Linux machine with an Intel E3-1220 v6 CPU (4 cores) and a 1Gb/s Intel I350 network card. The maximum rate of NTP requests and responses at the 1Gb/s speed is about 1100k per second.

ntpperf

The graphs show that with rsntp the server starts dropping packets at a higher rate than chronyd and its performance is more stable as the rate of requests is increasing. chronyd does not use multiple threads as a server. It needs to be started in multiple instances sharing the server port in order to utilize multiple CPU cores. It starts dropping packets at a lower rate and the response rate is jumping up and down as the request rate is changing. With both implementations 4 threads/instances are needed on this system to fully saturate the 1Gb/s link without any packets dropped, but rsntp with 3 threads is very close to it.

Clasificaciones actuales

  • 130

    Gemas ignoradas

    100 estrellas · 17 fork · Star acumuladas (ascendente)

    Ignoradas →

Evolución de los últimos 30 días

Estrellas acumuladas

Evolución del puesto

← Volver a los rankings