From 06ad4e5fff870dc6e7da253c1b15aa715ff2dfb3 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 19 May 2014 06:57:04 +0200 Subject: pc64: remove cpuserver bigboy hack and honor *kernelpercent= --- sys/src/9/pc64/main.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sys/src/9/pc64/main.c b/sys/src/9/pc64/main.c index 0464bad6b..31268638c 100644 --- a/sys/src/9/pc64/main.c +++ b/sys/src/9/pc64/main.c @@ -199,21 +199,6 @@ confinit(void) 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) -- cgit v1.2.3