plan9fox/sys/src/9
cinap_lenrek 61a062ee9f kernel: improve page reclaimation strategy and locking
when reclaiming pages from an image, always reclaim all
the hash chains equally. that way, we avoid being biased
towards the chains at the start of the Image.pghash[] array.

images can be in two states: active or inactive. inactive
images are the ones which are not used by program while
active ones aare.

when reclaiming pages, we should try to reclaim pages
from inactive images first and only if that set becomes
exhausted attempt to release text pages and attempt to
reclaim pages from active images.

when we run out of Image structures, it makes only sense
to reclaim pages from inactive images, as reclaiming pages
from active ones will never free any Image structures.

change putimage() to require a image already locked and
make it unlock the image. this avoids many pointless
unlock()/lock() sequences as all callers of putimage()
already had the image locked.
2020-04-26 19:54:46 +02:00
..
bcm bcm, bcm64: dancing to the drum of the linux clowns for device tree memory size detection (thanks kenji) 2020-04-22 19:57:25 +02:00
bcm64 kernel: cleanup makefile for $CONF.$O target 2020-02-02 20:46:58 +01:00
boot boorc, nusbrc: fix wrong redirections after & 2020-03-08 20:53:30 +01:00
cycv kernel: cleanup makefile for $CONF.$O target 2020-02-02 20:46:58 +01:00
ip devip: fix packet loss when interface is wlocked 2020-01-05 18:20:47 +01:00
kw kernel: remove scheddump() comment for delay() in */fns.h 2020-04-04 16:50:37 +02:00
mtx mtx, ppc: use proctab() to index into process table 2020-04-04 16:52:08 +02:00
omap kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
pc pc, pc64: use softscreen double buffering for *bootscreen= framebuffer 2020-04-24 20:26:38 +02:00
pc64 kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
port kernel: improve page reclaimation strategy and locking 2020-04-26 19:54:46 +02:00
ppc mtx, ppc: use proctab() to index into process table 2020-04-04 16:52:08 +02:00
sgi kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
teg2 kernel: remove scheddump() comment for delay() in */fns.h 2020-04-04 16:50:37 +02:00
xen xen: fix rebootcode linkage 2020-03-29 22:47:42 +02:00
zynq kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
mkfile add cycv kernel 2020-01-08 02:35:01 +00:00