|
53 | 53 | # tune filesystem mount options, https://www.kernel.org/doc/Documentation/filesystems/ext4.txt |
54 | 54 | # commit=999999, effectively disables automatic syncing to disk (default is every 5 seconds) |
55 | 55 | # nobarrier/barrier=0, loosen data consistency on system crash (no negative impact to empheral CI nodes) |
56 | | - sudo mount -o remount,nodiscard,commit=999999,barrier=0 / |
57 | | - sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt |
| 56 | + sudo mount -o remount,nodiscard,commit=999999,barrier=0 / || true |
| 57 | + sudo mount -o remount,nodiscard,commit=999999,barrier=0 /mnt || true |
58 | 58 | # disable discard/trim at device level since remount with nodiscard doesn't seem to be effective |
59 | 59 | # https://www.spinics.net/lists/linux-ide/msg52562.html |
60 | 60 | for i in /sys/block/sd*/queue/discard_max_bytes; do |
|
77 | 77 | # stop Azure Linux agent to save RAM |
78 | 78 | sudo systemctl stop walinuxagent.service || true |
79 | 79 | |
80 | | - # enable docker experimental mode which is |
81 | | - # required for using "docker build --squash" / "-Ddocker.squash=true" |
82 | | - daemon_json="$(sudo cat /etc/docker/daemon.json | jq '.experimental = true')" |
83 | | - echo "$daemon_json" | sudo tee /etc/docker/daemon.json |
84 | | - # restart docker daemon |
85 | | - sudo systemctl restart docker |
86 | 80 | echo '::endgroup::' |
87 | 81 |
|
88 | 82 | # show memory |
|
0 commit comments