Skip to content
New issue

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

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

Already on GitHub? # to your account

scheduling optimization #8688

Merged
merged 1 commit into from
May 27, 2022
Merged

scheduling optimization #8688

merged 1 commit into from
May 27, 2022

Conversation

peter198
Copy link
Contributor

Add the --parallel-p1-limit parameter when the worker starts to set the maximum number of PreCommit1 tasks it can accept. When the miner schedules the PreCommit1 task to the worker, it will record the
The number assigned to it, when the number of assigned tasks is equal to the set maximum number of tasks, no new PreCommit1 tasks will be assigned to it, and will not be assigned again until a PreCommit1 task is executed.

The default value of the --parallel-p1-limit parameter is -1, which means no limit, and if the value of --parallel-p1-limit exceeds the maximum number of tasks that the worker hardware configuration can receive
won't work either.
When viewing worker information through lotus-miner sealing workers, the task number information of PreCommit1 will be displayed, as follows:
p1_limit: 15-7, 15 represents the value set by --parallel-p1-limit, 7 represents the number of PreCommit1 tasks currently running.

@peter198 peter198 requested a review from a team as a code owner May 20, 2022 09:24
@jennijuju jennijuju requested a review from magik6k May 23, 2022 18:20
@magik6k magik6k merged commit c4cfb7a into filecoin-project:master May 27, 2022
@magik6k
Copy link
Contributor

magik6k commented May 31, 2022

Thanks for the PR! This got merged with #8725 (made some changes there; check the description), and now lives in master.

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

Successfully merging this pull request may close these issues.

2 participants