Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hijack: add a quick write test to monitor storage perf. after each test
We've experienced a fair number of test failures that seem to point to storage performance issues: thesofproject/linux#3387 thesofproject/linux#3669 This (temporary?) addition runs a quick write test after each audio test to monitor storage sanity. As a bonus feature the "sync" could help us collect more logs. On our (slowest) BYT devices the test adds 3s per test; much less on newer devices. Sample output: ``` 2022-05-24 23:20:41 UTC [INFO] pkill -TERM sof-logger 2022-05-24 23:20:42 UTC [INFO] nlines=1132 /home/mherber2/SOF/sof-test/logs/BOGUS-check-playback/2022-05-24-16:20:35-3288/slogger.txt + timeout -s CONT 5 sudo sync real 0m0.062s user 0m0.005s sys 0m0.019s + timeout -s CONT 10 dd if=/dev/zero of=/home/mherber2/HD_TEST_DELETE_ME bs=1M count=200 conv=fsync 200+0 records in 200+0 records out 209715200 bytes (210 MB, 200 MiB) copied, 2.0893 s, 100 MB/s + timeout -s CONT 5 sudo sync real 0m0.037s user 0m0.004s sys 0m0.018s 2022-05-24 23:20:44 UTC [INFO] Test Result: PASS! ``` Signed-off-by: Marc Herbert <[email protected]>
- Loading branch information