Skip to contentSkip to conversation

Official Ceph RPM build flags needed

DISCUSSION Ilya Storozhilov 4 participants 7 messages Jun 3, 2014 – Jun 4, 2014

lore
Share & tools
lore
#0 lore raw

Hello Ceph-developers,

at the moment we are doing some performance testing of Ceph v0.72.2 on ContOS 6.5, 64 bit. He have found, that Ceph from official RPM works faster that one which was compiled ourselves from sources. Do you know what compiler flags and configure options are actually used to build official Ceph PRM for CentOS? Maybe you can give an advise where to dig to find out what we need? :)

Thank you very much!

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

         --

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

The compiler flags are in the source RPM, is that correct?

Quoted 29 lines · Ilya Storozhilov

Hello Ceph-developers,

at the moment we are doing some performance testing of Ceph v0.72.2 on ContOS 6.5, 64 bit. He have found, that Ceph from official RPM works faster that one which was compiled ourselves from sources. Do you know what compiler flags and configure options are actually used to build official Ceph PRM for CentOS? Maybe you can give an advise where to dig to find out what we need? :)

Thank you very much!

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

         --

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

НА: Official Ceph RPM build flags needed

Hello Daniel,

thank you for rapid response. "ceph.spec" file from the SRPM contains following lines:

----------------------------------------------------------------------------------------------------
...
export RPM_OPT_FLAGS=echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'

%{configure}	CPPFLAGS="$java_inc" \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--docdir=%{_docdir}/ceph \
		--with-nss \
		--without-cryptopp \
		--with-rest-bench \
		--with-debug \
		--enable-cephfs-java \
		$MY_CONF_OPT \
		%{?_with_ocf} \
		CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"

...
----------------------------------------------------------------------------------------------------

So it seems, that this is up to packager what to put to RPM_OPT_FLAGS environment variable on packaging. Maybe someone knows what particular value is used? Thank you!

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

________________________________________
От: [email protected] <[email protected]> от имени Daniel Sterling <[email protected]> Отправлено: 3 июня 2014 г. 20:06
Кому: Ilya Storozhilov
Копия: [email protected]
Тема: Re: Official Ceph RPM build flags needed

The compiler flags are in the source RPM, is that correct?

Quoted 22 lines · Ilya Storozhilov

Hello Ceph-developers,

at the moment we are doing some performance testing of Ceph v0.72.2 on ContOS 6.5, 64 bit. He have found, that Ceph from official RPM works faster that one which was compiled ourselves from sources. Do you know what compiler flags and configure options are actually used to build official Ceph PRM for CentOS? Maybe you can give an advise where to dig to find out what we need? :)

Thank you very much!

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

Quoted 7 lines

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

         --

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

I believe the defaults for that come from the redhat-rpm-config package

Quoted 84 lines · Ilya Storozhilov

Hello Daniel,

thank you for rapid response. "ceph.spec" file from the SRPM contains following lines:

----------------------------------------------------------------------------------------------------
...
export RPM_OPT_FLAGS=echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'

%{configure}    CPPFLAGS="$java_inc" \
                --prefix=/usr \
                --localstatedir=/var \
                --sysconfdir=/etc \
                --docdir=%{_docdir}/ceph \
                --with-nss \
                --without-cryptopp \
                --with-rest-bench \
                --with-debug \
                --enable-cephfs-java \
                $MY_CONF_OPT \
                %{?_with_ocf} \
                CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"

...
----------------------------------------------------------------------------------------------------

So it seems, that this is up to packager what to put to RPM_OPT_FLAGS environment variable on packaging. Maybe someone knows what particular value is used? Thank you!

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

________________________________________
От: [email protected] <[email protected]> от имени Daniel Sterling <[email protected]> Отправлено: 3 июня 2014 г. 20:06
Кому: Ilya Storozhilov
Копия: [email protected]
Тема: Re: Official Ceph RPM build flags needed

The compiler flags are in the source RPM, is that correct?

Quoted 25 lines · Ilya Storozhilov

Hello Ceph-developers,

at the moment we are doing some performance testing of Ceph v0.72.2 on ContOS 6.5, 64 bit. He have found, that Ceph from official RPM works faster that one which was compiled ourselves from sources. Do you know what compiler flags and configure options are actually used to build official Ceph PRM for CentOS? Maybe you can give an advise where to dig to find out what we need? :)

Thank you very much!

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

Quoted 8 lines
Quoted 4 lines
         --

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: НА: Official Ceph RPM build flags needed

In reply to Ilya Storozhilov
Quoted 3 lines

So it seems, that this is up to packager what to put to RPM_OPT_FLAGS environment variable on packaging. Maybe someone knows what particular value is used?

You might want to look at __global_cflags in /usr/lib/rpm/redhat/macros for more flags. I spent way too much time yesterday dealing with an issue that had its root there, and ended up overriding all sorts of stuff in my own ~/.rpmmacros to work around it.

#5 lore raw
In reply to Ilya Storozhilov
Quoted 2 lines · Ilya Storozhilov

So it seems, that this is up to packager what to put to RPM_OPT_FLAGS environment variable on packaging. Maybe someone knows what particular value is used? Thank you!

You can see what the actual value is by running:

$ rpm --eval '%{optflags}'
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic

Hope it helps,

Ruben Kerkhof

#6 lore raw

НА: Official Ceph RPM build flags needed

Hello Ruben, Jeff, Daniel and others,

thank you very much for excellent assistance! :)

Best Regards,
Ilya Storozhilov
Lead Software Engineer

EPAM Systems
Tver office, Russia
GMT+4

EPAM Internal ext.:  55529
Office phone:        +7 (4822) 630-070 ext. 55529
Office fax:          +7 (4822) 630-073
Mobile phone:        +7 (904) 021-0763
E-mail:              [email protected]

http://www.epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.

________________________________________
От: Ruben Kerkhof <[email protected]> Отправлено: 4 июня 2014 г. 11:40
Кому: Ilya Storozhilov
Копия: Daniel Sterling; [email protected] Тема: Re: Official Ceph RPM build flags needed

Quoted 2 lines · Ilya Storozhilov

So it seems, that this is up to packager what to put to RPM_OPT_FLAGS environment variable on packaging. Maybe someone knows what particular value is used? Thank you!

You can see what the actual value is by running:

$ rpm --eval '%{optflags}'
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic

Hope it helps,

Ruben Kerkhof
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html