It's Go Time on Linux
Mar 5, 2014Albert Strasheim12 min read
Opens blog.cloudflare.comWhat the post covers
This post delves into the specifics of how Go programs on Linux obtain the current time, highlighting the evolution from older system calls like `time` and `gettimeofday` to the more precise `clock_gettime`.
- It details Cloudflare's adoption of the Linux vDSO (Virtual Dynamically linked Shared Objects) mechanism for low-overhead time retrieval, significantly improving performance for `time.Now()` and `runtime.nanotime`.
- The post also includes benchmarks demonstrating the performance gains and discusses the importance of accurate timekeeping for various system functions and potential pitfalls like Y2K and leap second bugs.
More from the Data Infrastructure & Analytics trail
How we built Cloudflare's data platform and an AI agent on top of it
Our billing pipeline was suddenly slow. The culprit was a hidden bottleneck in ClickHouse
When "idle" isn't idle: how a Linux kernel optimization became a QUIC bug
Evolving Cloudflare’s Threat Intelligence Platform: actionable, scalable, and ETL-less
ASPA: making Internet routing more secure