提交 8a1a20a6 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

flag to only migrate exec's (not on by default)

上级 4947af9c
......@@ -13,6 +13,7 @@
#include "vm.hh"
enum { sched_debug = 0 };
enum { steal_nonexec = 1 };
struct runq {
STAILQ_HEAD(queue, proc) q;
......@@ -137,7 +138,7 @@ steal(void)
pushcli();
for (int nonexec = 0; nonexec < 2; nonexec++) {
for (int nonexec = 0; nonexec < (steal_nonexec ? 2 : 1); nonexec++) {
for (int i = 1; i < ncpu; i++) {
struct runq *q = &runq[(i+mycpu()->id) % ncpu];
struct proc *p;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论