1. 07 Feb, 2012 22 commits
  2. 03 Feb, 2012 7 commits
  3. 02 Feb, 2012 7 commits
  4. 01 Feb, 2012 4 commits
    • Pavel Emelyanov's avatar
      files: Fix memory overflow checks for shared files. · a038cbd9
      Pavel Emelyanov authored
      Otherwise we skip shared segment
      overflow on big scales and tests sporadically fail.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      a038cbd9
    • Pavel Emelyanov's avatar
      zdtm: Add sleep() to zombie00 · 153c033d
      Pavel Emelyanov authored
      When creating zombies we must wait for them to appear to test that we do
      support zombies, but not some transient state. But the thing is that we
      cannot use wait() or any other synchronous call here, thus we have to
      suck and use sleep(1) :(
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      153c033d
    • Pavel Emelyanov's avatar
      ptrace: Kill task with -9 explicitly when detaching · 766a42e3
      Pavel Emelyanov authored
      Strange fact, but a task seems to live for some time after PTRACE_KILL :(
      Don't know yet why this happens, I'm poking Oleg on that, but this one makes
      it die right at once.
      
      The streaming file read test passes after this.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      766a42e3
    • Cyrill Gorcunov's avatar
      ctrools: Rewrite task/threads stopping engine is back · e6160516
      Cyrill Gorcunov authored
      This commit brings the former "Rewrite task/threads stopping engine"
      commit back. Handling it separately is too complex so better try
      to handle it in-place.
      
      Note some tests might fault, it's expected.
      ---
      
      Stopping tasks with STOP and proceeding with SEIZE is actually excessive --
      the SEIZE if enough. Moreover, just killing a task with STOP is also racy,
      since task should be given some time to come to sleep before its proc
      can be parsed.
      
      Rewrite all this code to SEIZE task and all its threads from the very beginning.
      
      With this we can distinguish stopped task state and migrate it properly (not
      supported now, need to implement).
      
      This thing however has one BIG problem -- after we SEIZE-d a task we should
      seize
      it's threads, but we should do it in a loop -- reading /proc/pid/task and
      seizing
      them again and again, until the contents of this dir stops changing (not done
      now).
      
      Besides, after we seized a task and all its threads we cannot scan it's children
      list once -- task can get reparented to init and any task's child can call clone
      with CLONE_PARENT flag thus repopulating the children list of the already seized
      task (not done also)
      
      This patch is ugly, yes, but splitting it doesn't help to review it much, sorry
      :(
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      e6160516