]> Zhao Yanbai Git Server - minix.git/commit
Userspace scheduling - exporting stats
authorTomas Hruby <tom@minix3.org>
Sun, 19 Sep 2010 15:52:12 +0000 (15:52 +0000)
committerTomas Hruby <tom@minix3.org>
Sun, 19 Sep 2010 15:52:12 +0000 (15:52 +0000)
commita665ae3de1b6f420ff48f03d5963351f22b66f69
tree961b5f0bff3b7170e8246984017002282289c24d
parent3306687363a0b343f66bcfaabb3f0e1740d857c3
Userspace scheduling - exporting stats

- contributed by Bjorn Swift

- adds process accounting, for example counting the number of messages
  sent, how often the process was preemted and how much time it spent
  in the run queue. These statistics, along with the current cpu load,
  are sent back to the user-space scheduler in the Out Of Quantum
  message.

- the user-space scheduler may choose to make use of these statistics
  when making scheduling decisions. For isntance the cpu load becomes
  especially useful when scheduling on multiple cores.
commands/profile/sprofalyze.pl
include/minix/com.h
kernel/arch/i386/arch_clock.c
kernel/clock.h
kernel/cpulocals.h
kernel/main.c
kernel/proc.c
kernel/proc.h
kernel/proto.h
kernel/system/do_fork.c