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 #2229 detect available memory #2236

Merged
merged 1 commit into from
Feb 27, 2020
Merged

Conversation

rbtcollins
Copy link
Contributor

This doesn't implement streaming IO for low memory situations - we still
have the situation that low footprint situations will fail to install,
but while it is the case that rustc's memory footprint is lower than our
unpack footprint this is probably not urgent to fix, though I will get
around to it.

Being less aggressive about unpack buffer size though should reduce the
number of support tickets from folk in these cases, I hope.

We may end up getting tickets from folk with broken ulimit syscalls
though, who knows.

@rbtcollins
Copy link
Contributor Author

One possible critique of the patch is that I haven't wired up the UI to the eventing system. TBH I couldn't be bothered, but I can do that if thats the only issue.

However I'm less and less enthralled by that system as time progresses; as we dont support the library as an API, and it's very cumbersome, I'd really like to bring a better system into being.

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

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

I'd prefer to see the use of AtomicBool otherwise I think it looks good. How confident are you about effective_limits as a crate for this? I'll defer to your judgement if you say it looks/feels sound.

src/dist/component/package.rs Outdated Show resolved Hide resolved
src/dist/component/package.rs Outdated Show resolved Hide resolved
src/dist/component/package.rs Show resolved Hide resolved
tests/cli-exact.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

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

I think the use of AtomicBool somehow isn't right because the defaulting message is no longer displayed. Either way the tests need checking because they're failing.

src/dist/component/package.rs Outdated Show resolved Hide resolved
This doesn't implement streaming IO for low memory situations - we still
have the situation that low footprint situations will fail to install,
but while it is the case that rustc's memory footprint is lower than our
unpack footprint this is probably not urgent to fix, though I will get
around to it.

Being less aggressive about unpack buffer size though should reduce the
number of support tickets from folk in these cases, I hope.

We may end up getting tickets from folk with broken ulimit syscalls
though, who knows.
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

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

I am really getting to be grumpy about our notification system :D For now, 👍

@kinnison kinnison merged commit ed6f719 into rust-lang:master Feb 27, 2020
@rbtcollins rbtcollins deleted the 2229 branch March 13, 2021 21:21
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.

2 participants