-
Notifications
You must be signed in to change notification settings - Fork 32
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
How to see the physical space of a disk? #45
Comments
Hi @Baimax-123, yes. Using the Here is some output to show an example.
|
Hi @Baimax-123, What are you specifically trying to find out? Using |
Hi @rhawalsh, I have a SSD with compression, which can give the physical usage of the disk. |
Hi @Baimax-123, I did not realize your SSD was doing compression as well. I would suggest that if you want to compare realistic numbers, it's probably better to look at the As you can tell the state of compression and/or deduplication affects the amount of data that actually gets cycled through the device. It will never be 1:1 because of the need to write out metadata, journal information for recovery, etc. Depending on the workload the ratio will vary up or down. |
Hi @rhawalsh , |
Hi @Baimax-123, Please feel free to ask any questions you might have along the way! I also intended to mention that inspecting the output of |
Hi, @rhawalsh |
Hi, @rhawalsh, I use the FIO tool for random writing and iostat to monitor the VDO volume and hard disk at the same time. As mentioned in the following table, VDO volumes are built directly on the hard disk. |
Hi @Baimax-123, I apologize for the delayed response. To get some information about the output from The IO for VDO involves doing read-compares when we encounter duplicate data. So if the block comes in, VDO hashes it and sends to UDS for advice, and UDS claims that it is a duplicate and likely at a particular block, the VDO device will then go read that block to make sure that it actually is a duplicate. In the event that it's actually not a duplicate, the VDO device can then write it out as it normally would with a unique block. So it is for reasons like this that you're seeing a bunch of read traffic, despite a purely write workload. Please keep in mind that my description of the IO pattern is generalized. If you want/need more detail then you could ask for more details and I can try to get someone who is more knowledgeable than I am to provide better information. Of course you're always free to browse the code yourself as well, but that might be more work than its worth. |
Thanks, @rhawalsh. I have see that. And I will browse the code and hope to learn more about VDO. |
I set up VDO on the disk and want to check the actual disk usage when deduplication is turned off and on
What command should I use?
sudo vdostats --hu?
This should only be the size in VDO
The text was updated successfully, but these errors were encountered: