Re: [PATCH 0/5] kernel hacking: GCC optimization for debug experience (-Og)

From: Ingo Molnar
Date: Wed May 02 2018 - 07:09:29 EST



* Du, Changbin <changbin.du@xxxxxxxxx> wrote:

> On Wed, May 02, 2018 at 09:33:15AM +0200, Ingo Molnar wrote:
> >
> > * changbin.du@xxxxxxxxx <changbin.du@xxxxxxxxx> wrote:
> >
> > > Comparison of system performance: a bit drop.
> > >
> > > w/o CONFIG_DEBUG_EXPERIENCE
> > > $ time make -j4
> > > real 6m43.619s
> > > user 19m5.160s
> > > sys 2m20.287s
> > >
> > > w/ CONFIG_DEBUG_EXPERIENCE
> > > $ time make -j4
> > > real 6m55.054s
> > > user 19m11.129s
> > > sys 2m36.345s
> >
> > Sorry, that's not a proper kbuild performance measurement - there's no noise
> > estimation at all.
> >
> > Below is a description that should produce more reliable numbers.
> >
> > Thanks,
> >
> > Ingo
> >
> Thanks for your suggestion, I will try your tips to eliminate noise. Since it is
> tested in KVM guest, so I just reboot the guest before testing. But in host side
> I still need to consider these noises.

Please test the impact on the host, guest tests are typically too noisy for such
comparisons.

BTW., for guest tests rebooting the guest is not enough to replicate the method I
suggested.

Thanks,

Ingo