From: der.herr@hofr.at (Nicholas Mc Guire)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Best tests to measure Kernel Performance
Date: Thu, 3 Dec 2015 08:10:44 +0000 [thread overview]
Message-ID: <20151203081044.GA26570@osadl.at> (raw)
In-Reply-To: <20151203003650.GA31628@kroah.com>
On Wed, Dec 02, 2015 at 04:36:50PM -0800, Greg KH wrote:
> On Wed, Dec 02, 2015 at 05:50:30PM -0600, Victor Rodriguez wrote:
> > On Tue, Dec 1, 2015 at 7:32 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> > > On Tue, Dec 01, 2015 at 06:45:51PM -0600, Victor Rodriguez wrote:
> > >> Hi
> > >>
> > >> Despite the fact that this is not a well formulated question. I wonder
> > >> what tests could be a good subset to measure the performance of the
> > >> kernel . I have some approaches like phoronix does here :
> > >>
> > >> http://www.phoronix.com/scan.php?page=article&item=linux-41-byt&num=1
> > >>
> > >> I am sure postmark/ John the ripper/ Apache are good candidates but I
> > >> want to ask the community if there is some specific test that you
> > >> recommend
> > >
> > > It depends on what you want to test, specifically. The "kernel" isn't a
> > > very specific thing, what most of those tests test is the speed of the
> > > hardware, not specifically the kernel itself.
> > >
> > > good luck,
> > >
> > > greg k-h
> >
> > Thanks for the feedback . You are right they test the speed of the HW
> > however I have seen that when there is a change in the kernel for
> > network the performance of apache is changed, which make total sense .
>
> Maybe, maybe not, depending on if "apache" is cpu or hardware bound
> (networking hardware has physical limits...) again, you have to be very
> sure about exactly what you are wanting to test before using such a test
> to try to "validate" anything other than just raw hardware speed.
>
> Take a look at the "old" lmbench set of benchmarks for valid things that
> a kernel change can affect, it's much different from what you might be
> thinking of as a test.
>
We also still use lmbench as the usual first level of assessment as
it gives a lot of information about the change set impact on low-level
functions (system-calls, IPC, allocation...) was. It is much more precise
than trying to detect changes in complex applications that might only be making
a handful of a affected system call and thus look like
performance did not change while it actually did - just its in some
hard to reach corner case.
As with all testing - you need layers of testing to get a usable
picture of what is going on and lmbench is a good candidate for the
lowest level. Deducing system level changes from looking at complex
application performance changes is alost impossible.
Specifically lmbench has a simple make results; make rerun which can give
a good overview of differences - but actually the tests default runs are
only a small part of what the tests can uncover so looking at individual
microbenchmarks to discover latency/bandwidth changes can be very helpful
also to uncover odd hardware behavior.
Some other low-level benchmarks we use are:
rt-tests - scheduling, pi
NetPIPE - network bandwidth
bonnie++ - filesystem
thx!
hofrat
next prev parent reply other threads:[~2015-12-03 8:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 0:45 Best tests to measure Kernel Performance Victor Rodriguez
2015-12-02 1:32 ` Greg KH
2015-12-02 23:50 ` Victor Rodriguez
2015-12-03 0:36 ` Greg KH
2015-12-03 8:10 ` Nicholas Mc Guire [this message]
2015-12-03 16:57 ` Victor Rodriguez
2015-12-03 16:51 ` Victor Rodriguez
2015-12-03 17:00 ` Greg KH
2015-12-02 1:38 ` Valdis.Kletnieks at vt.edu
2015-12-02 23:57 ` Victor Rodriguez
2015-12-03 0:44 ` Valdis.Kletnieks at vt.edu
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=20151203081044.GA26570@osadl.at \
--to=der.herr@hofr.at \
--cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.