Wednesday, June 25, 2014

using CRIU to checkpoint a kernel build

CRIU stands for Checkpoint/Restart in Userspace [1]. As the criu package should be landing in utopic soon, and I wanted to test drive it to see how it handles.

I thought of an interesting example of being in the middle of a linux kernel build and a security update needing to be installed and the machine rebooted. While most of us could probably just reboot and rebuild, why not checkpoint it and save the progress; then restore after the system update?  I admit its not the most useful example; but it is pretty cool nonetheless.
sudo apt-get install criu
# start build; save the PID for later
cd linux; make clean; make defconfig
make & echo $! > ~/make.pid
# enter a clean directory that isn't tmp and dump state
mkdir ~/cr-build && cd $_
sudo criu dump --shell-job -t $(cat ~/make.pid)
# install and reboot machine
# restore your build
cd ~/cr-build
sudo criu restore --shell-job -t $(cat ~/make.pid)

And you're building again!
  1. http://criu.org/Main_Page

10 comments:

  1. Open Stack Cloud Computing Key words: Open stack training , Open stack online Training , Open stack cloud computing training , open stack cloud computing online training ,Open stack Corporate Training,Best Open stack training, Open stack cloud computing training, Expert Open stack Training , Expert Openstack Cloud Computing Training
    http://www.21cssindia.com/courses/open-stack-online-training-224.html
    Introduction – Virtualization Overview – Software as a service – platform as a service –
    Infrastructure as a Service – Openstack – History and Overview – Q&A – OpenStack Architecture DeepDive – Components Overview – Keystone architecture – Nova architecture – Glance architecture – Quantum architecture – Deploying OpenStack – Step by Step through CLI

    ReplyDelete
  2. Now a days cloud based technologies are getting popular like wild fire. So as the training programs related to these technologies. Thanks for providing an useful information.
    Cloud Computing Training

    ReplyDelete
  3. I learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from python training in btm layout experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Python. Really worth trying instant approval blog commenting sites

    ReplyDelete

  4. your post is really very interesting to read. I got Very valuable information from your blog.
    python training institute in BTM layout

    ReplyDelete
  5. Wonderful post!!Thank you for sharing this info with us.
    Data Science Online Training

    ReplyDelete
  6. Attention board world kitchen. Chance vote week produce note huge. Still couple wide hold all air citizen.news today live

    ReplyDelete