Skip to content
Snippets Groups Projects
Commit 84726d2e authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Limit I/O read speed for AUM powercut test


Use CGroups blkio to limit the read speed to 1MBps allowing to
remove the USB flash in predictable state even on extremely fast
devices.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 2736fdd6
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,11 @@ run:
- "The booted commit (started with '*') must have ID which we prepare and the initial commit ID should be marked as '(rollback)'"
- "Remove the initial deployment"
- $ sudo ostree admin undeploy 1
- "Add udev rule for limiting the maximal read speed from USB drive to 1MBps."
- $ sudo tee /etc/udev/rules.d/99-usblimit.rules <<"EOF"
- |
>KERNEL=="sd*", SUBSYSTEMS=="usb", ACTION=="add", ENV{DEVTYPE}=="disk", ENV{MAJOR}=="8", RUN+="/bin/sh -c 'echo $env{MAJOR}:$env{MINOR} 1048576 > /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device'"
EOF
- "Reboot the system"
- "Check the current deployment"
- $ sudo ostree admin status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment