~kris/9p

9hist

3f6ed4c404952de3d83f5345810515ce2a4c0dde — David du Colombier 28 years ago 42a7de3
Plan 9 from Bell Labs 1997-11-08
2 files changed, 8 insertions(+), 2 deletions(-)

M pc/main.c
M port/alloc.c
M pc/main.c => pc/main.c +7 -1
@@ 393,7 393,6 @@ confinit(void)
	if(cpuserver) {
		if(pcnt < 10)
			pcnt = 70;
		poolsetparam("Main", BY2PG*conf.npage*(100-pcnt)/100, 0, 0);
	} else {
		if(pcnt < 10) {
			if(conf.npage*BY2PG < 16*MB)


@@ 403,7 402,14 @@ confinit(void)
		}
		if(conf.npage*BY2PG < 16*MB)
			poolsetparam("Image", 0, 0, 4*1024*1024);
		/*
		 * give terminals lots of image memory, too; the dynamic allocation
		 * will balance the load properly, we hope.
		 */
		poolsetparam("Image", BY2PG*conf.npage*(100-pcnt)/100, 0, 0);
	}
	poolsetparam("Main", BY2PG*conf.npage*(100-pcnt)/100, 0, 0);

	conf.upages = (conf.npage*pcnt)/100;
	conf.ialloc = ((conf.npage-conf.upages)/2)*BY2PG;


M port/alloc.c => port/alloc.c +1 -1
@@ 40,7 40,7 @@ struct
	2,
	{
		{ "Main",	 4*1024*1024, 31,  128*1024 },
		{ "Image",	 8*1024*1024, 31, 2*1024*1024 },
		{ "Image",	 16*1024*1024, 31, 2*1024*1024 },
	}
};