public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Peter Williams <pwil3058@bigpond.net.au>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
	ck list <ck@vds.kolivas.org>
Subject: Re: [ANNOUNCE] Interbench v0.24
Date: Tue, 2 Aug 2005 17:13:07 +1000	[thread overview]
Message-ID: <200508021713.07363.kernel@kolivas.org> (raw)
In-Reply-To: <42EF1C00.7090302@bigpond.net.au>

On Tue, 2 Aug 2005 05:08 pm, Peter Williams wrote:
> Con Kolivas wrote:
> > Interbench is a Linux Kernel Interactivity Benchmark.
> >
> > Direct download:
> > http://ck.kolivas.org/apps/interbench/interbench-0.24.tar.bz2
> > Web:
> > http://interbench.kolivas.org
> >
> > Changes:
> > 3 new loads were added:
> >
> > Gaming benchmark:
> > This simulates an unlocked frame rate cpu intensive 3d gaming
> > environment. It measures the latencies mean/sd/max and desired cpu
> > percentage only. These should give a marker of frame rate stability
> > (latencies), and maximum frame rates under different loads (desired cpu
> > percentage). As this simulates an unlocked frame rate the deadlines met
> > is meaningless. This does not accurately emulate a 3d game which is gpu
> > bound, only a cpu bound one.
> >
> > Hackbench:
> > Taken from Rusty's hackbench code as suggested by Ingo Molnar, this will
> > run 'hackbench 50' repeatedly in the background when benchmarking real
> > time performance.
> >
> > Custom:
> > Based on the periodic scheduling used for audio/video, custom will allow
> > you to specify a cpu percentage and frame rate of a custom workload, and
> > this can be used to benchmark this workload's performance under normal
> > scheduling, real time scheduling or it can be used as a background load.
> >
> >
> > Bugfixes:
> > Numerous floating point and overflow errors were tracked down and fixed.
> > These are responsible for results like 'nan' and 4294... which is
> > basically 2^32. Unfortunately the standard deviation reported in previous
> > versions appears to have been bogus, but fortunately little value was
> > placed on this result.
> >
> > Error handling was made _much_ more robust - for example it was found
> > that contrary to 'man sem_wait' but consistent with SUSv3, sem_wait can
> > return -1 with -EINTR.
> >
> > Lots of little tweaks.
>
> I've just been perusing the code and noticed that there is a bug in
> calculating the latency standard deviation caused by the fact that the
> latency that is inserted into the samples array is not necessarily the
> same as that added to total_latency and could be quite a bit larger.  So
> either the means are too small or the standard deviations are too large.
>
> BTW, there's a method for calculating variances and means that avoids
> the need to keep an array of samples.  Basically, in addition to the sum
> of the samples (sum_x, say) you keep a sum of the squares of the samples
> (sum_x_sq, say) and the number of samples (n, say).  Then:
>
> mean = sum_x / n
> variance = (sum_x_sq - (mean * mean) / n) / (n - 1)
> standard deviation = sqrt(variance)
>
> Without the need to keep the array of samples there's no need worry
> about an arbitrary upper limit on the number of samples.

Lovely! Thank you very much as that was causing me much grief indeed and your 
approach simplifies the code greatly.

Cheers,
Con

      reply	other threads:[~2005-08-02  7:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29  3:10 [ANNOUNCE] Interbench v0.24 Con Kolivas
     [not found] ` <42EA0EF8.2040202@staticwave.ca>
2005-07-29 11:27   ` [ck] " Con Kolivas
2005-07-29 11:47     ` Gabriel Devenyi
2005-07-29 11:49       ` Con Kolivas
2005-08-02  7:08 ` Peter Williams
2005-08-02  7:13   ` Con Kolivas [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=200508021713.07363.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=ck@vds.kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pwil3058@bigpond.net.au \
    /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