Re: Dissociating process from bin's filesystem

From: Chris Friesen (cfriesen@nortelnetworks.com)
Date: Thu Apr 25 2002 - 12:52:46 EST


Rob Landley wrote:
>
> On Wednesday 24 April 2002 10:47 pm, Eric Buddington wrote:
> > Is there any way to dissociate a process from its on-disk binary?
>
> Sure. Fire up an instance of ramfs, copy the file there (and its associated
> libraries), chroot and exec the copy on ramfs. Sort of like initrd in
> reverse. :)

If you're writing the binary in question, you could use mlockall() which ensures
that you won't need to page in bits of the binary from disk. I don't know if
the filesystem considers this totally dissociated though, but it might be good
enough for what you want.

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:11 EST