Batch tested the patched kernel and achieved 99+% success rate on CLI/console initiated Hibernate/Resumes across all ARM supported AWS EC2 instance families, C6g(d)(n), C7g(d), M6g(d), M7g(d), R6g(d), R7g(d), T4g. (4,175/4,200 test runs).
Manually tested instance initiated hibernation successfully:
High level testing details:
1.) Spun up instance with patched AMI + this hibinit-agent patch (https://git.launchpad.net/~secarola/ubuntu/+source/ec2-hibinit-agent/commit/?h=applied/ubuntu/jammy-devel&id=034ec3ffdc8cbd9d319aa5815f02d60ec3e27f93).
2.) Connected to the instance and started up bash script "heartbeat" on the instance, writing to text file every second with new timestamp.
#!/bin/bash
while :
do
echo $(date) > text.txt
sleep 1
done
3.) Hibernated instance through the GuestOS.
sudo swapon --priority=32767 /swap-hibinit
sudo systemctl hibernate
4.) Confirmed that hosting environments reported the instance as Hibernated and not shutdown.
4.) Resumed instance through the AWS CLI
5.) Connected to the instance and confirmed the date was still being written to the text file
cat text.txt
Batch tested the patched kernel and achieved 99+% success rate on CLI/console initiated Hibernate/Resumes across all ARM supported AWS EC2 instance families, C6g(d)(n), C7g(d), M6g(d), M7g(d), R6g(d), R7g(d), T4g. (4,175/4,200 test runs).
High level testing details: /git.launchpad. net/~secarola/ ubuntu/ +source/ ec2-hibinit- agent/commit/ ?h=applied/ ubuntu/ jammy-devel& id=034ec3ffdc8c bd9d319aa5815f0 2d60ec3e27f93).
1.) Spun up instance with patched AMI + this hibinit-agent patch (https:/
2.) Started up bashscript "heartbeat" on the instance, pushing timestamp to dynamoDB table every 30 seconds.
3.) Hibernated instance through the AWS CLI
4.) Resumed instance through the AWS CLI
5.) Confirmed "heartbeat" updates to dynamoDB table after resume
6.) Repeated once more.
Manually tested instance initiated hibernation successfully: /git.launchpad. net/~secarola/ ubuntu/ +source/ ec2-hibinit- agent/commit/ ?h=applied/ ubuntu/ jammy-devel& id=034ec3ffdc8c bd9d319aa5815f0 2d60ec3e27f93).
High level testing details:
1.) Spun up instance with patched AMI + this hibinit-agent patch (https:/
2.) Connected to the instance and started up bash script "heartbeat" on the instance, writing to text file every second with new timestamp.
#!/bin/bash
while :
do
echo $(date) > text.txt
sleep 1
done
3.) Hibernated instance through the GuestOS.
sudo swapon --priority=32767 /swap-hibinit
sudo systemctl hibernate
4.) Confirmed that hosting environments reported the instance as Hibernated and not shutdown.
4.) Resumed instance through the AWS CLI
5.) Connected to the instance and confirmed the date was still being written to the text file
cat text.txt