[crac] Integrated: Support extra criu flags from the environment

Volker Simonis simonis at openjdk.org
Mon Jul 4 08:06:47 UTC 2022


On Wed, 29 Jun 2022 13:00:59 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> When testing with different `criu` versions or `criu` configurations it might be useful to be able to modify the default  `criu` command line parameters. This PR introduces the new environment variable `CRAC_CRIU_OPTS` which will be interpreted as a space separated list of `criu` flags to be appended to the hard-coded list of command line parameters. E.g.
> 
> 
> $ CRAC_CRIU_OPTS="-v4 -o resume.log -W /tmp/crac" java -XX:CRaCRestoreFrom=/tmp/crac
> 
> 
> This will set the logging level to 4 (thus overriding the hard-coded logging level of 1 for resuming), redirect the log to the file `resume.log` and change `criu`'s working directory (which will contain the log file) to `/tmp/crac`.

This pull request has now been integrated.

Changeset: e20da668
Author:    Volker Simonis <simonis at openjdk.org>
URL:       https://git.openjdk.org/crac/commit/e20da668a9d294e3560adf76e725ad06e3b716c5
Stats:     42 lines in 1 file changed: 31 ins; 6 del; 5 mod

Support extra criu flags from the environment

Reviewed-by: akozlov

-------------

PR: https://git.openjdk.org/crac/pull/26


More information about the crac-dev mailing list