Re: Sample based profiling

2018-08-05 Thread Joerg Sonnenberger
On Sat, Aug 04, 2018 at 09:12:03PM -0400, Thor Lancelot Simon wrote: > On Sun, Aug 05, 2018 at 12:22:04AM +0200, Joerg Sonnenberger wrote: > > On Thu, Aug 02, 2018 at 09:26:00PM -0400, Thor Lancelot Simon wrote: > > > On Thu, Aug 02, 2018 at 01:46:35PM +0200, Joerg Sonnenberger wrote: > > > > On We

Re: Sample based profiling

2018-08-04 Thread Thor Lancelot Simon
On Sun, Aug 05, 2018 at 12:22:04AM +0200, Joerg Sonnenberger wrote: > On Thu, Aug 02, 2018 at 09:26:00PM -0400, Thor Lancelot Simon wrote: > > On Thu, Aug 02, 2018 at 01:46:35PM +0200, Joerg Sonnenberger wrote: > > > On Wed, Aug 01, 2018 at 11:54:10PM -0400, Thor Lancelot Simon wrote: > > > > On Tu

Re: Sample based profiling

2018-08-04 Thread Joerg Sonnenberger
On Thu, Aug 02, 2018 at 09:26:00PM -0400, Thor Lancelot Simon wrote: > On Thu, Aug 02, 2018 at 01:46:35PM +0200, Joerg Sonnenberger wrote: > > On Wed, Aug 01, 2018 at 11:54:10PM -0400, Thor Lancelot Simon wrote: > > > On Tue, Jul 31, 2018 at 08:28:19AM +, Christos Zoulas wrote: > > > > In artic

Re: Sample based profiling

2018-08-02 Thread Thor Lancelot Simon
On Thu, Aug 02, 2018 at 01:46:35PM +0200, Joerg Sonnenberger wrote: > On Wed, Aug 01, 2018 at 11:54:10PM -0400, Thor Lancelot Simon wrote: > > On Tue, Jul 31, 2018 at 08:28:19AM +, Christos Zoulas wrote: > > > In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, > > > Kamil Rytarowski w

Re: Sample based profiling

2018-08-02 Thread Joerg Sonnenberger
On Wed, Aug 01, 2018 at 11:54:10PM -0400, Thor Lancelot Simon wrote: > On Tue, Jul 31, 2018 at 08:28:19AM +, Christos Zoulas wrote: > > In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, > > Kamil Rytarowski wrote: > > > > > >I'm for removal of gprof and deduplication of .a files in t

Re: Sample based profiling

2018-08-01 Thread Thor Lancelot Simon
On Tue, Jul 31, 2018 at 08:28:19AM +, Christos Zoulas wrote: > In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, > Kamil Rytarowski wrote: > > > >I'm for removal of gprof and deduplication of .a files in the base. > > > >While there, can we get rid of moncontrol(3), profil(2) and all

Re: Sample based profiling

2018-08-01 Thread Kamil Rytarowski
On 01.08.2018 09:27, Christos Zoulas wrote: > In article , > Kamil Rytarowski wrote: >> -=-=-=-=-=- >> -=-=-=-=-=- >> >> On 31.07.2018 10:28, Christos Zoulas wrote: >>> In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, >>> Kamil Rytarowski wrote: I'm for removal of gprof and

Re: Sample based profiling

2018-08-01 Thread Christos Zoulas
In article , Kamil Rytarowski wrote: >-=-=-=-=-=- >-=-=-=-=-=- > >On 31.07.2018 10:28, Christos Zoulas wrote: >> In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, >> Kamil Rytarowski wrote: >>> >>> I'm for removal of gprof and deduplication of .a files in the base. >>> >>> While there,

Re: Sample based profiling

2018-07-31 Thread Kamil Rytarowski
On 31.07.2018 10:28, Christos Zoulas wrote: > In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, > Kamil Rytarowski wrote: >> >> I'm for removal of gprof and deduplication of .a files in the base. >> >> While there, can we get rid of moncontrol(3), profil(2) and all the >> corresponding c

Re: Sample based profiling

2018-07-31 Thread Christos Zoulas
In article <2c408f23-6eae-da00-dfb2-ebc7b66e6...@gmx.com>, Kamil Rytarowski wrote: > >I'm for removal of gprof and deduplication of .a files in the base. > >While there, can we get rid of moncontrol(3), profil(2) and all the >corresponding code? I constantly see proposals to remove things from b

Re: Sample based profiling

2018-07-29 Thread Alexander Nasonov
Joerg Sonnenberger wrote: > On Sun, Jul 29, 2018 at 02:45:51PM +0100, Alexander Nasonov wrote: > > I wanted to vote for option 3 if we have better tools but devel/gperftools > > didn't build on my amd64 boxes (-current and -8): > > Works for me? PKGSRC_COMPILER=clang and mine builds too ;-) --

Re: Sample based profiling

2018-07-29 Thread Joerg Sonnenberger
On Sun, Jul 29, 2018 at 02:45:51PM +0100, Alexander Nasonov wrote: > I wanted to vote for option 3 if we have better tools but devel/gperftools > didn't build on my amd64 boxes (-current and -8): Works for me? Joerg

Re: Sample based profiling

2018-07-29 Thread Alexander Nasonov
e correct way forward. > Sample based profiling with the default HZ setting just doesn't give > very useful results except for extremely long running processes -- you > get a sample every few million CPU cycles and want to extract something > useful from that? There are options for

Re: Sample based profiling

2018-07-29 Thread Kamil Rytarowski
version of libc_pg. > (2) Stop pretending that -pg means dynamic linking and implicitly add > -static. > (3) Stop pretending that -pg makes sense on modern hardware. > > Fundamentally, I think the third option is the correct way forward. > Sample based profiling with the default HZ

Sample based profiling

2018-07-25 Thread Joerg Sonnenberger
) Stop pretending that -pg makes sense on modern hardware. Fundamentally, I think the third option is the correct way forward. Sample based profiling with the default HZ setting just doesn't give very useful results except for extremely long running processes -- you get a sample every few millio