ref: 61a0117ea5ddf0a17079faf755b4d51cc045c4ae
parent: 5182bb7ecfb83ee63e9d795f6719af16ad45de29
author: cinap_lenrek <cinap_lenrek@localhost>
date: Wed Aug 24 03:58:14 EDT 2011
swap: do less print spamming, sched after killbig so killed proc can get released
--- a/sys/src/9/port/swap.c
+++ b/sys/src/9/port/swap.c
@@ -176,13 +176,9 @@
}
qunlock(&p->seglock);
} else {
- print("out of memory\n");
killbig("out of memory");
freebroken(); /* can use the memory */
-
- /* Emulate the old system if no swap channel */
- if(!swapimage.c)
- tsleep(&up->sleep, return0, 0, 5000);
+ sched();
}
}
goto loop;