Re: Why not build kernel with -O3

2015-04-27 Thread Pavel Machek
Hi! > I have conducted some experiments to compare kernels built with -O2 > and -O3. Here are the results: > > Application Performance O2 Performance O3 Improvement > Apache 127814.14 req/s 130321.24 req/s 1.96% > Nginx537589.08 req/s 556723.32 req/s 3.56% > MySQL70

Re: Why not build kernel with -O3

2015-04-08 Thread Austin S Hemmelgarn
On 2015-04-08 09:19, Pengfei Yuan wrote: 2015-04-08 20:06 GMT+08:00 Austin S Hemmelgarn : I can't remember any off the top of my head, but it does say explicitly in the GCC manual to be careful with -O3. IIRC, most of the issues relate to -O3 enabling -ffast-math (which tends to really mess wit

Re: Why not build kernel with -O3

2015-04-08 Thread Richard Weinberger
Am 08.04.2015 um 15:16 schrieb Pengfei Yuan: > 2015-04-08 20:19 GMT+08:00 Richard Weinberger : >> On Wed, Apr 8, 2015 at 3:00 AM, Pengfei Yuan <0xcool...@gmail.com> wrote: >>> Could you please provide some examples that I can investigate? >>> Thanks! >> >> It would be awesome if you could find out

Re: Why not build kernel with -O3

2015-04-08 Thread Pengfei Yuan
2015-04-08 20:06 GMT+08:00 Austin S Hemmelgarn : > I can't remember any off the top of my head, but it does say explicitly in > the GCC manual to be careful with -O3. IIRC, most of the issues relate to > -O3 enabling -ffast-math (which tends to really mess with code that expects > strict IEEE 754

Re: Why not build kernel with -O3

2015-04-08 Thread Pengfei Yuan
2015-04-08 20:19 GMT+08:00 Richard Weinberger : > On Wed, Apr 8, 2015 at 3:00 AM, Pengfei Yuan <0xcool...@gmail.com> wrote: >> Could you please provide some examples that I can investigate? >> Thanks! > > It would be awesome if you could find out which gcc optimizations > cause the speed up. > "gcc

Re: Why not build kernel with -O3

2015-04-08 Thread One Thousand Gnomes
> I can't remember any off the top of my head, but it does say explicitly > in the GCC manual to be careful with -O3. IIRC, most of the issues > relate to -O3 enabling -ffast-math (which tends to really mess with code > that expects strict IEEE 754 compliance), so it may not be as much of an >

Re: Why not build kernel with -O3

2015-04-08 Thread Austin S Hemmelgarn
On 2015-04-08 08:19, Richard Weinberger wrote: On Wed, Apr 8, 2015 at 3:00 AM, Pengfei Yuan <0xcool...@gmail.com> wrote: Could you please provide some examples that I can investigate? Thanks! It would be awesome if you could find out which gcc optimizations cause the speed up. "gcc -c -Q -O3 -

Re: Why not build kernel with -O3

2015-04-08 Thread Richard Weinberger
On Wed, Apr 8, 2015 at 3:00 AM, Pengfei Yuan <0xcool...@gmail.com> wrote: > Could you please provide some examples that I can investigate? > Thanks! It would be awesome if you could find out which gcc optimizations cause the speed up. "gcc -c -Q -O3 --help=optimizers" will help you. Please also d

Re: Why not build kernel with -O3

2015-04-08 Thread Austin S Hemmelgarn
On 2015-04-07 21:00, Pengfei Yuan wrote: Could you please provide some examples that I can investigate? Thanks! 2015-04-08 2:05 GMT+08:00 Austin S Hemmelgarn : On 2015-04-07 06:09, Mike Galbraith wrote: On Tue, 2015-04-07 at 15:56 +0800, Pengfei Yuan wrote: I am trying legacy GCC versions. Bu

Re: Why not build kernel with -O3

2015-04-07 Thread Pengfei Yuan
Could you please provide some examples that I can investigate? Thanks! 2015-04-08 2:05 GMT+08:00 Austin S Hemmelgarn : > On 2015-04-07 06:09, Mike Galbraith wrote: >> On Tue, 2015-04-07 at 15:56 +0800, Pengfei Yuan wrote: >>> I am trying legacy GCC versions. >>> But I am not able to try different

Re: Why not build kernel with -O3

2015-04-07 Thread Austin S Hemmelgarn
On 2015-04-07 06:09, Mike Galbraith wrote: > On Tue, 2015-04-07 at 15:56 +0800, Pengfei Yuan wrote: >> I am trying legacy GCC versions. >> But I am not able to try different architectures. > > The point of my reply wasn't to get you to actually test the world ;-) > > I was indirectly pointing out

Re: Why not build kernel with -O3

2015-04-07 Thread Mike Galbraith
On Tue, 2015-04-07 at 15:56 +0800, Pengfei Yuan wrote: > I am trying legacy GCC versions. > But I am not able to try different architectures. The point of my reply wasn't to get you to actually test the world ;-) I was indirectly pointing out that "works for me" is not good enough justification.

Re: Why not build kernel with -O3

2015-04-07 Thread Mike Galbraith
On Tue, 2015-04-07 at 10:07 +0300, Boaz Harrosh wrote: > > He did say optional. So I'd imagine it would be a Kconfig of its own. > So the default can be as today, but people that want to experiment > need not hack the source code. Anybody wanting to play with it will just twiddle the Makefile.

Re: Why not build kernel with -O3

2015-04-07 Thread Pengfei Yuan
I am trying legacy GCC versions. But I am not able to try different architectures. 2015-04-07 14:43 GMT+08:00 Mike Galbraith : > On Tue, 2015-04-07 at 11:37 +0800, Pengfei Yuan wrote: >> Hi, >> >> I have conducted some experiments to compare kernels built with -O2 >> and -O3. Here are the results:

Re: Why not build kernel with -O3

2015-04-07 Thread Boaz Harrosh
On 04/07/2015 09:43 AM, Mike Galbraith wrote: > On Tue, 2015-04-07 at 11:37 +0800, Pengfei Yuan wrote: >> Hi, >> >> I have conducted some experiments to compare kernels built with -O2 >> and -O3. Here are the results: >> >> Application Performance O2 Performance O3 Improvement >> Apache

Re: Why not build kernel with -O3

2015-04-06 Thread Mike Galbraith
On Tue, 2015-04-07 at 11:37 +0800, Pengfei Yuan wrote: > Hi, > > I have conducted some experiments to compare kernels built with -O2 > and -O3. Here are the results: > > Application Performance O2 Performance O3 Improvement > Apache 127814.14 req/s 130321.24 req/s 1.96% > Nginx

Why not build kernel with -O3

2015-04-06 Thread Pengfei Yuan
Hi, I have conducted some experiments to compare kernels built with -O2 and -O3. Here are the results: Application Performance O2 Performance O3 Improvement Apache 127814.14 req/s 130321.24 req/s 1.96% Nginx537589.08 req/s 556723.32 req/s 3.56% MySQL70661.38 tx/s