[CRIU] [PATCH 0/12] Speed up kdat checks
Dmitry Safonov
0x7f454c46 at gmail.com
Tue Apr 25 04:28:30 PDT 2017
2017-04-24 23:06 GMT+03:00 Pavel Emelyanov <xemul at virtuozzo.com>:
> Hi
>
> I've been experimenting with criu restore times recently and the first
> thing I've met was -- criu does a lot of slow checks on start in kerndat.c.
>
> Here's the proposal (not extremely elegant, though) how to fix this.
>
> We have a .config which is created empty on default built, but anyone can
> put data into it and they will result in CONFIG_BLAH_BLAH propagates into
> criu sources.
>
> The proposal is to introduce a set of config options for those kerndat.c
> checks, that are "immutable" for a given node. Examples are in patches :)
>
> Also I've created the scripts/mklocalconfig.sh script that creates a
> .config for local node. To determine some of the options the script runs
> 'criu check --feature foo' command, which is ... not very nice, as one
> need to build criu twice -- once to get "default" criu, then to get
> configured criu.
>
> Suggestions on improving this are very welcome.
So, it'll need recompiling criu according to each node?
Just as a suggestion: have you considered making them
not compile-time, but runtime in /etc/criu.conf or something?
One read and parsing config will not hurt much, as we'll
need to do it anyway for other options.
I don't mind, just node's config file looks like more convenient
way to me.
--
Dmitry
More information about the CRIU
mailing list