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 },
}
};