Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread shuah
On 4/19/19 2:59 PM, Mathieu Desnoyers wrote: - On Apr 19, 2019, at 2:57 PM, shuah sh...@kernel.org wrote: [...] Should I drop this patch that is currently in linux-kseltest next? Just confirming if your new patch is supposed to be applied on top of this one or not? We should keep this

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2019, at 2:57 PM, shuah sh...@kernel.org wrote: [...] > Should I drop this patch that is currently in linux-kseltest next? Just > confirming if your new patch is supposed to be applied on top of this > one or not? We should keep this patch in linux-kselftest next. The fix applies

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Ingo Molnar
* Mathieu Desnoyers wrote: > On smaller systems, running a test with 200 threads can take a long > time on machines with smaller number of CPUs. > > Detect the number of online cpus at test runtime, and multiply that > by 6 to have 6 rseq threads per cpu preempting each other. > >

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread shuah
On 4/19/19 8:40 AM, Mathieu Desnoyers wrote: - On Apr 19, 2019, at 10:17 AM, shuah sh...@kernel.org wrote: On 4/19/19 7:48 AM, Mathieu Desnoyers wrote: - On Apr 19, 2019, at 9:42 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: - On Apr 19, 2019, at 8:55 AM, Mathieu

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2019, at 8:41 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 19, 2019, at 6:38 AM, Ingo Molnar mi...@kernel.org wrote: > >> * Mathieu Desnoyers wrote: >> >>> On smaller systems, running a test with 200 threads can take a long >>> time on machines

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2019, at 6:38 AM, Ingo Molnar mi...@kernel.org wrote: > * Mathieu Desnoyers wrote: > >> On smaller systems, running a test with 200 threads can take a long >> time on machines with smaller number of CPUs. >> >> Detect the number of online cpus at test runtime, and multiply

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2019, at 9:42 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 19, 2019, at 8:55 AM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > >> - On Apr 19, 2019, at 8:41 AM, Mathieu Desnoyers >> mathieu.desnoy...@efficios.com wrote: >> >>>

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread shuah
On 4/19/19 7:48 AM, Mathieu Desnoyers wrote: - On Apr 19, 2019, at 9:42 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: - On Apr 19, 2019, at 8:55 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: - On Apr 19, 2019, at 8:41 AM, Mathieu Desnoyers

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2019, at 8:55 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 19, 2019, at 8:41 AM, Mathieu Desnoyers > mathieu.desnoy...@efficios.com wrote: > >> - On Apr 19, 2019, at 6:38 AM, Ingo Molnar mi...@kernel.org wrote: >> >>> * Mathieu Desnoyers

Re: [PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-04-19 Thread Mathieu Desnoyers
- On Apr 19, 2019, at 10:17 AM, shuah sh...@kernel.org wrote: > On 4/19/19 7:48 AM, Mathieu Desnoyers wrote: >> - On Apr 19, 2019, at 9:42 AM, Mathieu Desnoyers >> mathieu.desnoy...@efficios.com wrote: >> >>> - On Apr 19, 2019, at 8:55 AM, Mathieu Desnoyers >>>

[PATCH for 5.1 3/3] rseq/selftests: Adapt number of threads to the number of detected cpus

2019-03-05 Thread Mathieu Desnoyers
On smaller systems, running a test with 200 threads can take a long time on machines with smaller number of CPUs. Detect the number of online cpus at test runtime, and multiply that by 6 to have 6 rseq threads per cpu preempting each other. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: