X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsFlags.c;h=b15a7890e3dacfa72efc372582a7b43579702681;hb=c29305dadcb245bb080f65d946d92d0035243b6c;hp=3fac86bf4ee26658d7741928029a4b0545e21317;hpb=8b18faef8aeaf40150c208272a2fc117611e8ae8;p=ghc-hetmet.git diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 3fac86b..b15a789 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -17,14 +17,6 @@ #include #endif -#ifdef HAVE_UNISTD_H -#include -#endif - -#ifdef HAVE_WINDOWS_H -#include -#endif - #include #include @@ -233,6 +225,7 @@ void initRtsFlagsDefaults(void) RtsFlags.ParFlags.parGcEnabled = 1; RtsFlags.ParFlags.parGcGen = 1; RtsFlags.ParFlags.parGcLoadBalancing = 1; + RtsFlags.ParFlags.setAffinity = 0; #endif #ifdef PAR @@ -476,6 +469,8 @@ usage_text[] = { " -N Determine the number of processors to use automatically", " -q1 Use one OS thread for GC (turns off parallel GC)", " -qg Use parallel GC only for generations >= (default: 1)", +" -qb Disable load-balancing in the parallel GC", +" -qa Use the OS to set thread affinity", " -qm Don't automatically migrate threads between CPUs", " -qw Migrate a thread to the current CPU when it is woken up", #endif @@ -1233,6 +1228,9 @@ error = rtsTrue; case 'b': RtsFlags.ParFlags.parGcLoadBalancing = rtsFalse; break; + case 'a': + RtsFlags.ParFlags.setAffinity = rtsTrue; + break; case 'm': RtsFlags.ParFlags.migrate = rtsFalse; break;