[lkml]   [2012]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] on general object IDs again
On Wed, Jan 11, 2012 at 12:25:04PM -0500, KOSAKI Motohiro wrote:
> > In turn doing everything in a manner of syscall "compare resources of two pids"
> > gives up very slow speed because we will have to compare every pid resources
> > with every other pids we're checkpointing.
> Could you please write down pseudo code of your userland compare logic? When
> and why do you need? I still don't like this idea, but maybe I need to
> understand your
> requerement before putting negative comments.

Hi Kosaki,

the idea on user-space is something like

- collect all pids to dump
- collect IDs for every pid
- sort the IDs obtained
- find the same IDs (which will be kind of find intersections in a sets of IDs) and
set up CLONE_ flags on restore procedure as appropriate (for example if
GEN_OBJ_ID_VM IDs for two or more tasks are the same we need to use CLONE_VM
at restore time, and so on).


 \ /
  Last update: 2012-01-11 19:03    [W:0.046 / U:2.896 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site