1. 22 Dec, 2015 4 commits
  2. 21 Dec, 2015 15 commits
  3. 18 Dec, 2015 13 commits
  4. 17 Dec, 2015 1 commit
  5. 16 Dec, 2015 7 commits
    • Dmitry Safonov's avatar
      zdtm: Change oom_score_adj score value · d58f6b70
      Dmitry Safonov authored
      ... so it can be used from non-root:
      (Higher value means it would be killed earlier so everyone should be
      possible to change his value to bigger than zero)
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      d58f6b70
    • Stanislav Kinsburskiy's avatar
      files: check fd flags after restore · 6663cae7
      Stanislav Kinsburskiy authored
      System call sys_fcntl() in _some_ kernels can silently drop some flags during
      set and return success code.
      This patch adds double check, that all the fd flags were really set.
      Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      6663cae7
    • Evgeniy Akimov's avatar
      restore: restore freezer cgroup state · 8b04551c
      Evgeniy Akimov authored
      Patch restores freezer cgroup state between finalize_restore stages.
      It should be done after first stage because we cannot unmap restorer blob
      from frozen process, and before second stage because we must freeze processes
      before they continue run.
      We also need to move fini_cgroup between these stages to provide freezer
      cgroup state restorer access to cgroup mount directories.
      Error handlers contains fini_cgroup, so we are sure that fini_cgroup call
      won't be missed.
      
      Patch restores state only for one freezer cgroup from --freeze-cgroup option,
      not all states from whole hierarchy, because CRIU supports checkpoint from
      freezer cgroup hierarchy only with THAWED state, except root cgroup from
      --freeze-cgroup option.
      Signed-off-by: 's avatarEvgeniy Akimov <geka666@gmail.com>
      Signed-off-by: 's avatarEugene Batalov <eabatalov89@gmail.com>
      Acked-by: 's avatarAndrew Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      8b04551c
    • Evgeniy Akimov's avatar
      restore: split finalize_restore into two stages · b3e5cf75
      Evgeniy Akimov authored
      First stage of finalize_restore unmaps the restorer blob, second stage
      detaches from processes. After first stage process tree is completely
      restored and processes are ready to continue run through sigreturn.
      This splitting allows us to execute something between these stages (e.g.
      restore freezer cgroup state).
      Signed-off-by: 's avatarEvgeniy Akimov <geka666@gmail.com>
      Signed-off-by: 's avatarEugene Batalov <eabatalov89@gmail.com>
      Acked-by: 's avatarAndrew Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      b3e5cf75
    • Evgeniy Akimov's avatar
      cgroups: save freezer state during dump · 34662a68
      Evgeniy Akimov authored
      CRIU sets freezer.state to "THAWED" during process tree dumping. That's why
      we can't simply save freezer.state file contents to cgroups image. New
      special function get_real_freezer_state() returns freezer cgroup state
      observed before CRIU dumping start. Patch puts its return value to dump file.
      Signed-off-by: 's avatarEvgeniy Akimov <geka666@gmail.com>
      Signed-off-by: 's avatarEugene Batalov <eabatalov89@gmail.com>
      Acked-by: 's avatarAndrew Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      34662a68
    • Pavel Emelyanov's avatar
      crit: The 'mems' explorer · 25a978d3
      Pavel Emelyanov authored
      This one prints the /proc/pid/maps-like output, but with slightly more
      details. Like this
      
      1
      	exe                                     /zdtm/live/static/maps00
      	00400000-00406000                   r-x /zdtm/live/static/maps00
      	00605000-00606000                   r-- /zdtm/live/static/maps00 + 0x5000
      	00606000-00607000                   rw- /zdtm/live/static/maps00 + 0x6000
      	7f4037845000-7f40379f9000           r-x /lib64/libc.so.6
      	7f40379f9000-7f4037bf8000           --- /lib64/libc.so.6 + 0x1b4000
      	7f4037bf8000-7f4037bfc000           r-- /lib64/libc.so.6 + 0x1b3000
      	7f4037bfc000-7f4037bfe000           rw- /lib64/libc.so.6 + 0x1b7000
      	7f4037bfe000-7f4037c03000           rw-
      	7f4037c03000-7f4037c23000           r-x /lib64/ld-linux-x86-64.so.2
      	7f4037e1e000-7f4037e22000           rw-
      	7f4037e22000-7f4037e23000           r-- /lib64/ld-linux-x86-64.so.2 + 0x1f000
      	7f4037e23000-7f4037e24000           rw- /lib64/ld-linux-x86-64.so.2 + 0x20000
      	7f4037e24000-7f4037e25000           rw-
      	7fff34652000-7fff34699000           rw- [stack?]
      	7fff346e2000-7fff346e4000           r--
      	7fff346e4000-7fff346e6000           r-x [vdso]
      	ffffffffff600000-ffffffffff601000   r-x [vsyscall] *
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      25a978d3
    • Pavel Emelyanov's avatar
      crit: The 'fds' explorer · 6c8f7bbb
      Pavel Emelyanov authored
      Shows files opened by tasks. The output is like
      
      1
      	      0: /dev/null
      	      1: /zdtm/live/static/session00.outns
      	      2: /zdtm/live/static/session00.outns
      	    cwd: /zdtm/live/static
      	   root: /
      6
      	      0: /dev/null
      	      1: /zdtm/live/static/session00.out.inprogress
      	      2: /zdtm/live/static/session00.out.inprogress
      	      3: pipe[18305]
      	    cwd: /zdtm/live/static
      	   root: /
      10
      	      0: /dev/null
      	      1: /zdtm/live/static/session00.out.inprogress
      	      2: /zdtm/live/static/session00.out.inprogress
      	      3: pipe[18308]
      	    cwd: /zdtm/live/static
      	   root: /
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Appreciated-by: avagin@openvz.org
      6c8f7bbb