Linux Kernel调度管理之sched_entity

来源:互联网 发布:集美大学怎么样 知乎 编辑:程序博客网 时间:2024/06/05 01:42
sched_entity是调度实体描述,描述可被调度的对象:
struct sched_entity {struct load_weightload;/* for load-balancing */struct rb_noderun_node;struct list_headgroup_node;unsigned inton_rq;u64exec_start;u64sum_exec_runtime;u64vruntime;u64prev_sum_exec_runtime;u64nr_migrations;#ifdef CONFIG_SCHEDSTATSstruct sched_statistics statistics;#endif#ifdef CONFIG_FAIR_GROUP_SCHEDintdepth;struct sched_entity*parent;/* rq on which this entity is (to be) queued: */struct cfs_rq*cfs_rq;/* rq "owned" by this entity/group: */struct cfs_rq*my_q;#endif#ifdef CONFIG_SMP/* * Per entity load average tracking. * * Put into separate cache line so it does not * collide with read-mostly values above. */struct sched_avgavg ____cacheline_aligned_in_smp;#endif};
需要注意,进程描述符中含有三个类别的调度实体,即cfs,rt,dl三个。
0 0
原创粉丝点击