On Fri, 30 Aug 2013 02:43:00 +0800, ajay saini said:
> I am working on a checkpoint/Restart Linux kernel module.

Have you looked at the already existing checkpoint/restart support?

(and C/R is a lot harder to get right than you think - turns out you
need all sorts of infrastructure.  The various namespaces support, for
instance, are to a large degree to allow C/R to work right.  For example,
you need PID namespaces so you can properly do C/R of a process that has
done a getpid() call - because you need to restart it with the same PID
that it had at checkpoint time.

in init/Kconfig:

config CHECKPOINT_RESTORE
        bool "Checkpoint/restore support" if EXPERT
        default n
        help
          Enables additional kernel features in a sake of checkpoint/restore.
          In particular it adds auxiliary prctl codes to setup process text,
          data and heap segment sizes, and a few additional /proc filesystem
          entries.

          If unsure, say N here.

Enjoy, and don't re-invent the wheel.

Attachment: pgplC3WDJ8Yzg.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to