[apparmor] [PATCH] parser: add basic support for parallel compiles and loads

John Johansen john.johansen at canonical.com
Mon Nov 30 22:38:59 UTC 2015


On 11/30/2015 12:48 PM, Seth Arnold wrote:
> On Sat, Nov 28, 2015 at 09:02:18PM -0800, John Johansen wrote:
>> This check is well above the range of values I would recommend (some
>> where between 1-2x the number of cpus. More jobs can help with smaller
> 
> Two times makes more sense for most CPUs but eight may be more appropriate
> for e.g. POWER8 systems; I don't know if the online CPUs count includes
> only cores or if the hardware threads are reported too. If only cores,
> then even eight might be low for those beasts but if threads are reported
> too, this might be high for even them. But _some_ limit is certainly best,
> and this is as good a starting point as any inthe absense of data.
> 
right, it is unclear exactly what _SC_NPROCESSORS_ONLN returns, so I fudged
as guess, that shouldn't be to harmful. For I/O bound work loads using more
workers than cpus doesn't hurt, though realistically most compiles are more
cpu bound than I/O bound.




More information about the AppArmor mailing list