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

Allow tunables to be specified in human readable units #15152

Open
Znuff opened this issue Aug 3, 2023 · 2 comments
Open

Allow tunables to be specified in human readable units #15152

Znuff opened this issue Aug 3, 2023 · 2 comments
Labels
Type: Feature Feature request or new feature

Comments

@Znuff
Copy link

Znuff commented Aug 3, 2023

Describe the feature would like to see added to OpenZFS

When changing tunables under /sys/module/zfs/parameters/, often times we end up doing a lot of math converting whatever values we have in mind to the value in bytes.

It would be much more human to be able to echo 128G > /sys/module/zfs/parameters/zfs_arc_max instead of having to calculate it to 134760890368.

I have sometimes felt the need to gradually increase/decrease some tunables by just a tiny amount, and doing the math of it gets a bit tedious.

How will this feature improve OpenZFS?

This would make it a bit more human-friendly when changing values around.

Additional context

For example, I was trying to decrease my ARC size after I've done some tests from ~170GB to ~128GB, and it took me a brief minute to figure out why ZFS would keep ignoring 131602432 as a size. Obviously, I wanted 134760890368.

@Znuff Znuff added the Type: Feature Feature request or new feature label Aug 3, 2023
@filip-paczynski
Copy link

Just a workaround:

echo $(( 128 * 1024**3 )) > /sys/module/zfs/parameters/zfs_arc_max

@gdevenyi
Copy link
Contributor

Important context for "which human readable units" #11046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

3 participants