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

Running tests uses 50.1GB on Ubuntu #11105

Open
samuelcolvin opened this issue Jun 24, 2024 · 6 comments
Open

Running tests uses 50.1GB on Ubuntu #11105

samuelcolvin opened this issue Jun 24, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@samuelcolvin
Copy link
Contributor

samuelcolvin commented Jun 24, 2024

Describe the bug

I just cloned datafusion and tried cargo t on my ubuntu desktop, to check things were working properly.

It crashed.

I restarted, and it seems datafusion is using 50.1GB to just run tests.

The examples directory seems to be the biggest culpret.

image

To Reproduce

Just clone and run cargo t on Ubuntu (no idea if this is limited to linux).

Expected behavior

Humm, I guess in principle this isn't a show stopper, but seems somewhat unfortunate.

If there's an easy/low impact way to reduce disk usage, it might be useful.

Additional context

No response

@jayzhan211
Copy link
Contributor

jayzhan211 commented Jun 25, 2024

I got 28GB after cargo clean and cargo t on macbook

Screenshot 2024-06-25 at 5 23 02 PM

@jcsherin
Copy link
Contributor

On Ubuntu,

$ lsb_release -rc
Release:	22.04
Codename:	jammy

After cargo clean and running cargo t:

$ du -h -d2 target
4.0K	target/tmp
6.1G	target/debug/incremental
12M	target/debug/.fingerprint
337M	target/debug/build
16G	target/debug/deps
28G	target/debug/examples
50G	target/debug
50G	target

@samuelcolvin
Copy link
Contributor Author

samuelcolvin commented Jun 26, 2024

Not sure what I've done (except run tests more times):

image

Update, not using 103GB.

Seeing this nice error:

...
   Compiling datafusion v39.0.0 (/home/samuel/code/datafusion/datafusion/core)
error: failed to write to `/home/samuel/code/datafusion/target/debug/deps/rmetalvEs2G/lib.rmeta`: No space left on device (os error 28)

error: could not compile `datafusion` (lib) due to 1 previous error

@jayzhan211
Copy link
Contributor

The more you run, the more artifacts in /target is. cargo clean is all you need.

@alamb
Copy link
Contributor

alamb commented Jun 27, 2024

Yeah, I think this obscene use of temp space is an artifact of rust (rather than an artifact of datafusion specifically)

@alamb
Copy link
Contributor

alamb commented Oct 8, 2024

It would also help if we consolidated some of the example binaries: #11172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants