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

4 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. OpenStack Cloud Computing Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/open-stack-online-training-224.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, IT Support, Corporate Training institute in India - +919000444287 - +917386622889 - Visakhapatnam,Hyderabad OpenStack Cloud Computing Online Training, OpenStack Cloud Computing Training, OpenStack Cloud Computing, OpenStack Cloud Computing Online Training| OpenStack Cloud Computing Training| OpenStack Cloud Computing| "Courses at 21st Century Software Solutions
    Talend Online Training -Hyperion Online Training - IBM Unica Online Training - Siteminder Online Training - SharePoint Online Training - Informatica Online Training - SalesForce Online Training - Many more… | Call Us +917386622889 - +919000444287 - contact@21cssindia.com
    Visit: http://www.21cssindia.com/courses.html"

    ReplyDelete
  3. interesting piece of information, I had come to know about your web-page from my friend pramod, jaipur,i have read atleast eight posts of yours by now, and let me tell you, your blog gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a million once again, Regards Regards devops training in hyderabad

    ReplyDelete
  4. 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