LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-16-2006, 09:55 AM   #1
Karthikeyan.C
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
checkpointing a process using linux kernel programming


I am doing a project in linux kernel programming in which i want to checkpoint a process which is running at different interval of time and restoring it when needed please if any one has any idea about how to go about in this project please help me in doing my project.
 
Old 05-18-2006, 10:41 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
Well, we don't want to tell you how to do it, but you know, Linux does this sort of thing on a grand scale when it "suspends" .. as when a laptop user closes the lid. That should give you some good code to study.
 
Old 05-23-2006, 09:20 AM   #3
Karthikeyan.C
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
can any one tell me how to add a new file iin the system files that is the kernel code and compile it
 
Old 05-23-2006, 03:00 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
That might be a bit high-tech for here. But most such things are handled using kernel modules.

Also... "checkpoint / restart" is often something that an application does for itself, perhaps in response to a signal. The application saves its own state into some file, and knows how to restore that state later.

This approach has the advantage of being a "designed-in" characteristic of the application itself. The application, upon receiving the order to checkpoint, brings itself to a good stopping-place, then saves the checkpoint information. Should it then need to restart from that checkpoint, it once again brings itself to that same "good stopping-place," then restores (and validates!) the checkpoint image. It does this with the one advantage that the kernel does not have: the application knows very intimately what it is doing and why. The kernel doesn't. The kernel must view "every application" as basically a generic thing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Kernel Module Programming astronaut3000 Linux - Software 1 09-23-2005 02:02 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
linux kernel programming sonika_singhi Programming 9 12-22-2004 04:59 PM
linux kernel programming poojavarshneya Red Hat 2 09-19-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration