-
Notifications
You must be signed in to change notification settings - Fork 1.7k
tests: only refresh the minimum sysinfo in mem limit tests. #15702
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
Conversation
Can we run the extended tests on this PR? |
Run extended tests |
it is still running |
I don't think it does, the spawning crashed, there's nothing running here: https://github.com/apache/datafusion/actions?query=workflow%3A%22Datafusion+extended+tests%22 |
The CI issue is hopefully fixed here: #15704 |
Thank you for the fix. To test this PR, I think you can push the change to your cloned repository of |
Tests seem to finish nicely: https://github.com/ashdnazg/datafusion/actions/runs/14442804912/job/40496805764 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
Thank you @ashdnazg and @jayzhan211 |
Rationale for this change
Currently the memory limit tests hang due to lock contention and the overhead from frequently calling
sysinfo::System::refresh_all()
in the memory monitoring task.In fact, we don't really need to refresh all info, it's enough to just get the memory data about the current process, which significantly reduces the refresh time and the tests finish quickly.
What changes are included in this PR?
In the memory limit utils, the memory monitoring spawned task now refreshes system info only for what's actually necessary.
Are these changes tested?
It's part of the tests, and they seem to not hang anymore :)
Are there any user-facing changes?
No