Arman Khalatyan
2011-Dec-13 09:19 UTC
[Gluster-users] Gluster 3.2.5 compile options default are -O0, is it Ok?
Hello, in configure.ac the variable GF_CFLAGS is with -O0 overridden, so all compilations are unoptimized. Are there reason to use -O0 instead of -O2? What about performance penalty if compilation goes with -O0 option? Thanks. Arman. PS I was testing to compile with -O2, it seems it is working.
Jeff White
2011-Dec-21 14:29 UTC
[Gluster-users] Gluster 3.2.5 compile options default are -O0, is it Ok?
I recall Suse having some problem with -O2 a while ago but I doubt that is why the official compiled binaries/packages are -O0. There's also JoeJulian's repo if you run a RHELish system and don't want to compile yourself. <glusterbot> Joe Julian's repo with compiler optimizations (-O2) enabled having 3.0, 3.1 and 3.2 versions for both x86_64 and i686 are at http://joejulian.name/yumrepo/ Jeff White - Linux/Unix Systems Engineer University of Pittsburgh - CSSD On 12/13/2011 04:19 AM, Arman Khalatyan wrote:> Hello, > in configure.ac the variable GF_CFLAGS is with -O0 overridden, so all > compilations are unoptimized. > Are there reason to use -O0 instead of -O2? > What about performance penalty if compilation goes with -O0 option? > > Thanks. > Arman. > > PS > I was testing to compile with -O2, it seems it is working. > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://gluster.org/cgi-bin/mailman/listinfo/gluster-users