-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zfs status -d units not clear #2414
Comments
It's bytes, your DDT has 3.2 M entries, each entry is using 311 bytes on disk and 179 in RAM. So your DDT consumes 556 MB of RAM (3255693 * 179 bytes) and is 966 MB on disk, for a total size of 1.48 GB. |
Thanks! Could be good if this was in the output of the command? |
I wouldn't be opposed to adding a |
* Add zfs_nicebytes() to print human-readable sizes Some 'zfs', 'zpool' and 'zdb' output strings can be confusing to the user when no units are specified. This add a new zfs_nicenum_format "ZFS_NICENUM_BYTES" used to print bytes in their human-readable form. Additionally, update some test cases to use machine-parsable 'zfs get'. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #2414 Closes #3185 Closes #3594 Closes #6032
'In core' means RAM you say, but in many cases where RAM is not sufficient, DDT entries * size in core > system RAM, which cannot happen of course. So in practice, 'in core' means 'in RAM as much as it could, and the rest spilled on disk'. Is that correct? Is there a way to tell how much of the DDT is spilled on disk? This would be a nice thing, since the more of DDT is spilled on disk, the more write performance is severely impacted. |
The units are not clear
311 whats? 179 whats?
The text was updated successfully, but these errors were encountered: