public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Haoqiang Zheng <haoqiang@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: question about contest benchmark
Date: Wed, 4 May 2005 07:58:56 +1000	[thread overview]
Message-ID: <200505040758.58752.kernel@kolivas.org> (raw)
In-Reply-To: <d6e6e6dd05050311115d256213@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2917 bytes --]

On Wed, 4 May 2005 04:11, Haoqiang Zheng wrote:
> I am wondering how we should interpret the CONTEST benchmark results.
> I tried CONTEST with process_load on 2.6.12-rc3 (single CPU, P4 2.8G,
> 1G RAM). The CPU usage of kernel compiling is 28.9%, the load consumes
> 70.1% and the ratio is 3.98.  Based on what Con says, the result is
> bad since the ratio is high. I did some tracing and found the
> background load (contest) runs at a dynamic priority of 115-120, which
> is often higher than the dynamic priority of the kernel compiling
> processes. This explains why the process_load consumes so much CPU.
>
>  My question is why is the result bad at all? One could certainly
> argue that contest processes shouldn't consume so much CPU time since
> they are considered to be background jobs. But why is kernel compiling
> considered foreground jobs? Why making kernel compiling faster is
> better? Actually, I am wondering if CONTEST is an appropriate
> benchmark to report system responsiveness at all?

I don't think in my readme do I say anywhere what is the ideal balance. 
Process_load is a uniquely different load to the other loads which are 
various combinations of cpu and i/o. It spawns processes that wake up, hand 
their data off to another process and go to sleep. Thus the processes behave 
like interactive one with their frequent waiting, but share their effective 
group cpu usage amongst all the process_child processes running so none of 
them is actually seen as cpu bound. Furthermore there are massive numbers of 
context switches between them meaning there is a large in-kernel "system" 
load that is done on behalf of the process_child ren. The purpose of the 
process_load in contest is to ensure that an interactive design is not 
DoS'able by processes behaving like this. Process_load spawns 4 times as many 
processes as the timed 'make' in contest so theoretically ideal cpu balance 
between them should show process_load having 4x as much cpu as the make. 
Because their cpu binding is so intermittent it's hard to balance them 
perfectly. Anyway the balance in your output seems pretty good. When the 
interactive design goes horribly wrong process_load consumes 100 times as 
much cpu as the 'make'.

>
>  Any comments?
>
>  BTW, what benchmark do you guys use to test system responsiveness?

Note that interactivity is not responsiveness which some people try to measure 
with contest, and there is still no interactivity benchmark. Responsiveness 
is the ability of the system to continue performing tasks at a reasonable 
pace under various system loads. Interactivity is having low scheduling 
latency and jitter in those tasks where human interaction would notice the 
latency and jitter - and what constitutes and interactive tasks has not been 
quantified although we all know what they are when using the pc.

Cheers,
Con

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-05-03 21:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-03 18:11 question about contest benchmark Haoqiang Zheng
2005-05-03 18:29 ` Lee Revell
2005-05-03 20:09   ` Valdis.Kletnieks
2005-05-03 20:45     ` Lee Revell
2005-05-03 21:58 ` Con Kolivas [this message]
2005-05-03 22:30   ` Haoqiang Zheng

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=200505040758.58752.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=haoqiang@gmail.com \
    --cc=linux-kernel@vger.kernel.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