RE: -DNOPROFILE with make buildworld...

2005-06-22 Thread Harrison Peter CSA BIRKENHEAD
>-Original Message-
>From: Erik Trulsson [mailto:[EMAIL PROTECTED]
>Sent: 22 June 2005 10:11
>To: Harrison Peter CSA BIRKENHEAD
>Cc: Chuck Swiger; freebsd-questions@freebsd.org
>Subject: Re: -DNOPROFILE with make buildworld...


[snip]

 
>> Most of the apps I'm running have been compiled from ports against
>> the stock 5.3-RELEASE libraries. Are the stock libraries profiling or
>> not?
>
>No.
>
>> Would I have had to explicitly set an option to compile ports to
>> link against profiling libraries?
>
>Yes.
>
>> Is it therefore a reasonable
>> assumption that if I didn't specifically make any binaries profiling,
>> then they'll be not-profiling?
>
>Yes.


OK, I'm clear on that now. Thanks for the response.



Peter Harrison


>
>
>-- 
>
>Erik Trulsson
>[EMAIL PROTECTED]
>
>PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.
> 
>On entering the GSi, this email was scanned for viruses by the 
>Government Secure Intranet (GSi) virus scanning service 
>supplied exclusively by Energis in partnership with MessageLabs.
> 
>Please see 
>http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pdf
 for further details.

In case of problems, please call your organisational IT helpdesk


---

This document is strictly confidential and is intended only for use by the 
addressee. 
If you are not the intended recipient, any disclosure, copying, distribution or 
other 
action taken in reliance of the information contained in this e-mail is 
strictly prohibited.
Any views expressed by the sender of this message are not necessarily those of 
the Department 
for Work and Pensions.
If you have received this transmission in error, please use the reply function 
to tell us 
and then permanently delete what you have received.
Please note: Incoming and outgoing e-mail messages are routinely monitored for 
compliance 
with our policy on the use of electronic communications. 

The original of this email was scanned for viruses by the Government Secure 
Intranet (GSi) virus scanning service supplied exclusively by Energis in 
partnership with MessageLabs.

On leaving the GSi this email was certified virus-free
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: -DNOPROFILE with make buildworld...

2005-06-22 Thread Erik Trulsson
On Wed, Jun 22, 2005 at 09:46:11AM +0100, Harrison Peter CSA BIRKENHEAD wrote:
> > -Original Message-
> > From: Chuck Swiger [mailto:[EMAIL PROTECTED]
> > Sent: 21 June 2005 19:25
> > To: Roland Smith
> > Cc: Harrison Peter CSA BIRKENHEAD; freebsd-questions@freebsd.org
> > Subject: Re: -DNOPROFILE with make buildworld...
> 
> [snip]
>  
> > Normally, you don't use the profiled versions of libraries 
> > unless you are 
> > running a binary which links against them.  If you are 
> > running a binary which 
> > has not been compiled with profiling, the toolchain will link 
> > it against normal 
> > versions of the libraries.
> 
> 
> Most of the apps I'm running have been compiled from ports against
> the stock 5.3-RELEASE libraries. Are the stock libraries profiling or
> not?

No.

> Would I have had to explicitly set an option to compile ports to
> link against profiling libraries?

Yes.

> Is it therefore a reasonable
> assumption that if I didn't specifically make any binaries profiling,
> then they'll be not-profiling?

Yes.


-- 

Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: -DNOPROFILE with make buildworld...

2005-06-22 Thread Harrison Peter CSA BIRKENHEAD
> -Original Message-
> From: Chuck Swiger [mailto:[EMAIL PROTECTED]
> Sent: 21 June 2005 19:25
> To: Roland Smith
> Cc: Harrison Peter CSA BIRKENHEAD; freebsd-questions@freebsd.org
> Subject: Re: -DNOPROFILE with make buildworld...

[snip]
 
> Normally, you don't use the profiled versions of libraries 
> unless you are 
> running a binary which links against them.  If you are 
> running a binary which 
> has not been compiled with profiling, the toolchain will link 
> it against normal 
> versions of the libraries.


Most of the apps I'm running have been compiled from ports against the stock 
5.3-RELEASE libraries. Are the stock libraries profiling or not? Would I have 
had to explicitly set an option to compile ports to link against profiling 
libraries? Is it therefore a reasonable assumption that if I didn't 
specifically make any binaries profiling, then they'll be not-profiling?


> 
> [ ... ]
> > Programs that have been compiled with profiling enabled might run
> > fractionally slower that without. But I doubt the difference is
> > significant on a modern machine. 
> 
> The amount of overhead seems to vary by platform, but it's 
> generally only a 
> couple of percent.  Not very significant, but maybe noticable.
> 
> The major downsides to having profiled libraries around is 
> that they use more 
> disk space than normal versions, and it takes longer to do a 
> buildworld, but 
> the runtime performance of the system for normal binaries 
> will not be affected.


I can live with that kind of performance overhead, but disk space is more of an 
issue for me.


> 
> > I'll be bold and say that modern machines are so fast that there is
> > seldom need to profile a program.
> 
> Even people who write code on fast machines may run that code 
> on slower boxes 
> sometime.  However, what you've said is still true: there is 
> seldom need to 
> profile a program.  Get it working well enough that it 
> doesn't leak memory, and 
> then worry about profiling it.  :-)
>


Indeed. Once I've successfully upgraded my Athlon XP 1800+ desktop to 5.4 I'm 
intending to set up NFS shares and upgrade my Thinkpad 600e which is also on 
5.3 (and I don't fancy building world on it's P2 366).


> -- 
> -Chuck


Thanks for the advice.


Peter Harrison


> 
> 
> PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.
>  
> On entering the GSi, this email was scanned for viruses by 
> the Government Secure Intranet (GSi) virus scanning service 
> supplied exclusively by Energis in partnership with MessageLabs.
>  
> Please see 
http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pdf for further 
details.

In case of problems, please call your organisational IT helpdesk


---

This document is strictly confidential and is intended only for use by the 
addressee. 
If you are not the intended recipient, any disclosure, copying, distribution or 
other 
action taken in reliance of the information contained in this e-mail is 
strictly prohibited.
Any views expressed by the sender of this message are not necessarily those of 
the Department 
for Work and Pensions.
If you have received this transmission in error, please use the reply function 
to tell us 
and then permanently delete what you have received.
Please note: Incoming and outgoing e-mail messages are routinely monitored for 
compliance 
with our policy on the use of electronic communications. 

The original of this email was scanned for viruses by the Government Secure 
Intranet (GSi) virus scanning service supplied exclusively by Energis in 
partnership with MessageLabs.

On leaving the GSi this email was certified virus-free
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: -DNOPROFILE with make buildworld...

2005-06-22 Thread Harrison Peter CSA BIRKENHEAD
> -Original Message-
> From: Roland Smith [mailto:[EMAIL PROTECTED]
> Sent: 21 June 2005 19:07
> To: Harrison Peter CSA BIRKENHEAD
> Cc: freebsd-questions@freebsd.org
> Subject: Re: -DNOPROFILE with make buildworld...
> 
> 
> On Tue, Jun 21, 2005 at 01:49:06PM +0100, Harrison Peter CSA 
> BIRKENHEAD wrote:
> 
> > I've cvsup'ed my source tree, and stepping through the 
> instructions in
> > the handbook I note that it recommends running make buildworld with
> > -DNOPROFILE (or specifying it in make.conf). I'm not clear what the
> > impact of running profiled libraries is against non-profiled
> > libraries. I've done a quick search via google and through the list
> > archives without success.
> 
> It's not about profiled libraries, but profiling libraries. 
> Let me explain.
> 
> Programs that are compiled with profiling enabled gather data about
> their run-time behaviour, and write that to a file, usualy 
> gmon.out. If
> the program is linked to a profiling library, data about the 
> time spent
> running functions in that library are also recorded.
> 
> The contents of that file can be analyzed with the gprof 
> program, to see
> where the program spends its time.
> 
> Now if you compile a program with not-profiling libraries, 
> gprof cannot
> tell you much about the time your program spent in functions 
> in that library.


OK that makes sense now I think - it's basically an optimisation tool?
Thanks for the explanation. I don't imagine needing this at the moment
so noprofile looks like the correct option for me.


> 
> Programs that have been compiled with profiling enabled might run
> fractionally slower that without. But I doubt the difference is
> significant on a modern machine. 
> 
> I'll be bold and say that modern machines are so fast that there is
> seldom need to profile a program.


The machine in question is running on an Athlon XP 1800+ so it's not
that fast (or modern for that matter), but I take your point.


> 
> Roland
> -- 
> R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail 
> as plain text.
> public key: http://www.xs4all.nl/~rsmith/pubkey.txt
> 

Thanks again,


Peter Harrison


---

This document is strictly confidential and is intended only for use by the 
addressee. 
If you are not the intended recipient, any disclosure, copying, distribution or 
other 
action taken in reliance of the information contained in this e-mail is 
strictly prohibited.
Any views expressed by the sender of this message are not necessarily those of 
the Department 
for Work and Pensions.
If you have received this transmission in error, please use the reply function 
to tell us 
and then permanently delete what you have received.
Please note: Incoming and outgoing e-mail messages are routinely monitored for 
compliance 
with our policy on the use of electronic communications. 

The original of this email was scanned for viruses by the Government Secure 
Intranet (GSi) virus scanning service supplied exclusively by Energis in 
partnership with MessageLabs.

On leaving the GSi this email was certified virus-free
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: -DNOPROFILE with make buildworld...

2005-06-21 Thread Chuck Swiger

Roland Smith wrote:

On Tue, Jun 21, 2005 at 01:49:06PM +0100, Harrison Peter CSA BIRKENHEAD wrote:

I've cvsup'ed my source tree, and stepping through the instructions in
the handbook I note that it recommends running make buildworld with
-DNOPROFILE (or specifying it in make.conf). I'm not clear what the
impact of running profiled libraries is against non-profiled
libraries. I've done a quick search via google and through the list
archives without success.


Normally, you don't use the profiled versions of libraries unless you are 
running a binary which links against them.  If you are running a binary which 
has not been compiled with profiling, the toolchain will link it against normal 
versions of the libraries.


[ ... ]

Programs that have been compiled with profiling enabled might run
fractionally slower that without. But I doubt the difference is
significant on a modern machine. 


The amount of overhead seems to vary by platform, but it's generally only a 
couple of percent.  Not very significant, but maybe noticable.


The major downsides to having profiled libraries around is that they use more 
disk space than normal versions, and it takes longer to do a buildworld, but 
the runtime performance of the system for normal binaries will not be affected.



I'll be bold and say that modern machines are so fast that there is
seldom need to profile a program.


Even people who write code on fast machines may run that code on slower boxes 
sometime.  However, what you've said is still true: there is seldom need to 
profile a program.  Get it working well enough that it doesn't leak memory, and 
then worry about profiling it.  :-)


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: -DNOPROFILE with make buildworld...

2005-06-21 Thread Roland Smith
On Tue, Jun 21, 2005 at 01:49:06PM +0100, Harrison Peter CSA BIRKENHEAD wrote:

> I've cvsup'ed my source tree, and stepping through the instructions in
> the handbook I note that it recommends running make buildworld with
> -DNOPROFILE (or specifying it in make.conf). I'm not clear what the
> impact of running profiled libraries is against non-profiled
> libraries. I've done a quick search via google and through the list
> archives without success.

It's not about profiled libraries, but profiling libraries. Let me explain.

Programs that are compiled with profiling enabled gather data about
their run-time behaviour, and write that to a file, usualy gmon.out. If
the program is linked to a profiling library, data about the time spent
running functions in that library are also recorded.

The contents of that file can be analyzed with the gprof program, to see
where the program spends its time.

Now if you compile a program with not-profiling libraries, gprof cannot
tell you much about the time your program spent in functions in that library.

Programs that have been compiled with profiling enabled might run
fractionally slower that without. But I doubt the difference is
significant on a modern machine. 

I'll be bold and say that modern machines are so fast that there is
seldom need to profile a program.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpS6444FQISk.pgp
Description: PGP signature


-DNOPROFILE with make buildworld...

2005-06-21 Thread Harrison Peter CSA BIRKENHEAD
I'm currently running 5.3 (security patched via freebsd-update). I'm intending 
to update to 5.4 - and this is my first attempt at the buildworld etc. process.

I've cvsup'ed my source tree, and stepping through the instructions in the 
handbook I note that it recommends running make buildworld with -DNOPROFILE (or 
specifying it in make.conf). I'm not clear what the impact of running profiled 
libraries is against non-profiled libraries. I've done a quick search via 
google and through the list archives without success.

Could anyone explain the difference for me briefly so that I can make an 
informed choice?

My first post to the list - although I've been lurking for a while. Apologies 
if the formatting on the email isn't too good. I'm mailing from work which uses 
Outlook 2000.

Thanks for any advice.

Peter Harrison 




---

This document is strictly confidential and is intended only for use by the 
addressee. 
If you are not the intended recipient, any disclosure, copying, distribution or 
other 
action taken in reliance of the information contained in this e-mail is 
strictly prohibited.
Any views expressed by the sender of this message are not necessarily those of 
the Department 
for Work and Pensions.
If you have received this transmission in error, please use the reply function 
to tell us 
and then permanently delete what you have received.
Please note: Incoming and outgoing e-mail messages are routinely monitored for 
compliance 
with our policy on the use of electronic communications. 

The original of this email was scanned for viruses by the Government Secure 
Intranet (GSi) virus scanning service supplied exclusively by Energis in 
partnership with MessageLabs.

On leaving the GSi this email was certified virus-free
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: -DNOPROFILE ?

2004-09-18 Thread jason
Geert Hendrickx wrote:
What exactly does this make.conf-flag do: 

NOPROFILE= true# Avoid compiling profiled libraries
What are "profiled" libraries?  

GH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
 

Better late than never?  If  you have not found out by now, it means do 
not compile in performance monitoring tools.  When it is on you will 
have extra code.  When the program is run you can run a kind of 
benchmark with it to analyze when what is going on and how long parts of 
the code take to run.  It is a big help if you want to maximize a 
programs speed, but is a waste of space for regular users.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: what is -DNOPROFILE ?

2004-09-09 Thread Geert Hendrickx
Ok, thank you very much for enlightening me! :-)  

GH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: what is -DNOPROFILE ?

2004-09-09 Thread cpghost
On Thu, Sep 09, 2004 at 01:51:22PM +0200, Geert Hendrickx wrote:
> On Thu, Sep 09, 2004 at 01:40:33PM +0200, [EMAIL PROTECTED] wrote:
> > On Thu, Sep 09, 2004 at 12:52:32PM +0200, Geert Hendrickx wrote:
> > > Hi, 
> > > 
> > > I was wondering what this make.conf-flag is for: 
> > > 
> > > NOPROFILE= true# Avoid compiling profiled libraries
> > > 
> > > What are "profiled" libraries?
> > 
> > /usr/lib/lib*_p.{a,so}
> > 
> > See gprof(1)
> 
> So, if I understand it correctly from gprof(1), profiled libraries are
> for measuring how much CPU time is spent in each suboutine?  And, as a
> regular user (not a developer or benchmarker), I don't need this and can
> use -DNOPROFILE for not building profiled libraries?  

Yes, that's the whole point of NOPROFILE. Unless you are a developer
yourself and want to optimize some code, there's little reason to keep
those profiling libs around (or spend time building them).

> I also understand these libraries are seperate from my "regular"
> libraries?  So, is there a drawback (other than increased compile time
> for a make world) in building them?  Or does it not matter?  

The libraries contain the same code as the regular (non-profiling)
libraries, with a small addition within every function, to count the
number of times a function is called and to measure the time.

Linking normal apps against profiled libraries naturally slows them
down (at run time), because the measuring code must be executed every
time a library function is called. Therefore, normal applications are
not linked against profiling libraries, and you can safely remove
those libs from your system.

It doesn't harm though to build them anyway, just in case you
change your mind. Even on slow systems, building profiled libraries
doesn't take that much longer. At the end of the day, it's your call.

> GH

Cheers,
cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: what is -DNOPROFILE ?

2004-09-09 Thread Geert Hendrickx
On Thu, Sep 09, 2004 at 01:40:33PM +0200, [EMAIL PROTECTED] wrote:
> On Thu, Sep 09, 2004 at 12:52:32PM +0200, Geert Hendrickx wrote:
> > Hi, 
> > 
> > I was wondering what this make.conf-flag is for: 
> > 
> > NOPROFILE= true# Avoid compiling profiled libraries
> > 
> > What are "profiled" libraries?
> 
> /usr/lib/lib*_p.{a,so}
> 
> See gprof(1)

So, if I understand it correctly from gprof(1), profiled libraries are
for measuring how much CPU time is spent in each suboutine?  And, as a
regular user (not a developer or benchmarker), I don't need this and can
use -DNOPROFILE for not building profiled libraries?  

I also understand these libraries are seperate from my "regular"
libraries?  So, is there a drawback (other than increased compile time
for a make world) in building them?  Or does it not matter?  

GH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: what is -DNOPROFILE ?

2004-09-09 Thread cpghost
On Thu, Sep 09, 2004 at 12:52:32PM +0200, Geert Hendrickx wrote:
> Hi, 
> 
> I was wondering what this make.conf-flag is for: 
> 
> NOPROFILE= true# Avoid compiling profiled libraries
> 
> What are "profiled" libraries?

/usr/lib/lib*_p.{a,so}

See gprof(1)

> GH

-- 
Cordula's Web. http://www.cordula.ws/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


what is -DNOPROFILE ?

2004-09-09 Thread Geert Hendrickx
Hi, 

I was wondering what this make.conf-flag is for: 

NOPROFILE= true# Avoid compiling profiled libraries

What are "profiled" libraries?  

GH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


-DNOPROFILE ?

2004-08-31 Thread Geert Hendrickx
What exactly does this make.conf-flag do: 

NOPROFILE= true# Avoid compiling profiled libraries

What are "profiled" libraries?  

GH
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"