Skip to content

Miri's memory usage has decreased. Thoughts on giving the default profile some parallelism? #1346

Closed
@saethlin

Description

@saethlin

[profile.default-miri]
# Miri tests take up a lot of memory, so only run 1 test at a time by default.
test-threads = 1

Previously, I'd have just agreed with the statement in the default config. But I've landed a number of PRs over the past months, culminating with rust-lang/rust#118336 which have all reduced the interpreter's memory growth over time. The interpreter is still not lightweight by any means; unit tests seem to consume no less than 250 MB and I rarely see them using more than 500 MB.

But I don't think suppressing parallelism is a clearly superior default anymore. I'd bet that most development environments can support available_parallelism() Miri jobs now, but I expect you want to be more cautious than that. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions