Re: [RFC v5][PATCH 2/8] General infrastructure for checkpoint restart

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Hansen
Date: Monday, September 15, 2008 - 12:13 pm

On Mon, 2008-09-15 at 14:52 -0400, Oren Laadan wrote:
...

OK, that's fair enough.  But, can we document it as such?  "Only headers
and things of known, static sizes can go in here.  We don't use
kmalloc() instead of this because..."


Yes, it does mean that there is a bug because someone either made a
structure bigger, PAGE_SIZE smaller, or a call path got deeper than we
expected.  I'm just having visions of the email hitting my inbox in 18
months. :)

The structures are sized consistently across all architectures and
configurations.  However, PAGE_SIZE and the size of that buffer are not.
The buffer will be 8k on x86, but 128k on most ppc64 configurations.

Can we at least make it sized in numbers of bytes rather than pages?
Also, please remember that using kmalloc() buys you lots of fun stuff on
top of get_free_pages(), like redzones and easier debugging.

-- Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Oren Laadan, (Sat Sep 13, 4:05 pm)
[RFC v5][PATCH 3/8] x86 support for checkpoint/restart, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 4/8] Dump memory address space, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 5/8] Restore memory address space, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 7/8] Infrastructure for shared objects, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 8/8] Dump open file descriptors, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Sat Sep 13, 4:06 pm)
[RFC v5][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Sat Sep 13, 4:22 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Bastian Blank, (Sun Sep 14, 2:51 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Oren Laadan, (Sun Sep 14, 8:40 am)
Re: [RFC v5][PATCH 2/8] General infrastructure for checkpo ..., Dave Hansen, (Mon Sep 15, 12:13 pm)
Re: [RFC v5][PATCH 5/8] Restore memory address space, Dave Hansen, (Mon Sep 15, 12:14 pm)
Re: [RFC v5][PATCH 3/8] x86 support for checkpoint/restart, Serge E. Hallyn, (Mon Sep 15, 2:31 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Dave Hansen, (Tue Sep 16, 8:54 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Dave Hansen, (Tue Sep 16, 9:55 am)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects, Serge E. Hallyn, (Tue Sep 16, 1:54 pm)
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects, Serge E. Hallyn, (Tue Sep 16, 3:09 pm)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Serge E. Hallyn, (Tue Sep 16, 4:03 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Serge E. Hallyn, (Tue Sep 16, 4:08 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Oren Laadan, (Tue Sep 16, 5:11 pm)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Serge E. Hallyn, (Tue Sep 16, 9:56 pm)
Re: [RFC v5][PATCH 4/8] Dump memory address space, MinChan Kim, (Tue Sep 16, 11:48 pm)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Serge E. Hallyn, (Wed Sep 17, 7:16 am)
Re: [RFC v5][PATCH 8/8] Dump open file descriptors, Dave Hansen, (Mon Sep 22, 8:31 am)
Re: [RFC v5][PATCH 9/9] Restore open file descriprtors, Dave Hansen, (Mon Sep 22, 9:02 am)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Serge E. Hallyn, (Wed Sep 24, 2:42 pm)
Re: [RFC v5][PATCH 0/9] Kernel based checkpoint/restart, Cedric Le Goater, (Thu Sep 25, 5:58 am)