shithub: riscv

Download patch

ref: 06ad4e5fff870dc6e7da253c1b15aa715ff2dfb3
parent: 7ae98ac5a62a034204531d2ea233e1851a68c5c1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon May 19 02:57:04 EDT 2014

pc64: remove cpuserver bigboy hack and honor *kernelpercent=

--- a/sys/src/9/pc64/main.c
+++ b/sys/src/9/pc64/main.c
@@ -199,21 +199,6 @@
 		if(userpcnt < 10)
 			userpcnt = 70;
 		kpages = conf.npage - (conf.npage*userpcnt)/100;
-
-		/*
-		 * Hack for the big boys. Only good while physmem < 4GB.
-		 * Give the kernel fixed max + enough to allocate the
-		 * page pool.
-		 * This is an overestimate as conf.upages < conf.npages.
-		 * The patch of nimage is a band-aid, scanning the whole
-		 * page list in imagereclaim just takes too long.
-		 */
-		if(getconf("*imagemaxmb") == 0)
-		if(kpages > (64*MB + conf.npage*sizeof(Page))/BY2PG){
-			kpages = (64*MB + conf.npage*sizeof(Page))/BY2PG;
-			conf.nimage = 2000;
-			kpages += (conf.nproc*KSTACK)/BY2PG;
-		}
 	} else {
 		if(userpcnt < 10) {
 			if(conf.npage*BY2PG < 16*MB)