diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-19 06:57:04 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-19 06:57:04 +0200 |
commit | 06ad4e5fff870dc6e7da253c1b15aa715ff2dfb3 (patch) | |
tree | f29cc7b3a6ce36c34fe78aba6003a6a89df8b4ad | |
parent | 7ae98ac5a62a034204531d2ea233e1851a68c5c1 (diff) |
pc64: remove cpuserver bigboy hack and honor *kernelpercent=
-rw-r--r-- | sys/src/9/pc64/main.c | 15 |
1 files changed, 0 insertions, 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) |