Skip to content

Commit

Permalink
Changed the mode of file creation to create_only as it reduces the ti…
Browse files Browse the repository at this point in the history
…me it takes to run the benchmark

Signed-off-by: Ankit Saurabh <sauraank@amazon.co.uk>
  • Loading branch information
Ankit Saurabh committed Feb 23, 2024
1 parent 4eed49b commit 8f1660f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion doc/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ You can instead manually configure the maximum size of the cache with the `--max

We recommend using local storage, such as Amazon EC2 instance storage or an Amazon EBS volume, as the target of the Mountpoint cache.
When caching to EBS, you can use your instance's root EBS volume, or create and attach a new volume just for caching.
There are several factors that can affect the performance of EBS volumes. See the [EBS documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) for more details about EBS volume types and their performance characteristics.
If you create a new EBS volume or use EC2 instance storage, you will first need to [create a file system](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/add-instance-store-volumes.html#making-instance-stores-available-on-your-instances) on that storage and mount it at a path such as `/mnt/mp-cache`.
The user running Mountpoint needs write access to the mounted file system,
and we recommend setting the permissions on the file system to not allow reads by any other users (e.g., `chmod 0700 /mnt/mp-cache`).
Expand Down
2 changes: 1 addition & 1 deletion mountpoint-s3/scripts/fio/create/create_files_100.fio
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
create_on_open=1
create_only=1
nrfiles=10
ioengine=filecreate
fallocate=none
Expand Down
2 changes: 1 addition & 1 deletion mountpoint-s3/scripts/fio/create/create_files_1000.fio
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
create_on_open=1
create_only=1
nrfiles=100
ioengine=filecreate
fallocate=none
Expand Down
2 changes: 1 addition & 1 deletion mountpoint-s3/scripts/fio/create/create_files_10000.fio
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
create_on_open=1
create_only=1
nrfiles=1000
ioengine=filecreate
fallocate=none
Expand Down
2 changes: 1 addition & 1 deletion mountpoint-s3/scripts/fio/create/create_files_100000.fio
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
create_on_open=1
create_only=1
nrfiles=10000
ioengine=filecreate
fallocate=none
Expand Down

0 comments on commit 8f1660f

Please sign in to comment.