
schedcp
by eunomia-bpf·★ 105·综合分 46
SchedCP 通过 MCP 服务器实现 Linux 内核调度器的 AI 优化与自动管理性能调优。
概述
SchedCP 是一个实验性项目,通过 sched-ext 框架提供端到端的自动调度器选择、工作负载分析和性能优化。它包含 AI 驱动的 autotune 工具和专用 MCP 服务器,提供调度器列表、运行、停止、状态监控、创建验证、系统监控和工作负载管理等工具。该项目基于学术论文,旨在创建无需人工干预即可优化系统组件的'代理操作系统'。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要AI驱动的Linux调度器性能优化,且能够使用实验性内核时,选择SchedCP。
什么时候不要选它
如果你需要生产级解决方案或无法使用6.12+并支持sched-ext的Linux内核,请不要使用此工具。
此 server 暴露的工具
从 README 抽取出 8 个工具list_schedulersGet detailed information about all available schedulers
run_schedulerStart schedulers with custom configurations
stop_schedulerStop running scheduler instances
get_execution_statusMonitor scheduler performance and output
create_and_verify_schedulerCreate custom BPF schedulers from source code
system_monitorCollect real-time CPU, memory, and scheduler metrics
workloadManage workload profiles and execution history
autotuneAI Agent-powered automatic OS optimization
可对比工具
安装
安装要求
- Linux 6.12+ 内核,支持 sched-ext
- Rust 工具链
构建步骤
# 使用子模块克隆
git clone https://github.com/eunomia-bpf/schedcp
cd schedcp
git submodule update --init --recursive scheduler/scx
# 构建调度器
cd scheduler && make && make install && cd..
# 构建 autotune
cd autotune && cargo build --release && cd..
# 构建 MCP 服务器
cd mcp && cargo build --release && cd..Claude Desktop 配置
添加到您的 Claude Desktop 配置文件:
{
"mcpServers": {
"schedcp": {
"command": "path/to/schedcp/target/release/schedcp",
"args": []
}
}
}FAQ
- 什么是 sched-ext,为什么需要它?
- sched-ext 是一个 Linux 内核 BPF 调度器框架。SchedCP 需要它来创建和运行自定义调度器。您需要 6.12+ 版本的内核并支持 sched-ext。
- 如何使用 autotune 工具?
- 只需运行:`./autotune/target/release/autotune cc "<您的工作负载命令>"`。AI 代理将自动为您的选择并配置最佳调度器。
schedcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。