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

Update RUSTUP_UNPACK_RAM docs to reflect code #2486

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

nashley
Copy link
Contributor

@nashley nashley commented Sep 12, 2020

Match the minimum to MAX_FILE_SIZE's value in src/dist/component/package.rs
Also attempt to describe the default behavior

Match the minimum to `MAX_FILE_SIZE`'s value in `src/dist/component/package.rs`
Also attempt to describe the default behavior
@nashley
Copy link
Contributor Author

nashley commented Sep 12, 2020

I'm not sure if the explanation of the default behavior is sufficient or desired, and since it's not a static number, it's difficult to explain it succinctly. 🤔

@nashley
Copy link
Contributor Author

nashley commented Sep 12, 2020

Minimum value in source

Default behavior in source described here and here

@@ -28,7 +28,7 @@
determines the directory that traces will be written too. Traces are of the
form PID.trace. Traces can be read by the Catapult project [tracing viewer].

- `RUSTUP_UNPACK_RAM` *unstable* (default 400M, min 100M) Caps the amount of
- `RUSTUP_UNPACK_RAM` *unstable* (default auto or 500M if on a platform such as FreeBSD or NetBSD, min 210M) Caps the amount of
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I specified 210M since 220000000/1024^2=209.80835 and the previous documentation seemed to refer to M as a unit of mebibytes instead of megabytes, but perhaps it'd be better to refer to the more human-friendly megabytes instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I'll change this to explicitly MB instead of using the ambiguous M to refer to MiB

@kinnison kinnison merged commit 1e0af0b into rust-lang:master Sep 15, 2020
@nashley nashley deleted the patch-1 branch February 11, 2021 06:58
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