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

Fix/large num chunks error #381

Merged
merged 15 commits into from
Oct 9, 2024

Conversation

bhimrazy
Copy link
Collaborator

@bhimrazy bhimrazy commented Sep 22, 2024

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes #366.

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@bhimrazy bhimrazy self-assigned this Sep 22, 2024
@bhimrazy bhimrazy marked this pull request as draft September 22, 2024 19:42
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78%. Comparing base (d3b11ae) to head (2f5cfe9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #381   +/-   ##
===================================
  Coverage    78%    78%           
===================================
  Files        34     34           
  Lines      5022   5031    +9     
===================================
+ Hits       3925   3941   +16     
+ Misses     1097   1090    -7     

@bhimrazy bhimrazy requested review from deependujha and removed request for awaelchli September 23, 2024 17:57
@bhimrazy bhimrazy marked this pull request as ready for review September 23, 2024 18:21
@fdalvi
Copy link

fdalvi commented Oct 1, 2024

Hi @bhimrazy,

Thanks a lot for taking this up! Work got really busy so I didn't get to implement a potential fix.

I took a look at the current changes, I am not 100% confident I understand the changes fully, but it seems like we will close the mmap file after every item read (and then open it on every successive read because its not in the cache)? This is a bit excessive in terms of going the way of almost not caching anything right?

Please let me know if I have misunderstood the implementation. Thanks again!

Best,

@bhimrazy
Copy link
Collaborator Author

bhimrazy commented Oct 1, 2024

I took a look at the current changes, I am not 100% confident I understand the changes fully, but it seems like we will close the mmap file after every item read (and then open it on every successive read because its not in the cache)? This is a bit excessive in terms of going the way of almost not caching anything right?

Yes, @fdalvi, you’re correct. Thanks for bringing this up! I’ll review the changes in more detail and make the necessary adjustments shortly.

@bhimrazy bhimrazy marked this pull request as draft October 7, 2024 09:19
@bhimrazy bhimrazy marked this pull request as ready for review October 9, 2024 07:40
@tchaton tchaton merged commit 6ceea8a into Lightning-AI:main Oct 9, 2024
36 checks passed
@bhimrazy bhimrazy deleted the fix/large-num-chunks-error branch October 9, 2024 14:32
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.

Large number of chunks causes OSError: [Errno 24] Too many open files
4 participants