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

HDD free wrong? #591

Open
sebastianelsner opened this issue Jan 16, 2024 · 3 comments
Open

HDD free wrong? #591

sebastianelsner opened this issue Jan 16, 2024 · 3 comments

Comments

@sebastianelsner
Copy link
Contributor

Hello,

I noticed the "hdd free" may not be correct. Please see the screenshot: "Afanasy Host info" on the left 22 GB vs. "df -h on the host on the right 13 GB"

Screenshot from 2024-01-16 12-51-05

The line must be here:

hres.hdd_free_gb = ((fsd.f_bfree >> 10) * fsd.f_bsize) >> 20;

The total hdd is correct (203 GB vs 204G) so there may be something wrong in the code above?!

@sebastianelsner
Copy link
Contributor Author

Comparing several renders it seems to be off by around 10GB

@timurhai
Copy link
Member

Hello!
204 - 181 = 23, so Afanasy works correct, but seems missing something, that df -h takes.

@sebastianelsner
Copy link
Contributor Author

The difference seems to be the reserved block count for root. The reserved blocks allow system daemons to keep going even when the disk is full, while non-root processes will not be able to write to it.

So afanasy is overreporting the free space, which is kind of right, but also wrong since a rendering will never write to the root reserved space. I would aim at presenting the user available space in afanasy. I have a look at how to do that.

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

No branches or pull requests

2 participants