Given a page, How to get the NUMA node id of this page

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Aug 29 16:08:58 EDT 2013


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130829/1ccbd13e/attachment.bin 


More information about the Kernelnewbies mailing list