about send task
Hi people , i am thinking about process migration. And the idea to transfer a simples task is:
Thread1 in NODE A <-------TCP CONN-----------> Thread2 in NODE B
__________________
__________________
- select task by
-verify the availability of these virtual addresses.
if it busy , free the memory of these virtual addresses.
- get structs mm , vma , task , zone , page
and copy all buffers existing in the
-alloc all the buffer of task.
- send all buffers to
-re-build structs (alloc_task_struct,page_zone,pte_page...)
-INIT_LIST_HEAD()
-wake_up_process()-send all virtual addresses to thread2
Please , i´d like some comments/ideas about this.
thanks
Breno
Re: about send task[txt]
Sorry , the body of this mail was not good
please , see the .txt file
thanks
the idea to transfer a simples task is:
Thread1 in NODE A <-------TCP CONN-----------> Thread2 in NODE B
__________________ __________________
- select task by pid -verify the availability of these virtual addresses.
if it busy , free the memory of these virtual addresses.
- get structs mm , vma , task , zone , page
and copy all buffers existing in the
memory. -alloc all the buffer of task.
- send all buffers to thread2 -re-build structs (alloc_task_struct,page_zone,pte_page...)
-INIT_LIST_HEAD() -wake_up_process()
-send all virtual addresses to thread2
Breno
Quoted 5 lines · Breno
if it busy , free the memory of these virtual addresses.
- get structs mm , vma , task , zone , page
and copy all buffers existing in thePlease , i´d like some comments/ideas about this.
1) You forgot little details like "current working directory", "open files", "file locks", "open TCP connections" and all the other process-state issues. These turn out to be the real problems in migration.
2) http://www.mosix.org - it's not as easy as it looks.