SynetoOS includes a tool to understand how all datasets in the pool are consuming resources.
By default, the tool captures data every 1 second and prints out a summary table that shows the calculated operations and tracks the number of input/output operations per second (IOP) for reads and writes, the data transfer rate in bytes per second (B/s) for bandwidth and the average block size in bytes for reads and writes on an individual basis.
The script can be modified in order to capture data for a longer duration, by changing the tick-1sec parameter to a different interval (for example, tick-1h). When using a longer tick (such as tick-1h), you need to calculate the average IOP over the chosen time interval (e.g. 3600 seconds).
Step 1.Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 2.Become Super User
sudo su
Step 3.Remove bash_profile
rm ~admin/.bash_profile
After running the command, you need to perform logout and login again.
Step 4.Open “zfsio.d” script
vi /usr/tools/zfsio/zfsio.d
Step 5. Edit the script
Scrolling down you'll find the preset parameter “tick-1sec”.
Change it to suit your needs (for example, “tick-1hr” in cases where you want to run collections over a 1-hour period).
Step 6. Run the script
/usr/tools/zfsio/zfsio.d
The numeric values represent the following units:
operations (IOPs): The number of input/output operations per second (IOPs) for reads and writes. They indicate the rate at which data is being read from or written to the filesystem.
bandwidth: The data transfer rate in bytes per second (B/s). They indicate the amount of data being transferred per second for reads and writes.
blocksize: The average block size in bytes for reads and writes. They represent the size of the individual data blocks being read from or written to the filesystem.
At the bottom, the script displays a distribution of read block sizes for each dataset. Each row corresponds to a specific block size range. The count column indicates the number of read operations that fell within that range.
In this example:
There were no read operations with a block size of 256 or 1024 bytes.
There were 2 read operations with a block size of 512 bytes.
There were 4 read operations with a block size of 2048 bytes.
There were 603 read operations with a block size of 4096 bytes.