Silk: Open-source cooperative fiber scheduler

TL;DR

Silk is an open-source cooperative fiber scheduler designed for Linux, incorporating features like per-CPU scheduler threads, io_uring integration, and topology-aware work-stealing. It aims to improve high concurrency performance with low overhead. The project is now publicly available, with documentation and benchmarks provided.

Silk, an open-source cooperative fiber scheduler for Linux, has been publicly released, introducing per-CPU scheduler threads, io_uring integration, and topology-aware work-stealing to enhance high concurrency performance.

Silk is a new fiber scheduler designed for Linux systems, utilizing lightweight stackful coroutines called fibers that suspend instead of blocking OS threads. It supports features like per-CPU scheduler threads, io_uring-based asynchronous I/O, and topology-aware work-stealing, which optimizes thread distribution based on CPU topology. The project includes extensive documentation covering the scheduler loop, context switching, synchronization primitives, utility libraries, and performance benchmarks. It is built with dependencies such as Boost, liburing, and systemtap, and supports optional components like Poco, AWS SDK, and jemalloc. Silk aims to provide high concurrency with low overhead, suitable for demanding server environments.

Why It Matters

The release of Silk is significant because it offers a new approach to high-performance concurrency management on Linux, potentially impacting server applications, cloud computing, and data processing systems. Its architecture aims to improve throughput and latency by reducing blocking and leveraging topology-aware scheduling. This could influence future kernel or user-space scheduling strategies and inspire further open-source development in asynchronous I/O and fiber-based concurrency.

MiniOS Linux Lightweight Linux OS Bootable USB Flash Drive (Toolbox)

MiniOS Linux Lightweight Linux OS Bootable USB Flash Drive (Toolbox)

Ultra-Lightweight Linux OS – MiniOS is designed for speed and efficiency, making it ideal for older PCs, low-resource…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background

Fiber-based concurrency models have gained popularity for their efficiency in handling high I/O workloads. Existing solutions often lack integration with Linux’s asynchronous I/O mechanisms or do not optimize for CPU topology. You can explore open-source alternatives like Files.md for managing high-performance I/O workflows. Silk builds upon previous research and development in user-space scheduling and fibers, incorporating modern features like io_uring for efficient I/O. The project is part of ongoing efforts to improve Linux concurrency frameworks, with initial development and testing documented through benchmarks and usage examples.

“Silk introduces a topology-aware, low-overhead fiber scheduler that leverages io_uring for high concurrency on Linux.”

— Silk development team

“The scheduler supports suspension rather than blocking, enabling thousands of fibers to run concurrently with minimal overhead.”

— Project documentation

Amazon

high concurrency fiber scheduler software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

Details about the maturity of Silk, its stability in production environments, and its performance relative to existing Linux schedulers remain unconfirmed. The scope of community adoption and future development plans are still unclear.

Systems Performance

Systems Performance

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

Next steps include community testing, benchmarking in diverse workloads, and potential integration with Linux kernel or user-space frameworks. Further documentation and tutorials are expected to follow, along with possible contributions from the open-source community.

Amazon

open-source asynchronous I/O libraries

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What is Silk, and what does it do?

Silk is an open-source cooperative fiber scheduler for Linux that uses lightweight fibers, per-CPU threads, and io_uring integration to improve concurrency and performance.

How does Silk improve performance?

By suspending fibers instead of blocking threads, leveraging topology-aware work-stealing, and integrating efficient asynchronous I/O, Silk reduces overhead and increases throughput for high concurrency workloads.

Is Silk ready for production use?

Silk is currently in early release with documentation and benchmarks available. Its stability and suitability for production are still under evaluation, and further testing is planned.

What dependencies does Silk have?

Silk depends on Boost, liburing, systemtap, and optional components like Poco, AWS SDK, and jemalloc. It requires CMake >= 3.28, Ninja, Clang 21, and other development tools.

How can I contribute or learn more?

The project is open-source, with documentation available on its repository. Interested users and developers can contribute through GitHub or follow updates on its development roadmap. For related open-source projects, see z386: An Open-Source 80386 Built Around Original Microcode.

Source: Hacker News

You May Also Like

I Hate (Most) Keyboard ‘Fn’ Keys

A user shares frustrations with poorly implemented Fn keys, emphasizing the importance of reliable, user-friendly keyboard design.

Show HN: Agnt – Free open-source CLI to run any public or MIT-licensed AI agent

Agnt is a free, open-source command-line tool enabling users to run any public or MIT-licensed AI agent, expanding accessibility to AI automation.

Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised

On May 19, 2026, a malicious actor compromised the npm account ‘aatool,’ publishing 637 malicious versions across 317 packages, deploying sophisticated payloads targeting credential theft and persistence.

‘The Worst Leak That I’ve Witnessed’: U.S. Cybersecurity Agency Leaves Its Digital Keys Out in Public on GitHub

U.S. Cybersecurity Agency CISA left passwords and keys exposed on GitHub for months, raising concerns over security practices and potential data breaches.