【 SCHED 】聊聊 QOS
关于 QOS(Quality Of Service)官方是这样定义的,
This interface provides a kernel and user mode interface for registering performance expectations by drivers, subsystems and user space applications on one of the parameters.
可以将它理解为一套接口,可以通过它来申请或限制一些“指标”。
在当前版本的内核中,QOS 被应用到了两个方面,
● CPU latency QoS.
● The per-device PM QoS framework provides the API to manage the per-device latency constraints and PM QoS flags.
一方面应用在 CPU latency 机制上,另一方面还在 PM 相关功能上得以体现。
那么本文的重点就是介绍下 QOS 在这两种情况下的应用案例。