Re: [PATCH] Limit perf data buffer during profiling

2017-05-19 Thread Jeff Law
On 05/18/2017 02:39 AM, Richard Biener wrote: > On Thu, May 18, 2017 at 10:35 AM, Aldy Hernandez wrote: >> Andi Kleen writes: >> >>> From: Andi Kleen >>> >>> With high -j parallelism the autofdo tests can randomly fail. >>> autofdo uses Linux perf to record profiling data. >>> Linux perf uses a

Re: [PATCH] Limit perf data buffer during profiling

2017-05-18 Thread Aldy Hernandez
On 05/18/2017 12:09 PM, Mike Stump wrote: On May 18, 2017, at 1:35 AM, Aldy Hernandez wrote: Andi Kleen writes: From: Andi Kleen With high -j parallelism the autofdo tests can randomly fail. autofdo uses Linux perf to record profiling data. Linux perf uses a locked perf buffer. By default

Re: [PATCH] Limit perf data buffer during profiling

2017-05-18 Thread Mike Stump
On May 18, 2017, at 1:35 AM, Aldy Hernandez wrote: > > Andi Kleen writes: > >> From: Andi Kleen >> >> With high -j parallelism the autofdo tests can randomly fail. >> autofdo uses Linux perf to record profiling data. >> Linux perf uses a locked perf buffer. By default it has >> around 516k bu

Re: [PATCH] Limit perf data buffer during profiling

2017-05-18 Thread Richard Biener
On Thu, May 18, 2017 at 10:35 AM, Aldy Hernandez wrote: > Andi Kleen writes: > >> From: Andi Kleen >> >> With high -j parallelism the autofdo tests can randomly fail. >> autofdo uses Linux perf to record profiling data. >> Linux perf uses a locked perf buffer. By default it has >> around 516k bu

Re: [PATCH] Limit perf data buffer during profiling

2017-05-18 Thread Aldy Hernandez
Andi Kleen writes: > From: Andi Kleen > > With high -j parallelism the autofdo tests can randomly fail. > autofdo uses Linux perf to record profiling data. > Linux perf uses a locked perf buffer. By default it has > around 516k buffer per uid (/proc/sys/kernel/perf_event_mlock_kb). > > An indivi

Re: [PATCH] Limit perf data buffer during profiling

2017-05-12 Thread Jeff Law
On 05/12/2017 03:38 AM, Andi Kleen wrote: From: Andi Kleen With high -j parallelism the autofdo tests can randomly fail. autofdo uses Linux perf to record profiling data. Linux perf uses a locked perf buffer. By default it has around 516k buffer per uid (/proc/sys/kernel/perf_event_mlock_kb).

Re: [PATCH] Limit perf data buffer during profiling

2017-05-12 Thread Richard Biener
On Fri, May 12, 2017 at 11:38 AM, Andi Kleen wrote: > From: Andi Kleen > > With high -j parallelism the autofdo tests can randomly fail. > autofdo uses Linux perf to record profiling data. > Linux perf uses a locked perf buffer. By default it has > around 516k buffer per uid (/proc/sys/kernel/per

[PATCH] Limit perf data buffer during profiling

2017-05-12 Thread Andi Kleen
From: Andi Kleen With high -j parallelism the autofdo tests can randomly fail. autofdo uses Linux perf to record profiling data. Linux perf uses a locked perf buffer. By default it has around 516k buffer per uid (/proc/sys/kernel/perf_event_mlock_kb). An individual perf record tries to grab the