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

Reduce memory usage during conda build #1649

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

muhammadhamzasajjad
Copy link
Collaborator

@muhammadhamzasajjad muhammadhamzasajjad commented Jun 26, 2024

Add more translation units for binary operators to reduce memory usage.

The build on conda was failing in arcticdb-feedstock as it was using a lot of memory. The feedstock runner only have 6.7GB of RAM. Splitting the binary operators in multiple translation units reduces memory usage and fixes the issue.

What does this implement or fix?

Any other comments?

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate error messages?
  • Are API changes highlighted in the PR description?
  • Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

jjerphan added a commit to muhammadhamzasajjad/arcticdb-feedstock that referenced this pull request Jun 26, 2024
Signed-off-by: Julien Jerphanion <[email protected]>
@muhammadhamzasajjad muhammadhamzasajjad marked this pull request as ready for review June 26, 2024 11:34
@muhammadhamzasajjad muhammadhamzasajjad self-assigned this Jun 26, 2024
Copy link
Collaborator

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

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

LGTM, after checking that this patch allows making the builds pass on the feedstock by applying it on top of conda-forge/arcticdb-feedstock#233 (e.g. see those logs).

Thank you, @muhammadhamzasajjad.

@muhammadhamzasajjad muhammadhamzasajjad merged commit 9b2cbb9 into master Jun 26, 2024
111 checks passed
@muhammadhamzasajjad muhammadhamzasajjad deleted the conda_build_mem_fix branch June 26, 2024 12:00
muhammadhamzasajjad added a commit that referenced this pull request Jun 28, 2024
Add more translation units for binary operators to reduce memory usage.

The build on conda was failing in arcticdb-feedstock as it was using a
lot of memory. The feedstock runners only have `6.7GB` of RAM. Splitting
the binary operators in multiple translation units reduces memory usage
and fixes the issue.

The issue was also observed in ArcticDB CI.

#### Checklist

<details>
  <summary>
   Checklist for code changes...
  </summary>
 
- [ ] Have you updated the relevant docstrings, documentation and
copyright notice?
- [ ] Is this contribution tested against [all ArcticDB's
features](../docs/mkdocs/docs/technical/contributing.md)?
- [ ] Do all exceptions introduced raise appropriate [error
messages](https://docs.arcticdb.io/error_messages/)?
 - [ ] Are API changes highlighted in the PR description?
- [ ] Is the PR labelled as enhancement or bug so it appears in
autogenerated release notes?
</details>

<!--
Thanks for contributing a Pull Request to ArcticDB! Please ensure you
have taken a look at:
- ArcticDB's Code of Conduct:
https://github.com/man-group/ArcticDB/blob/master/CODE_OF_CONDUCT.md
- ArcticDB's Contribution Licensing:
https://github.com/man-group/ArcticDB/blob/master/docs/mkdocs/docs/technical/contributing.md#contribution-licensing
-->
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

Successfully merging this pull request may close these issues.

3 participants