1. 28 6月, 2006 10 次提交
  2. 27 6月, 2006 25 次提交
  3. 26 6月, 2006 5 次提交
    • L
      Revert "swsusp special saveable pages support" commits · 3448097f
      Linus Torvalds 提交于
      This reverts commits
      
        3e3318de [PATCH] swsusp: x86_64 mark special saveable/unsaveable pages
        b6370d96 [PATCH] swsusp: i386 mark special saveable/unsaveable pages
        ce4ab001 [PATCH] swsusp: add architecture special saveable pages support
      
      because not only do they apparently cause page faults on x86, the
      infrastructure doesn't compile on powerpc.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3448097f
    • L
      Fix PM_TRACE dependency: works only on 32-bit x86 for now · 72cf2709
      Linus Torvalds 提交于
      Not that x86-64 and other architecture support should be difficult to
      add (trivial fixups to the data format and add the proper linker script
      entry).
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      72cf2709
    • K
      [PATCH] pacct: none-delayed process accounting accumulation · 77787bfb
      KaiGai Kohei 提交于
      In current 2.6.17 implementation, signal_struct refered from task_struct is
      used for per-process data structure.  The pacct facility also uses it as a
      per-process data structure to store stime, utime, minflt, majflt.  But those
      members are saved in __exit_signal().  It's too late.
      
      For example, if some threads exits at same time, pacct facility has a
      possibility to drop accountings for a part of those threads.  (see, the
      following 'The results of original 2.6.17 kernel') I think accounting
      information should be completely collected into the per-process data structure
      before writing out an accounting record.
      
      This patch fixes this matter.  Accumulation of stime, utime, minflt and majflt
      are done before generating accounting record.
      
      [mingo@elte.hu: fix acct_collect() siglock bug found by lockdep]
      Signed-off-by: NKaiGai Kohei <kaigai@ak.jp.nec.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      77787bfb
    • K
      [PATCH] pacct: avoidance to refer the last thread as a representation of the process · f6ec29a4
      KaiGai Kohei 提交于
      When pacct facility generate an 'ac_flag' field in accounting record, it
      refers a task_struct of the thread which died last in the process.  But any
      other task_structs are ignored.
      
      Therefore, pacct facility drops ASU flag even if root-privilege operations are
      used by any other threads except the last one.  In addition, AFORK flag is
      always set when the thread of group-leader didn't die last, although this
      process has called execve() after fork().
      
      We have a same matter in ac_exitcode.  The recorded ac_exitcode is an exit
      code of the last thread in the process.  There is a possibility this exitcode
      is not the group leader's one.
      f6ec29a4
    • K
      [PATCH] pacct: add pacct_struct to fix some pacct bugs. · 0e464814
      KaiGai Kohei 提交于
      The pacct facility need an i/o operation when an accounting record is
      generated.  There is a possibility to wake OOM killer up.  If OOM killer is
      activated, it kills some processes to make them release process memory
      regions.
      
      But acct_process() is called in the killed processes context before calling
      exit_mm(), so those processes cannot release own memory.  In the results, any
      processes stop in this point and it finally cause a system stall.
      0e464814