Take into account VM split on 32 bits again.

This commit is contained in:
Con Kolivas 2010-12-03 19:30:27 +11:00
parent d39d3959e8
commit db95eba695

4
main.c
View file

@ -755,6 +755,10 @@ int main(int argc, char *argv[])
}
}
/* Decrease usable ram size on 32 bits due to kernel/userspace split */
if (BITS32)
control.ramsize = MAX(control.ramsize - 900000000ll, 900000000ll);
/* Set the main nice value to half that of the backend threads since
* the rzip stage is usually the rate limiting step */
if (control.nice_val > 0) {