Hi everybody,
I am trying to get the most out of the system in terms of performance, as it seems for me pretty slow compared to other systems. This one is about getting the most out of the kernel.
My question is, will it be better to use the latest gcc to compile the kernel and the base system or should I stick to the standard compiler?
So far my make.conf looks like this, I haven't started yet, as I am still looking for more performance tweaks:
What else can I improve? Can I actually use -O3, and which other switches would you recommend to make the kernel and base run fastest.
Maybe there is even another compiler who does an even better job for everything. Any recommendations on that?
Thank you
Pantu
I am trying to get the most out of the system in terms of performance, as it seems for me pretty slow compared to other systems. This one is about getting the most out of the kernel.
My question is, will it be better to use the latest gcc to compile the kernel and the base system or should I stick to the standard compiler?
So far my make.conf looks like this, I haven't started yet, as I am still looking for more performance tweaks:
Code:
CC= gcc45
CXX= g++45
CPP= cpp45
KERNCONF= MYCUSTOM
CPUTYPE= i386
CFLAGS= -O2 -pipe -fno-strict-aliasing
COPTFLAGS= -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
OPTIMIZED_CFLAGS= YES
BUILD_OPTIMIZED= YES
WITH_CPUFLAGS= YES
WITHOUT_DEBUG= YES
WITH_OPTIMIZED_CFLAGS= YES
NO_PROFILE= YES
BUILD_STATIC= YES
NO_BLUETOOTH= true # do not build Bluetooth related stuff
NO_FORTRAN= true # do not build g77 and related libraries
NO_GDB= true # do not build GDB
NO_GPIB= true # do not build GPIB support
NO_I4B= true # do not build isdn4bsd package
NO_IPFILTER= true # do not build IP Filter package
NO_KERBEROS= true # do not build and install Kerberos 5 (KTH Heimdal)
NO_LPR= true # do not build lpr and related programs
NO_MAILWRAPPER= true # do not build the mailwrapper(8) MTA selector
NO_NIS= true # do not build NIS support and related programs
NO_SENDMAIL= true # do not build sendmail and related programs
NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs
NO_GAMES= true # do not build games (games/ subdir)
NO_INFO= true # do not make or install info files
NO_PROFILE= true # Avoid compiling profiled libraries
### BIND OPTIONS
NO_BIND= true # Do not build any part of BIND
NO_BIND_DNSSEC= true # Do not build dnssec-keygen, dnssec-signzone
NO_BIND_ETC= true # Do not install files to /etc/namedb
NO_BIND_LIBS_LWRES= true # Do not install the lwres library
NO_BIND_MTREE= true # Do not run mtree to create chroot directories
NO_BIND_NAMED= true # Do not build named, rndc, lwresd, etc
What else can I improve? Can I actually use -O3, and which other switches would you recommend to make the kernel and base run fastest.
Maybe there is even another compiler who does an even better job for everything. Any recommendations on that?
Thank you
Pantu