From db95eba6959d9082f65420ab633ecd22193a1c9e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 3 Dec 2010 19:30:27 +1100 Subject: [PATCH] Take into account VM split on 32 bits again. --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 8b02e7e..453402e 100644 --- a/main.c +++ b/main.c @@ -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) {