diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2009-03-23 13:25:12 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2009-03-23 13:25:12 +0000 |
commit | 9fa08e1449bad2c67ac7a2930a541f74c9d50f4c (patch) | |
tree | cf76ab3f3c7cdc2f6ee262705e3466854af7d064 /sys/uvm/uvm_page.c | |
parent | 599d360b82cb69d59934037fc27b8a60f70f152a (diff) |
Processor affinity for processes.
- Split up run queues so that every cpu has one.
- Make setrunqueue choose the cpu where we want to make this process
runnable (this should be refined and less brutal in the future).
- When choosing the cpu where we want to run, make some kind of educated
guess where it will be best to run (very naive right now).
Other:
- Set operations for sets of cpus.
- load average calculations per cpu.
- sched_is_idle() -> curcpu_is_idle()
tested, debugged and prodded by many@
Diffstat (limited to 'sys/uvm/uvm_page.c')
-rw-r--r-- | sys/uvm/uvm_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 8a90c987693..3c16e1a5893 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.c,v 1.67 2008/07/02 15:21:33 art Exp $ */ +/* $OpenBSD: uvm_page.c,v 1.68 2009/03/23 13:25:11 art Exp $ */ /* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */ /* @@ -1400,5 +1400,5 @@ uvm_pageidlezero() uvmexp.free++; uvmexp.zeropages++; uvm_unlock_fpageq(); - } while (sched_is_idle()); + } while (curcpu_is_idle()); } |