[CRIU] [criu]how to keep cpuset affinity of process on restore?

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 30 06:43:17 PDT 2016


On Thu, Jun 30, 2016 at 05:11:22PM +0800, Dengguangxing wrote:
> Hi all,
> 	
> 	I was wondering if I start a process and set cpu affinity to it.
> 		taskset -pc 2 $pid
> 	and then do criu dump and restore to this process.
> 	can I keep this cpu affinity on restore? what arg do I need to keep this.

iirc we don't save affinity. While it's fine to keep affinity
on local process, it's unclean how to handle process migration
into the machine with different cpu number. Should we start
failing if affinity doesn't match?


More information about the CRIU mailing list