git: 9front

Download patch

ref: 8c09d954e34495413e7a8a23986c98c3cbc4af12
parent: 259968f7dcf33dbd5b48f41691c26f2ae55c90c3
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)
--