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

关于调度机制的问题 #49

Open
gamark opened this issue Nov 29, 2022 · 1 comment
Open

关于调度机制的问题 #49

gamark opened this issue Nov 29, 2022 · 1 comment

Comments

@gamark
Copy link

gamark commented Nov 29, 2022

我架了4个编译节点, A:50核,B:50核, C:20核, D:20核。

当我make -j80的时候, A:50核占满,B:30核,C,和D,偶尔会有占用一两核。 C和D,在这种情况下,大部分时候没有编译任务。

想问下,有没有方案,让调度更平均一点,当make -j80的时候,按比例分配到节点
比如: A:28, B:28, C:12 D:12

@0x804d8000
Copy link
Collaborator

https://github.com/Tencent/yadcc/blob/master/yadcc/scheduler/task_dispatcher.cc#L399

目前逻辑上确实是会尽量均分负载的,观察到这个现象比较奇怪。

可以看看https://github.com/Tencent/yadcc/blob/master/yadcc/scheduler/task_dispatcher.cc#L321 这儿的逻辑在你的环境里跑到了哪些分支

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants