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

zfs status -d units not clear #2414

Closed
ioquatix opened this issue Jun 21, 2014 · 4 comments · Fixed by #6032
Closed

zfs status -d units not clear #2414

ioquatix opened this issue Jun 21, 2014 · 4 comments · Fixed by #6032
Labels
Type: Documentation Indicates a requested change to the documentation

Comments

@ioquatix
Copy link

The units are not clear

# zpool status -D
  pool: backup
 state: ONLINE
  scan: none requested
config:

        NAME                                        STATE     READ WRITE CKSUM
        backup                                      ONLINE       0     0     0
          ata-eSATA-2_ExternalRAID_WD-WCAZA6489285  ONLINE       0     0     0

errors: No known data errors

 dedup: DDT entries 3255693, size 311 on disk, 179 in core

311 whats? 179 whats?

@dasjoe
Copy link
Contributor

dasjoe commented Jun 21, 2014

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.

@ioquatix
Copy link
Author

Thanks! Could be good if this was in the output of the command?

@behlendorf behlendorf modified the milestones: 0.6.4, 0.7.0 Jun 26, 2014
@behlendorf
Copy link
Contributor

I wouldn't be opposed to adding a b suffix to those byte sizes.

@behlendorf behlendorf modified the milestones: 0.8.0, 0.7.0 Mar 25, 2016
@behlendorf behlendorf removed this from the 0.8.0 milestone Oct 11, 2016
behlendorf pushed a commit that referenced this issue May 2, 2017
* 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
@dogganos
Copy link

dogganos commented Apr 18, 2018

'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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Indicates a requested change to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants