All of lore.kernel.org
 help / color / mirror / Atom feed
From: "K.R. Foley" <kr@cybsft.com>
To: Mark_H_Johnson@raytheon.com
Cc: Lee Revell <rlrevell@joe-job.com>, Andrew Morton <akpm@osdl.org>,
	Bill Huey <bhuey@lnxw.com>, Adam Heath <doogie@debian.org>,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
	Florian Schmidt <mista.tapas@gmx.net>,
	Fernando Pablo Lopez-Lezcano <nando@ccrma.Stanford.EDU>,
	Rui Nuno Capela <rncbc@rncbc.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: Real-Time Preemption, comparison to 2.6.10-mm1
Date: Thu, 06 Jan 2005 18:48:51 -0600	[thread overview]
Message-ID: <41DDDC73.5040209@cybsft.com> (raw)
In-Reply-To: <OF904F641A.CB09BC81-ON86256F80.007E3761-86256F80.007E37F5@raytheon.com>

Mark_H_Johnson@raytheon.com wrote:
>>Do you have a simple way of triggering and trapping the starvation? That
>>of course is probably asking for a lot. :)
> 
> 
> What I have been doing is now recorded as bug #3997 at
>   http://bugme.osdl.org/show_bug.cgi?id=3997
> Running latencytest has the advantage of generating some charts
> that I can show others how well (or poorly) the system runs.
> 
> I just rebooted in SMP and did a few other tests with the following
> steps that should be simpler to set up and run.
> 
> [1] Create cpu_test.c as follows:
> 
> #define LOOPS 100000000
> int main() {
>   int u, v, k, l;
>   for (v=0; v<100; v++) {
>     for (u=0; u<LOOPS; u++) {
>       k += 1;
>       if (!(u%100)) {
>       l += 1;
>       k = 0;
>       }
>     }
>   }
>   return k;
> }
> 
> On my 866 Mhz Pentium III, it runs for about 3 minutes, 45 seconds.
> Adjust the outer loop in the code if you need to run shorter or
> longer. I would not run more than 5 minutes - you should easily
> get the symptom before then. This also puts a limit of how long
> you have to wait if the system gets "stuck" and does not respond
> to your keyboard or mouse.
> 
> [2] Build the application
>   gcc -o cpu_test cpu_test.c
> 
> [3] On a two CPU system (or repeat this step N-1 times for
> your N cpu system). Run in a separate window...
>   chrt -f 10 ./cpu_test
> 
> [4] In a separate window...
>   nice ./cpu_test
> 
> At this point, you should have the system 100% utilized with N-1
> real time applications & 1 nice application. I used top to confirm
> this result.
> 
> [5] In a separate window do one or more of the following:
>   a. head -c $1 /dev/zero >tmpfile
>   (replacing $1 with about 1.5x your physical memory size
>    - this is my "disk write" test)
>   b. cp tmpfile tmpfile2
>   (this is my "disk copy" test)
>   c. cat tmpfile tmpfile2 >/dev/null
>   (this is my "disk read" test)
> delete the files when done.
> 
> It appears (at least on my system) that disk I/O triggers the
> problem more than the other tests (x11perf, top [with no delay]).
> 
> I was however in an odd situation [just before I sent this message]
> where it appeared that the disk copy was OK but I could not
> type on any of my windows - mouse entries were OK but not the
> keyboard. That may be a different variant of my "starvation
> problem".
> 
>   --Mark
> 
> 

I have been able to reproduce this on my system. Actually I can pretty 
much put the system to sleep, at least to all external input/output, for 
a period of time. I haven't had time to look into this further but will 
try to later tonight.

kr

  reply	other threads:[~2005-01-07  1:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-05 22:58 Real-Time Preemption, comparison to 2.6.10-mm1 Mark_H_Johnson
2005-01-07  0:48 ` K.R. Foley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-01-05 17:52 Mark_H_Johnson
2005-01-05 21:20 ` K.R. Foley
2005-01-05 13:55 Mark_H_Johnson
2005-01-05 14:38 ` K.R. Foley
2005-01-04 20:11 Mark_H_Johnson
2005-01-04 21:37 ` Lee Revell

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=41DDDC73.5040209@cybsft.com \
    --to=kr@cybsft.com \
    --cc=Mark_H_Johnson@raytheon.com \
    --cc=akpm@osdl.org \
    --cc=bhuey@lnxw.com \
    --cc=doogie@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mista.tapas@gmx.net \
    --cc=nando@ccrma.Stanford.EDU \
    --cc=rlrevell@joe-job.com \
    --cc=rncbc@rncbc.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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.