Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2006, 09:48 PM
eq4me
Hill Giant
 
Join Date: Jul 2006
Posts: 166
Default profiling support in the Source

Seeing an file named gmon.out after I stopped the EQEmu server on my Linux box and remembering what that file is for I had a look in the Unix/Linux makefiles I discovered that profiling support( -pg) it turned on in zone/ and eqlaunch/. I suggest that all people that run Linux/Unix servers get rid of this and recompile asap. Enabling profiling support induces a huge performance penalty!

for zone/makefile
Code:
COPTS=$(WFLAGS) -O -g -pg -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE $(DFLAGS) $(MYSQL_FLAGS) `$(PERL_FLAGS)`
to
Code:
COPTS=$(WFLAGS) -O -g -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE $(DFLAGS) $(MYSQL_FLAGS) `$(PERL_FLAGS)`
eqlaunch/makefile is similar.

FNW: I would suggest to get rid of this option in all the unix/linux makefiles by default. Imho also the -g option isnt exactly neccessary for the average server but it doesnt induce a performance penalty.

I noticed also that EMuShareMem/ and /common/SocketLib/ are missing the -march=i686 flag but are compiled with -O2. And finally: Is there a reason some of the other stuff is compiled with 'only' -O?

Last edited by eq4me; 11-07-2006 at 06:14 AM..
Reply With Quote
  #2  
Old 11-24-2006, 05:33 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

in short, the makefiles are optimized for the developers, not people trying to run optimal servers...

however I will make a makefile.x86opt for a more optimized build.
Reply With Quote
  #3  
Old 11-29-2006, 03:17 AM
eq4me
Hill Giant
 
Join Date: Jul 2006
Posts: 166
Default

Quote:
Originally Posted by fathernitwit
in short, the makefiles are optimized for the developers, not people trying to run optimal servers...
Let me ask you a question: Who do you think is more capable in compiling or modifying the Source? The average Linux User who just wants to run a server or an Developer who has enough knowledge in C++ and experience with the gprof tools?
I bet an years pay that the average Developer has no trouble modifying the makefiles to his needs but the average User will have a hard time figuring out what is needed and what just for development. Especially when there is virutally no consistent documentation.

To be totally frank I sometimes dont know if I should congratulate you for your continous efforts or strangle you because of your rather strange attitudes regarding some topics.

Well, I wish you good luck with your project. I am off.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:01 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3