Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sched): PELT #812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zwb0x00
Copy link
Contributor

@zwb0x00 zwb0x00 commented May 12, 2024

前置条件:完成#811,并通过完整测试

  • 负载更新函数
  • cfs调度维护负载信息
  • set_task_cpu
  • rt_rq功能完成后,维护负载信息
  • dl_rq功能完成后,维护负载信息
  • 计算中断负载
  • 组调度功能完成后,维护负载信息

@dragonosbot
Copy link

@zwb0x00: no appropriate reviewer found, use r? to override

@dragonosbot dragonosbot added the S-等待审查 Status: 等待assignee以及相关方的审查。 label May 12, 2024
@github-actions github-actions bot added the enhancement New feature or request label May 12, 2024
#[cfg(CONFIG_FAIR_GROUP_SCHED)]
{
if self.is_task() {
return self.on_rq as u64;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方与Linux似乎语意不一致,Linux对应语意为:on_rq为0则返回0否则返回1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -297,6 +316,42 @@ impl FairSchedEntity {
self.avg.load_avg = LoadWeight::scale_load_down(self.load.weight) as usize;
}
}

#[allow(dead_code)]
fn attach_entity_cfs_rq(se: Arc<FairSchedEntity>) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

函数应该加注释解释函数的主体逻辑~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,随着后续跨核部分一起提交

@GnoCiYeH
Copy link
Member

rv的编译不过,可能需要相应的对rv部分补一点TODO。部分地方可能需要加一点注释,以便后续维护

@GnoCiYeH
Copy link
Member

@dragonosbot author

@dragonosbot dragonosbot added S-等待作者修改 Status: 这正在等待作者的一些操作(例如代码更改或更多信息)。 and removed S-等待审查 Status: 等待assignee以及相关方的审查。 labels May 18, 2024
@fslongjin
Copy link
Member

ping @zwb0x00

xd,目前这个进度怎么样呀~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request S-等待作者修改 Status: 这正在等待作者的一些操作(例如代码更改或更多信息)。
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants