The purpose of this agent is to create a setup for an instance to support hibernation feature. The setup is created only on supported instance types. Upon startup, it checks for sufficient swap space to allow hibernate and fails if it's present but there's not enough of it. If there's no swap space, it launches a background thread to create it and touch all of its blocks to make sure that EBS volumes are pre-warmed if configured. This is configurable. It updates the offset of the swap file in the kernel using SNAPSHOT_SET_SWAP_AREA ioctl. It updates the resume offset and resume device in grub file.
Features
- Install Development Tools in Red Hat to build the RPM package
- Install Development Tools in Suse Linux to build the RPM package
- Install required build packages for ec2-hibernate-linux-agent
- You will find the RPM package generated at ~/rpmbuild/RPMS/noarch/ directory
- It updates the resume offset and resume device in grub file
- It updates the offset of the swap file in the kernel using SNAPSHOT_SET_SWAP_AREA ioctl
License
Apache License V2.0Follow The Amazon Linux hibernation agent
Other Useful Business Software
Easily Host LLMs and Web Apps on Cloud Run
Run frontend and backend services, batch jobs, host LLMs, and queue processing workloads without the need to manage infrastructure. Cloud Run gives you on-demand GPU access for hosting LLMs and running real-time AI—with 5-second cold starts and automatic scale-to-zero so you only pay for actual usage. New customers get $300 in free credit to start.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of The Amazon Linux hibernation agent!