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

bootstrap: Improve CPU Utilization in SNS-Worker #287

Open
goshawk-3 opened this issue Feb 3, 2025 · 1 comment
Open

bootstrap: Improve CPU Utilization in SNS-Worker #287

goshawk-3 opened this issue Feb 3, 2025 · 1 comment
Assignees

Comments

@goshawk-3
Copy link
Contributor

Description

The simplified scheduling approach in the current implementation means that not all CPU-cores will be fully utilized in every situations.

E.g on a machine with 32 cores, if config.batch_limit = 32, it might happen that 32 (single-block) conversions are computed sequentially where each conversion utilizes only one core.

A better approach would be to maximize core utilization. In this case, the sns-worker should convert 32 blocks in parallel thus processing 32 different (single-block) ciphertexts simultaneously.

@goshawk-3 goshawk-3 self-assigned this Feb 3, 2025
@immortal-tofu
Copy link
Collaborator

We can spend time on this issue, but keep in mind that mid-term we'll run sns on GPU.

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