1- # Warm Performance (SSD) test for FSx for ONTAP volume
1+ # Warm Performance (SSD) tier for an FSx for ONTAP volume
22
33## Introduction
4- This sample provides a script that can be used to warm FSx for ONTAP
4+ This sample provides a script that can be used to warm a FSx for ONTAP
55volume. In other words, it ensures all the blocks for a volume are in
66the "performance tier" as opposed to the "capacity tier." It does that
77simply by reading every byte of every file in the volume. Doing that
8- causes any block that is currently in the capacity tier to be pull
8+ causes any block that is currently in the capacity tier to be pulled
99into the performance tier before being returned to the reader. At that point,
1010assuming the tiering policy is not set to 'all', all the data should remain
1111in the performance tier until the policy tiers it back out to the capacity tier.
@@ -15,14 +15,14 @@ the volume. It will spawn a separate thread for each directory
1515in the volume, and then a separate thread for each file in that directory.
1616The number of directory threads is controlled by the -t option. The number
1717of reader threads is controlled by the -x option. Note that the script
18- will spawn -x reader threads ** per** directory thread. So, if you have 4
18+ will spawn -x reader threads ** per** directory thread. So for example , if you have 4
1919directory threads and 10 reader threads, you could have up to 40 reader
2020threads running at one time.
2121
2222You can specify a FSx for ONTAP file system data endpoint and a volume
2323name to the script and it will attempt to mount the volume if it isn't already.
2424If it does mount it, it will mount it read-only and unmount
25- when it is done. The script assume that the junction path is the same
25+ when it is done. The script assumes that the junction path is the same
2626as the volume name. If this isn't the case, then just mount the volume
2727before running the script and provide the path to the mount point
2828with the -d option.
@@ -37,11 +37,11 @@ volume before reading the files.
3737Once the volume has been mounted, then the script should be run by
3838a user that has read access to all the files in the volume.
3939
40- Of course it only make sense to have the tiering policy on the volume
40+ Of course it only makes sense to have the tiering policy on the volume
4141set to something other than "all", otherwise the script will be ineffective.
4242
4343# Running The Script
44- To run the script you just need to change the UNIX permissions on the file to be executable, then run it as a command:
44+ To run this script you just need to change the UNIX permissions on the file to be executable, then run it as a command:
4545```
4646chmod +x warm_performance_tier
4747 ./warm_performance_tier -d /path/to/mount/point
@@ -59,13 +59,13 @@ directory or file being processed.
5959If you run the script with a '-h' option, you will see the following help message:
6060```
6161Usage: warm_performance_tier [-f filesystem_endpoint] [-v volume_name] [-d directory] [-t max_directory_threads] [-x max_read_threads] [-n nfs_type] [-h] [-V]
62- where
62+ Where:
6363 -f filesystem_endpoint - Is the hostname or IP address of the FSx for ONTAP file system.
6464 -v volume_name - Is the ID of the volume.
6565 -n nfs_type - Is the NFS version to use. Default is nfs4.
6666 -d directory - Is the root directory to start the process from.
67- -t max_directory_threads - Is the maximum number of threads to use to process directories. Default is 10.
68- -x max_read_threads - Is the maximum number of threads to use to read files. Default is 4.
67+ -t max_directory_threads - Is the maximum number of threads to use to process directories. The default is 10.
68+ -x max_read_threads - Is the maximum number of threads to use to read files. The default is 4.
6969 -V - Enable verbose output. Displays the thread ID, date (in epoch seconds), then the directory or file being processed.
7070 -h - Prints this help information.
7171
0 commit comments