-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fio disk performance test CS workload
With new integrity file-system changes, we need a way to ensure disk performance is consistent across releases of Confidential Space. Followed instructions at: https://cloud.google.com/compute/docs/disks/benchmarking-pd-performance#existing-disk Separate change to automate this test.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# From current directory: | ||
# gcloud builds submit --tag us-west1-docker.pkg.dev/confidential-space-images-dev/cs-integ-test-images/diskperf:latest --project confidential-space-images-dev | ||
# Example metadata to configure fio: | ||
# --metadata="^~^tee-image-reference=us-west1-docker.pkg.dev/confidential-space-images-dev/cs-integ-test-images/diskperf:latest~tee-restart-policy=Always~tee-cmd=[\"/jobs/default.fio\", \"--size=50G\", \"--numjobs=1\"]"~tee-container-log-redirect=true | ||
FROM alpine | ||
|
||
RUN apk add --no-cache fio | ||
COPY jobs /jobs | ||
|
||
LABEL "tee.launch_policy.log_redirect"="always" | ||
LABEL "tee.launch_policy.allow_cmd_override"="true" | ||
|
||
ENTRYPOINT ["fio"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
; https://cloud.google.com/compute/docs/disks/benchmarking-pd-performance#existing-disk | ||
[global] | ||
time_based | ||
runtime=60s | ||
ramp_time=2s | ||
ioengine=libaio | ||
direct=1 | ||
verify=0 | ||
group_reporting=1 | ||
|
||
[write_throughput] | ||
#numjobs=16 | ||
bs=1M | ||
iodepth=64 | ||
rw=write | ||
iodepth_batch_submit=64 | ||
iodepth_batch_complete_max=64 | ||
|
||
[write_iops] | ||
bs=4K | ||
iodepth=256 | ||
rw=randwrite | ||
iodepth_batch_submit=256 | ||
iodepth_batch_complete_max=256 | ||
|
||
[read_throughput] | ||
#numjobs=16 | ||
bs=1M | ||
iodepth=64 | ||
rw=read | ||
iodepth_batch_submit=64 | ||
iodepth_batch_complete_max=64 | ||
|
||
[read_iops] | ||
bs=4K | ||
iodepth=256 | ||
rw=randread | ||
iodepth_batch_submit=256 | ||
iodepth_batch_complete_max=256 |