jeff
a7a8bac81f
- 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
..
2006-09-03 00:26:17 +00:00
2006-10-04 07:19:39 +00:00
2006-11-13 05:41:46 +00:00
2007-03-21 21:20:51 +00:00
2007-03-21 21:20:51 +00:00
2005-10-18 11:46:24 +00:00
2007-03-31 23:23:42 +00:00
2006-05-12 05:04:46 +00:00
2006-03-01 06:29:34 +00:00
2007-05-22 06:51:38 +00:00
2007-03-16 13:39:04 +00:00
2006-03-23 08:47:28 +00:00
2007-02-07 18:55:31 +00:00
2007-01-27 21:15:59 +00:00
2006-10-31 21:11:21 +00:00
2007-03-08 06:44:34 +00:00
2007-01-23 10:01:19 +00:00
2006-09-03 00:26:17 +00:00
2007-02-23 12:19:07 +00:00
2007-05-11 20:52:47 +00:00
2006-09-21 01:38:58 +00:00
2006-10-24 10:27:23 +00:00
2007-03-21 22:22:13 +00:00
2007-05-31 11:51:53 +00:00
2006-11-01 04:54:51 +00:00
2006-09-27 19:57:02 +00:00
2007-01-10 01:29:46 +00:00
2007-03-26 18:03:29 +00:00
2006-09-27 19:57:02 +00:00
2006-08-16 09:34:56 +00:00
2007-05-05 17:02:19 +00:00
2006-05-12 05:04:46 +00:00
2006-08-07 12:02:43 +00:00
2006-10-17 05:43:30 +00:00
2006-10-17 05:43:30 +00:00
2007-04-03 01:47:07 +00:00
2005-12-18 19:43:33 +00:00
2006-10-04 07:23:31 +00:00
2006-09-24 04:47:47 +00:00
2007-04-13 08:38:48 +00:00
2007-03-16 19:18:49 +00:00
2007-01-05 19:59:46 +00:00
2007-05-31 11:51:53 +00:00
2007-04-05 21:10:53 +00:00
2007-02-15 17:21:31 +00:00
2006-03-29 18:17:03 +00:00
2006-06-22 22:11:12 +00:00
2007-04-09 22:55:14 +00:00
2005-12-26 21:23:57 +00:00
2006-08-15 12:10:57 +00:00
2007-05-06 17:02:50 +00:00
2006-09-27 19:57:02 +00:00
2007-04-27 11:19:05 +00:00
2006-01-10 09:19:10 +00:00
2006-09-22 22:11:29 +00:00
2007-04-05 23:19:13 +00:00
2006-09-27 19:57:02 +00:00
2007-04-09 22:29:13 +00:00
2005-10-03 14:06:00 +00:00
2006-08-24 21:09:39 +00:00
2006-01-25 14:57:23 +00:00
2005-12-26 22:09:09 +00:00
2007-04-10 21:42:12 +00:00
2005-12-02 07:45:28 +00:00
2007-04-03 18:33:41 +00:00
2006-06-20 20:59:55 +00:00
2007-05-23 18:46:54 +00:00
2007-04-03 17:57:50 +00:00
2007-05-17 16:03:14 +00:00
2007-03-30 18:07:24 +00:00
2007-02-06 16:24:57 +00:00
2005-12-30 11:45:07 +00:00
2007-04-15 06:30:28 +00:00
2006-03-15 19:47:12 +00:00
2005-11-11 11:31:23 +00:00
2006-04-17 19:44:44 +00:00
2007-04-22 16:18:10 +00:00
2006-12-18 18:48:28 +00:00
2005-11-30 05:12:03 +00:00
2006-09-03 00:33:19 +00:00
2007-04-11 13:44:55 +00:00
2006-02-05 15:42:01 +00:00
2007-05-21 14:03:28 +00:00
2007-03-11 05:54:29 +00:00
2006-09-27 19:57:02 +00:00
2006-03-28 16:20:29 +00:00
2006-03-26 12:20:54 +00:00
2006-03-28 16:20:29 +00:00
2006-11-11 16:19:12 +00:00
2007-01-08 21:21:45 +00:00
2007-04-21 18:11:19 +00:00
2007-06-01 01:12:45 +00:00
2006-07-24 15:20:08 +00:00
2006-02-06 09:41:56 +00:00
2006-10-24 11:19:21 +00:00
2007-06-01 01:12:45 +00:00
2007-06-01 01:12:45 +00:00
2006-06-12 04:06:21 +00:00
2007-01-08 21:21:45 +00:00
2007-02-08 01:52:25 +00:00
2007-05-08 21:51:37 +00:00
2007-01-23 08:46:51 +00:00
2006-01-06 22:12:46 +00:00
2006-11-07 18:56:48 +00:00
2006-03-30 17:24:42 +00:00
2006-05-12 05:04:46 +00:00
2006-10-05 01:56:11 +00:00
2007-03-31 23:23:42 +00:00
2005-10-24 21:04:19 +00:00
2007-04-19 15:48:16 +00:00
2007-05-03 14:42:42 +00:00
2006-07-09 06:04:01 +00:00
2006-11-26 11:55:48 +00:00
2006-08-04 23:47:30 +00:00
2007-05-31 09:14:48 +00:00
2006-11-03 18:57:49 +00:00
2006-11-03 18:57:49 +00:00
2006-12-20 19:26:30 +00:00
2007-05-19 04:53:14 +00:00
2007-05-14 22:40:04 +00:00
2007-05-29 15:14:46 +00:00
2006-11-11 22:01:25 +00:00
2007-05-20 22:11:50 +00:00
2006-01-14 01:55:24 +00:00
2006-11-11 16:26:58 +00:00
2006-10-03 04:01:30 +00:00
2006-03-01 06:48:31 +00:00
2005-10-23 04:22:56 +00:00
2006-01-19 07:20:20 +00:00
2006-01-04 09:59:07 +00:00
2006-01-10 09:19:10 +00:00
2006-09-27 19:57:02 +00:00
2006-01-10 09:19:10 +00:00
2006-04-18 18:21:38 +00:00
2006-08-04 22:54:10 +00:00
2006-05-12 05:04:46 +00:00
2007-03-14 19:52:19 +00:00
2006-11-29 19:08:45 +00:00
2006-12-20 04:40:39 +00:00
2007-04-07 18:31:40 +00:00
2007-02-26 20:47:52 +00:00
2006-05-15 00:17:27 +00:00
2005-10-07 13:37:10 +00:00
2007-05-31 22:52:15 +00:00
2007-05-31 11:51:53 +00:00
2005-11-10 05:00:20 +00:00
2006-12-15 21:44:49 +00:00