mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Austin S Hemmelgarn <ahferroin7@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Linux-Kernel mailing list <linux-kernel@vger.kernel.org>,
	Alan Cox <alan@redhat.com>
Subject: Re: [PATCH 1/1] x86_64: add config options to optimize for newer AMD processors
Date: Thu, 3 Oct 2013 20:28:45 +0200	[thread overview]
Message-ID: <20131003182845.GB17417@pd.tnic> (raw)
In-Reply-To: <524DB377.2070909@gmail.com>

On Thu, Oct 03, 2013 at 02:12:07PM -0400, Austin S Hemmelgarn wrote:
> Part of the difference between our results may be that I have my
> entire userspace built with -mtune=bdver2, so less of the time is
> spent in userspace.

That still cannot explain the huge difference between building on a
mk8 vs bdver2 kernel. Provided your userspace is the same and only the
kernels are different, I don't see how that happens.

Btw, you could run my workload on your machine, once on an mk8 kernel
and once on a bdver2 one.

The contents of the pre-build-kernel.sh script are:

--
#!/bin/bash

make -s clean
echo 3 > /proc/sys/vm/drop_caches
--

Of course, you need to run this as root.

> Also, the part about using many more threads than cpu cores was with
> regards to sysbench, not the kernel build, for that I just used 8 jobs
> in make.

Overcommitting gcc threads does not bring a really a big difference with
a kernel build.

> With regards to the differences shown above relative to CONFIG_MK8,
> that does actually make sense; with CONFIG_MK8, gcc makes very minimal
> use of extension instructions (afaik, only MMX, SSE, and 3Dnow!), this
> improves performance slightly on bulldozer derivatives because there
> are only half as many SSE and FP units as CPU cores (and the

yes, the FPU is shared between the cores of a compute unit on BD.

> scheduler isn't as smart as it could be with regards to that, but that
> is something for another patch as far as I am concerned).

Again, with unchanging userspace and only differing kernels, you
shouldn't be seeing such a big difference. Besides, the kernel itself
makes very little, if at all, use of FPU instructions.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

      reply	other threads:[~2013-10-03 18:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 17:54 Austin S Hemmelgarn
2013-09-29 18:01 ` Borislav Petkov
2013-09-29 20:41   ` Austin S Hemmelgarn
2013-09-29 20:50     ` Borislav Petkov
2013-09-29 21:23       ` Austin S Hemmelgarn
2013-09-29 21:30         ` Borislav Petkov
2013-10-03 13:42           ` Austin S Hemmelgarn
     [not found]           ` <524D5DAC.3000004@gmail.com>
2013-10-03 16:27             ` Linus Torvalds
2013-10-03 16:57               ` Borislav Petkov
2013-10-03 18:12                 ` Austin S Hemmelgarn
2013-10-03 18:28                   ` Borislav Petkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131003182845.GB17417@pd.tnic \
    --to=bp@alien8.de \
    --cc=ahferroin7@gmail.com \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®