Merge ~sylvain-pineau/plainbox-provider-checkbox:configurable_disk_read_perf into plainbox-provider-checkbox:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: bb244e1d5e55a6c3cbd8bfb914ab93ede3b4826e
Merged at revision: 4ba088e8272fae98bacc9b975897c6263ae4195a
Proposed branch: ~sylvain-pineau/plainbox-provider-checkbox:configurable_disk_read_perf
Merge into: plainbox-provider-checkbox:master
Diff against target: 25 lines (+2/-1)
2 files modified
bin/disk_read_performance_test (+1/-1)
units/disk/jobs.pxu (+1/-0)
Reviewer Review Type Date Requested Status
Jonathan Cave (community) Needs Information
Maciej Kisielewski Approve
Review via email: mp+347753@code.launchpad.net

Description of the change

configurable read speed threshold (mainly to set a lower value on slow IOT systems)

Tested with a threshold of 10000:

$ export DISK_READ_PERF=10000

[...]

-------------[ Running job 28 / 28. Estimated time left: unknown ]--------------
---------------------[ Disk performance test for nvme0n1 ]----------------------
ID: com.canonical.certification::disk/read_performance_nvme0n1
Category: com.canonical.plainbox::disk
... 8< -------------------------------------------------------------------------
Beginning /tmp/nest-a77r2h0v.a3fe81c5d3a15f869860bcadc011746d0dce67ec76c445fe29c1b2d01276ecbc/disk_read_performance_test test for nvme0n1
---------------------------------------------------
INFO: nvme0n1 type is
INFO: : Using 10000 MB/sec as the minimum throughput speed

Beginning hdparm timing runs
---------------------------------------------------
INFO: Iteration 1: Detected speed is 1950.90 MB/sec
INFO: Iteration 2: Detected speed is 1922.77 MB/sec
INFO: Iteration 3: Detected speed is 1971.30 MB/sec
INFO: Iteration 4: Detected speed is 2004.74 MB/sec
INFO: Iteration 5: Detected speed is 1921.95 MB/sec
INFO: Iteration 6: Detected speed is 1982.64 MB/sec
INFO: Iteration 7: Detected speed is 1934.61 MB/sec
INFO: Iteration 8: Detected speed is 1903.95 MB/sec
INFO: Iteration 9: Detected speed is 1945.92 MB/sec
INFO: Iteration 10: Detected speed is 1874.91 MB/sec
INFO: Maximum detected speed is 2004 MB/sec
---------------------------------------------------

FAIL: nvme0n1 Max Speed of 2004 MB/sec is slower than Minimum Buffer Read Speed of 10000 MB/sec
WARNING: One or more disks failed testing!
------------------------------------------------------------------------- >8 ---
Outcome: job failed

To post a comment you must log in.
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Looks good! +1

review: Approve
Revision history for this message
Jonathan Cave (jocave) wrote :

So is 15 MB/sec the exception or the reasonable default performance? If it's the exception should a faster read be used as the default?

review: Needs Information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bin/disk_read_performance_test b/bin/disk_read_performance_test
2index e2a219d..00810a5 100755
3--- a/bin/disk_read_performance_test
4+++ b/bin/disk_read_performance_test
5@@ -4,7 +4,7 @@
6 #
7
8 #Default to a lower bound of 15 MB/s
9-DEFAULT_BUF_READ=15
10+DEFAULT_BUF_READ=${DISK_READ_PERF:-15}
11
12 for disk in $@; do
13
14diff --git a/units/disk/jobs.pxu b/units/disk/jobs.pxu
15index 2ee08d7..3de5532 100644
16--- a/units/disk/jobs.pxu
17+++ b/units/disk/jobs.pxu
18@@ -61,6 +61,7 @@ requires:
19 _summary: Disk performance test for {product_slug}
20 _description: Verify that disk storage performs at or above baseline performance
21 user: root
22+environ: DISK_READ_PERF
23 command: disk_read_performance_test {name}
24
25 unit: template

Subscribers

People subscribed via source and target branches