Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 22:11:21 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern init_main.c kern_proc.c kern_resource.c kern_synch.c src/sys/sys proc.h
Message-ID:  <200801102211.m0AMBLTk018016@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2008-01-10 22:11:21 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             init_main.c kern_proc.c kern_resource.c 
                         kern_synch.c 
    sys/sys              proc.h 
  Log:
  Don't zero td_runtime when billing thread CPU usage to the process;
  maintain a separate td_incruntime to hold unbilled CPU usage for
  the thread that has the previous properties of td_runtime.
  
  When thread information is requested using the thread monitoring
  sysctls, export thread td_runtime instead of process rusage runtime
  in kinfo_proc.
  
  This restores the display of individual ithread and other kernel
  thread CPU usage since inception in ps -H and top -SH, as well for
  libthr user threads, valuable debugging information lost with the
  move to try kthreads since they are no longer independent processes.
  
  There is universal agreement that we should rewrite the process and
  thread export sysctls, but this commit gets things going a bit
  better in the mean time.  Likewise, there are resevations about the
  continued validity of statclock given the speed of modern processors.
  
  Reviewed by:            attilio, emaste, jhb, julian
  
  Revision  Changes    Path
  1.290     +4 -0      src/sys/kern/init_main.c
  1.261     +13 -7     src/sys/kern/kern_proc.c
  1.182     +3 -3      src/sys/kern/kern_resource.c
  1.305     +4 -2      src/sys/kern/kern_synch.c
  1.499     +1 -0      src/sys/sys/proc.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801102211.m0AMBLTk018016>