# CPQ IO Scheduler: reconstructing Xiaomi's block scheduler

> CPQ IO Scheduler reconstructs Xiaomi's proprietary cpq.ko Linux block scheduler from a stripped ARM64 kernel module. Its out-of-tree C implementation combines priority classes, thread-group queues, deadline handling, and blk-mq elevator integration, with a whitepaper and author-reported benchmarks.

- Type: Case study
- Targets: Binary
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-06
- Original resource: <https://github.com/Rasenkai/CPQ_IOSched>
- Primary source: <https://github.com/Rasenkai/CPQ_IOSched/blob/ed5989340818224d58b0fba9b4f4aebd99545e3d/README.md>
- Catalog page: <https://awesomerea.org/resources/cpq-iosched-case/>
- Record JSON: <https://awesomerea.org/resources/cpq-iosched-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/cpq-iosched-case/index.md)

## Requirements & limits

- **Prerequisites:** Building requires Linux kernel headers for the block layer and scheduler APIs; the author reports testing on Linux 6.1 with RK3588 and eMMC 5.1.
- **Testing evidence:** The author reports a 5-of-6 workload win against mq-deadline, with about 1.9% average IOPS uplift.
- **License:** GPL-2.0 license, as stated in the README and source-file notice.

## Primary sources

1. <https://github.com/Rasenkai/CPQ_IOSched/blob/ed5989340818224d58b0fba9b4f4aebd99545e3d/README.md>

## More in Native binaries

- [Malware Analysis: njRAT and Casdet behavior investigation](https://awesomerea.org/resources/malware-analysis-njrat-casdet-case/index.md) · Case study
- [Ghidra](https://awesomerea.org/resources/ghidra/index.md) · Tool
- [radare2](https://awesomerea.org/resources/radare2/index.md) · Tool
- [Cutter](https://awesomerea.org/resources/cutter/index.md) · Tool
- [Qiling](https://awesomerea.org/resources/qiling/index.md) · Tool
- [Unicorn Engine](https://awesomerea.org/resources/unicorn/index.md) · Tool

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
