> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/sched_ule.4.md).

# sched\_ule.4

`sched_ule` — ULE 调度器

## 名称

`sched_ule`

## 概要

`options SCHED_ULE`

## 描述

`sched_ule` 调度器提供了许多传统系统调度器 [sched\_4bsd(4)](/man/man4/sched_4bsd.4.md) 中没有的高级调度器功能。这些功能针对 SMP 和交互性，包括：

* 线程 CPU 亲和性。
* CPU 拓扑感知，包括超线程。
* 每 CPU 运行队列。
* 交互式启发式算法，可检测交互式应用程序并在高负载下优先调度。

以下 sysctl 与 `sched_ule` 的操作相关：

**`kern.sched.name`** 此只读 sysctl 报告活动调度器的名称。

**`kern.sched.quantum`** 此读写 sysctl 报告或设置授予线程的时间片长度（以微秒为单位）。

## 参见

[sched\_4bsd(4)](/man/man4/sched_4bsd.4.md), [sysctl(8)](/man/man8/sysctl.8.md)

## 历史

`sched_ule` 调度器最早出现于 FreeBSD 5.1。

## 作者

Jeff Roberson <jeff@FreeBSD.org>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/sched_ule.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
