Skip to content

Commit e42b88b

Browse files
committed
Initial Version.
1 parent 630c7dc commit e42b88b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Management-Utilities/warm_performance_tier/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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
55
volume. In other words, it ensures all the blocks for a volume are in
66
the "performance tier" as opposed to the "capacity tier." It does that
77
simply 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
99
into the performance tier before being returned to the reader. At that point,
1010
assuming the tiering policy is not set to 'all', all the data should remain
1111
in 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
1515
in the volume, and then a separate thread for each file in that directory.
1616
The number of directory threads is controlled by the -t option. The number
1717
of 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
1919
directory threads and 10 reader threads, you could have up to 40 reader
2020
threads running at one time.
2121

2222
You can specify a FSx for ONTAP file system data endpoint and a volume
2323
name to the script and it will attempt to mount the volume if it isn't already.
2424
If 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
2626
as the volume name. If this isn't the case, then just mount the volume
2727
before running the script and provide the path to the mount point
2828
with the -d option.
@@ -37,11 +37,11 @@ volume before reading the files.
3737
Once the volume has been mounted, then the script should be run by
3838
a 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
4141
set 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
```
4646
chmod +x warm_performance_tier
4747
./warm_performance_tier -d /path/to/mount/point
@@ -59,13 +59,13 @@ directory or file being processed.
5959
If you run the script with a '-h' option, you will see the following help message:
6060
```
6161
Usage: 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

Management-Utilities/warm_performance_tier/warm_performance_tier

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ usage () {
2929
cat 1>&2 <<EOF
3030
3131
Usage: $(basename $0) [-f filesystem_endpoint] [-v volume_name] [-d directory] [-t max_directory_threads] [-x max_read_threads] [-n nfs_type] [-h] [-V]
32-
where
32+
Where:
3333
-f filesystem_endpoint - Is the hostname or IP address of the FSx for ONTAP file system.
3434
-v volume_name - Is the ID of the volume.
3535
-n nfs_type - Is the NFS version to use. Default is nfs4.
3636
-d directory - Is the root directory to start the process from.
37-
-t max_directory_threads - Is the maximum number of threads to use to process directories. Default is 10.
38-
-x max_read_threads - Is the maximum number of threads to use to read files. Default is 4.
37+
-t max_directory_threads - Is the maximum number of threads to use to process directories. The default is 10.
38+
-x max_read_threads - Is the maximum number of threads to use to read files. The default is 4.
3939
-V - Enable verbose output. Displays the thread ID, date (in epoch seconds), then the directory or file being processed.
4040
-h - Prints this help information.
4141

0 commit comments

Comments
 (0)