rustc_codegen_cranelift icon indicating copy to clipboard operation
rustc_codegen_cranelift copied to clipboard

Do a crater run

Open bjorn3 opened this issue 5 years ago • 7 comments

This will help catching miscompilations and compilation errors. Unfortunately doing a local crater run will probably take several weeks on my system if I would have enough disk space, which I don't. During that time I also likely won't be able to use my system at all.

bjorn3 avatar Sep 27 '20 18:09 bjorn3

how much approximate space does a crater run require? is it possible to do a crater run jr? i may/may not be able to help, depending on size and more crucially, network bandwidth requirements

m4b avatar Sep 29 '20 05:09 m4b

how much approximate space does a crater run require?

I have no clue.

is it possible to do a crater run jr?

The test suite of crater has a mini version, but I am pretty sure it is too small to be very useful.

may/may not be able to help, depending on size and more crucially, network bandwidth requirements

Thanks. @pietroalbini how much resources do you estimate a crater run requires?

bjorn3 avatar Sep 29 '20 05:09 bjorn3

It currently takes 2.5 days using 60 cores and a couple TBs of storage to run a cargo test run.

pietroalbini avatar Sep 29 '20 07:09 pietroalbini

Thanks! That is way out of reach for me and probably also for @m4b.

bjorn3 avatar Sep 29 '20 07:09 bjorn3

@pietroalbini What about network bandwidth ?

@bjorn3 thinking out loud, if jit mode was working that would remove effectively the storage requirement yes ? I would imagine each crate is compiled in memory, and results dumped eg to text file or whatever.

m4b avatar Sep 29 '20 16:09 m4b

In jit mode you still need to store the dependencies. Also the jit mode is not very useful without cargo support as it requires all dependencies to be available in dylib format, which is normally requires you to change the Cargo.toml to set crate-type for each dependency.

bjorn3 avatar Sep 29 '20 16:09 bjorn3

@m4b over a day one of our agent (a quarter of the Crater capacity) used an average of 1MB/s with peaks of 50MB/s.

pietroalbini avatar Sep 29 '20 18:09 pietroalbini