Jeff Roberson
1c4bcd050a
- Move rusage from being per-process in struct pstats to per-thread in
...
td_ru. This removes the requirement for per-process synchronization in
statclock() and mi_switch(). This was previously supported by
sched_lock which is going away. All modifications to rusage are now
done in the context of the owning thread. reads proceed without locks.
- Aggregate exiting threads rusage in thread_exit() such that the exiting
thread's rusage is not lost.
- Provide a new routine, rufetch() to fetch an aggregate of all rusage
structures from all threads in a process. This routine must be used
in any place requiring a rusage from a process prior to it's exit. The
exited process's rusage is still available via p_ru.
- Aggregate tick statistics only on demand via rufetch() or when a thread
exits. Tick statistics are kept in the thread and protected by sched_lock
until it exits.
Initial patch by: attilio
Reviewed by: attilio, bde (some objections), arch (mostly silent)
2007-06-01 01:12:45 +00:00
..
2007-04-30 20:26:11 +00:00
2007-05-17 21:20:24 +00:00
2005-08-26 15:27:18 +00:00
2007-05-10 15:58:48 +00:00
2006-12-04 00:41:48 +00:00
2007-05-10 15:58:48 +00:00
2007-05-10 15:58:48 +00:00
2007-05-11 10:20:51 +00:00
2007-05-11 10:20:51 +00:00
2007-02-10 13:59:13 +00:00
2007-05-10 15:58:48 +00:00
2007-03-20 00:36:10 +00:00
2007-05-10 15:58:48 +00:00
2007-02-27 14:45:37 +00:00
2005-07-20 10:30:52 +00:00
2007-02-02 09:39:09 +00:00
2006-12-01 18:37:41 +00:00
2007-05-11 10:20:51 +00:00
2007-05-10 15:58:48 +00:00
2006-02-14 06:36:39 +00:00
2007-05-10 15:58:48 +00:00
2007-05-10 15:58:48 +00:00
2007-03-18 23:05:20 +00:00
2007-05-10 15:58:48 +00:00
2006-12-29 21:59:17 +00:00
2007-05-04 11:15:41 +00:00
2006-06-02 19:59:33 +00:00
2006-01-21 10:44:34 +00:00
2007-05-10 15:58:48 +00:00
2005-05-04 13:09:19 +00:00
2007-05-11 11:05:30 +00:00
2007-05-16 20:46:58 +00:00
2007-05-10 15:58:48 +00:00
2006-02-01 13:55:03 +00:00
2007-05-10 15:58:48 +00:00
2007-02-08 23:05:08 +00:00
2007-05-11 10:48:30 +00:00
2007-05-11 10:48:30 +00:00
2007-05-10 15:58:48 +00:00
2007-04-04 15:30:31 +00:00
2007-05-11 11:00:48 +00:00
2005-08-10 07:10:02 +00:00
2007-05-11 10:20:51 +00:00
2007-05-29 09:29:03 +00:00
2007-05-08 17:01:12 +00:00
2007-05-29 09:29:03 +00:00
2007-05-08 17:01:12 +00:00
2007-05-30 17:39:45 +00:00
2007-05-29 09:29:03 +00:00
2007-05-30 17:39:45 +00:00
2007-05-08 17:01:12 +00:00
2007-05-08 17:01:12 +00:00
2007-05-08 17:01:12 +00:00
2007-05-30 17:39:45 +00:00
2007-05-08 17:01:12 +00:00
2007-05-30 22:34:21 +00:00
2007-05-08 17:01:12 +00:00
2007-05-29 09:29:03 +00:00
2007-05-30 17:39:45 +00:00
2007-05-08 17:01:12 +00:00
2007-06-01 01:12:45 +00:00
2007-05-08 17:01:12 +00:00
2007-05-30 17:39:45 +00:00
2007-05-30 17:39:45 +00:00
2007-05-28 11:17:24 +00:00
2007-05-08 17:01:12 +00:00
2007-05-28 11:17:24 +00:00
2007-05-29 09:29:03 +00:00
2007-05-08 17:01:12 +00:00
2007-05-29 09:29:03 +00:00
2007-05-08 17:01:12 +00:00
2007-05-29 09:29:03 +00:00
2007-05-29 09:29:03 +00:00
2007-05-08 17:01:12 +00:00
2007-05-29 11:53:27 +00:00
2007-05-30 22:34:21 +00:00
2007-05-30 17:39:45 +00:00
2007-05-07 14:05:23 +00:00
2007-03-24 22:15:02 +00:00
2007-05-11 10:50:31 +00:00
2007-05-27 19:39:26 +00:00
2007-05-28 23:27:44 +00:00
2007-05-18 19:56:24 +00:00
2007-05-13 22:16:13 +00:00
2007-05-11 11:21:43 +00:00
2006-06-18 14:24:12 +00:00
2007-05-27 17:02:54 +00:00
2007-05-28 23:27:44 +00:00
2007-05-27 17:52:02 +00:00
2007-05-16 17:55:22 +00:00
2007-05-17 00:05:13 +00:00
2007-05-31 12:06:02 +00:00
2007-05-28 11:03:53 +00:00
2007-05-25 21:28:49 +00:00
2007-05-16 09:12:16 +00:00
2007-02-20 10:20:03 +00:00
2007-02-20 10:13:11 +00:00