process-migration

Can you freeze a C/C++ process and continue it on a different host?

半城伤御伤魂 提交于 2019-12-21 03:48:31
问题 I was wondering if it is possible to generate a "core" file, copy if to another machine and then continue execution of the a core file on that machine? I have seen the gcore utility that will make a core file from a running process. But I do not think gdb can continue execution based on a core file. Is there any way to just dump the heap/stack and and restore those at a later point? 回答1: On modern systems, not from a core file, no you can't. For freezing and restoring an individual process on

Migrating a running process/thread to different core

寵の児 提交于 2019-12-12 02:26:16
问题 Is there any way to migrate a currently running process to a different cpu core by triggering the migration from another process. Here is what i am trying to do in more detail. I am working on a heterogeneous processor system. I have a multi-threaded application which runs on the system. I want to migrate one of the thread to different cores (with different capabilities) whenever my manager process decides. Can my manager process trigger the thread migration for the particular tid of the

Finding Docker container processes? (from host point of view)

我只是一个虾纸丫 提交于 2019-11-28 17:01:37
I am doing some tests on docker and containers and I was wondering: Is there a method I can use to find all process associated with a docker container by its name or ID from the host point of view. After all, at the end of the day a container is set of virtualized processes. You can use docker top command. This command lists all processes running within your container. For instance this command on a single process container on my box displays: UID PID PPID C STIME TTY TIME CMD root 14097 13930 0 23:17 pts/6 00:00:00 /bin/bash All methods mentioned by others are also possible to use but this