Re: [PATCH] capabilities: Introduce CAP_RESTORE
From: Jann Horn
Date: Tue May 26 2020 - 15:52:09 EST
On Tue, May 26, 2020 at 9:01 PM Christine Flood <chf@xxxxxxxxxx> wrote:
> Java applications suffer from slow startup times due to dynamic class loading and warming up the Just In Time compilers. Not all Java users have root access on their machines. Enabling CRIU in user mode solves this problem for us. We are about to release a user library that will allow check pointing Java from within Java. Having to run this as root would severely limit its utility.
Have you looked into whether it would be practical to restore the
saved process state with different PIDs, and then fix up all places
that might have stored the old PIDs? As long as all threads are
managed by the JVM, that might be doable, right?
If you did that, you would also solve the problem of not being able to
start two copies of the same image (because their PIDs would collide)
or randomly not being able to start processes (because their PIDs
collide with other existing things).