LWN.net Logo

Process migration

Process migration

Posted Nov 6, 2007 19:51 UTC (Tue) by i3839 (guest, #31386)
Parent article: Process IDs in a multi-namespace world

Globally unique PIDs seem to solve the whole problem. Only counter argument I know off is that
it could make migrating processes harder. But if the range of PIDs can be configured, the
systems where processes are migrated to and from can be configured in such way that there's no
PID collision.


(Log in to post comments)

Process migration

Posted Nov 8, 2007 8:46 UTC (Thu) by alexl (subscriber, #19068) [Link]

Why not just have two kinds of pids, namespace local and global. 

Local pids look like current pids, global ones have the high bit set. Each process can now be
"named" in two ways (namespace relative or absolute). 

Clearly some things (like kill(2)) have to verify that a pid referenced through a global
identifier is in the same namespace (or has right to affect the other namespace), but the
global id is useful for things like the robust futexes.

Again - what if different systems are involved ?

Posted Nov 9, 2007 22:31 UTC (Fri) by khim (subscriber, #9252) [Link]

Suppose I have 400'000-500'000 computers (Google actually does) and I want to use globally unique IDs. And one bit to separate global vs local PIDs. I can only have ~4000 processes on one computer! In all containers! Combined! Plus I'll need complex system to keep all these tables around somewhere and do a lot of other things - just to make it possible to do some insane things...

Looks like bad tradeoff to me...

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds