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

Add abbility to do balancing only on files smaller than minimum ZFS block size #64

Open
TheSmoker opened this issue Feb 12, 2025 · 2 comments

Comments

@TheSmoker
Copy link

TheSmoker commented Feb 12, 2025

I would guess it would help to only go through files with a filesize smaller that a certain value. A good place to start would be the block size of ZFS pool: zfs get special_small_blocks <pool_name>. Normally this is 128K.

So just add the check before doing anything with the file as wrinting those bigger files back and forth is just a waste of time. :)

Also given the small file size in the above case, this would work even better with a small (1GB) RAM drive and read the files there, then move them back from RAM disk.

@markusressel
Copy link
Owner

as wrinting those bigger files back and forth is just a waste of time.

I don't really understand the logic or reasoning behind this, but feel free to create your own version of the script in this repo to achieve it :)

@AT-StephenDetomasi
Copy link

IMO this only has limited utility. When adding a special device, you want both metadata and small blocks to be present. Having the metadata on the main pool would negate the performance benefits somewhat. Might as well go through the whole pool.

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

3 participants