Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-24 Thread Geert Uytterhoeven
Hi Yury, On Fri, Nov 24, 2017 at 3:30 PM, Yury Norov wrote: > Below the updates proposed in this thread. Thank you! > From 959700bd7e7f586171c15a4130a9888acac02daf Mon Sep 17 00:00:00 2001 > From: Yury Norov > Date: Wed, 22 Nov 2017

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-24 Thread Geert Uytterhoeven
Hi Yury, On Fri, Nov 24, 2017 at 3:30 PM, Yury Norov wrote: > Below the updates proposed in this thread. Thank you! > From 959700bd7e7f586171c15a4130a9888acac02daf Mon Sep 17 00:00:00 2001 > From: Yury Norov > Date: Wed, 22 Nov 2017 17:21:40 +0300 > Subject: [PATCH] improve lib/test_find_bit

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-24 Thread Yury Norov
Hi Geert, all Below the updates proposed in this thread. Yury >From 959700bd7e7f586171c15a4130a9888acac02daf Mon Sep 17 00:00:00 2001 From: Yury Norov Date: Wed, 22 Nov 2017 17:21:40 +0300 Subject: [PATCH] improve lib/test_find_bit As suggested in review comments:

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-24 Thread Yury Norov
Hi Geert, all Below the updates proposed in this thread. Yury >From 959700bd7e7f586171c15a4130a9888acac02daf Mon Sep 17 00:00:00 2001 From: Yury Norov Date: Wed, 22 Nov 2017 17:21:40 +0300 Subject: [PATCH] improve lib/test_find_bit As suggested in review comments: * printk: align numbers

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-21 Thread Geert Uytterhoeven
Hi Yury, On Thu, Nov 9, 2017 at 3:07 PM, Yury Norov wrote: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-21 Thread Geert Uytterhoeven
Hi Yury, On Thu, Nov 9, 2017 at 3:07 PM, Yury Norov wrote: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of set and > cleared bits, and

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-14 Thread Andrew Morton
On Tue, 14 Nov 2017 13:07:30 +0300 Yury Norov wrote: > > Yyra, you can grab CONFIG_BENCHMARK_* namespace :-) > > There's no CONFIG_BENCHMARK_* namespace actually. Alexey means you can be the first user of CONFIG_BENCHMARK_*. > The 'CONFIG_*_BENCHMARK' is >

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-14 Thread Andrew Morton
On Tue, 14 Nov 2017 13:07:30 +0300 Yury Norov wrote: > > Yyra, you can grab CONFIG_BENCHMARK_* namespace :-) > > There's no CONFIG_BENCHMARK_* namespace actually. Alexey means you can be the first user of CONFIG_BENCHMARK_*. > The 'CONFIG_*_BENCHMARK' is > referenced only 3 times in linux

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-14 Thread Yury Norov
Hi Michael, On Sun, Nov 12, 2017 at 10:33:55PM +1100, Michael Ellerman wrote: > Yury Norov writes: > > > find_bit functions are widely used in the kernel, including hot paths. > > This module tests performance of that functions in 2 typical scenarios: > > randomly

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-14 Thread Yury Norov
Hi Michael, On Sun, Nov 12, 2017 at 10:33:55PM +1100, Michael Ellerman wrote: > Yury Norov writes: > > > find_bit functions are widely used in the kernel, including hot paths. > > This module tests performance of that functions in 2 typical scenarios: > > randomly filled bitmap with relatively

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-14 Thread Yury Norov
Hi Alexey, Andrew, Thanks for comments. On Fri, Nov 10, 2017 at 12:45:18PM +0200, Alexey Dobriyan wrote: > On 11/10/17, Andrew Morton wrote: > > On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov > > wrote: > > > >> find_bit functions are widely

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-14 Thread Yury Norov
Hi Alexey, Andrew, Thanks for comments. On Fri, Nov 10, 2017 at 12:45:18PM +0200, Alexey Dobriyan wrote: > On 11/10/17, Andrew Morton wrote: > > On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov > > wrote: > > > >> find_bit functions are widely used in the kernel, including hot paths. > >> This

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-12 Thread Michael Ellerman
Yury Norov writes: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of set and > cleared bits, and sparse

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-12 Thread Michael Ellerman
Yury Norov writes: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of set and > cleared bits, and sparse bitmap which has 1 set bit for

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-10 Thread Alexey Dobriyan
On 11/10/17, Andrew Morton wrote: > On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov > wrote: > >> find_bit functions are widely used in the kernel, including hot paths. >> This module tests performance of that functions in 2 typical scenarios:

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-10 Thread Alexey Dobriyan
On 11/10/17, Andrew Morton wrote: > On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov > wrote: > >> find_bit functions are widely used in the kernel, including hot paths. >> This module tests performance of that functions in 2 typical scenarios: >> randomly filled bitmap with relatively equal

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-09 Thread Andrew Morton
On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov wrote: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of set

Re: [PATCH] lib: test module for find_*_bit() functions

2017-11-09 Thread Andrew Morton
On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov wrote: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of set and > cleared bits, and

[PATCH] lib: test module for find_*_bit() functions

2017-11-09 Thread Clement Courbet
Reviewed-By: Clement Courbet Thanks for the addition, Yury ! I've used a modified version of v1 for measuring improvements from find_next_and_bit() on x86 and arm and found it very useful.

[PATCH] lib: test module for find_*_bit() functions

2017-11-09 Thread Clement Courbet
Reviewed-By: Clement Courbet Thanks for the addition, Yury ! I've used a modified version of v1 for measuring improvements from find_next_and_bit() on x86 and arm and found it very useful.

[PATCH] lib: test module for find_*_bit() functions

2017-11-09 Thread Yury Norov
find_bit functions are widely used in the kernel, including hot paths. This module tests performance of that functions in 2 typical scenarios: randomly filled bitmap with relatively equal distribution of set and cleared bits, and sparse bitmap which has 1 set bit for 500 cleared bits. On ThunderX

[PATCH] lib: test module for find_*_bit() functions

2017-11-09 Thread Yury Norov
find_bit functions are widely used in the kernel, including hot paths. This module tests performance of that functions in 2 typical scenarios: randomly filled bitmap with relatively equal distribution of set and cleared bits, and sparse bitmap which has 1 set bit for 500 cleared bits. On ThunderX