From: Bill Davidsen <davidsen@tmr.com>
To: Christoph Stueckjuergen <christoph.stueckjuergen@siemens.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.1 Scheduler Latency Measurements (Preemption diabled/enabled)
Date: Tue, 17 Feb 2004 22:41:30 -0500 [thread overview]
Message-ID: <4032DEEA.1060007@tmr.com> (raw)
In-Reply-To: <200402031724.17994.christoph.stueckjuergen@siemens.com>
Christoph Stueckjuergen wrote:
> Hi,
>
> I performed a series of measurements comparing scheduler latency of a 2.6.1
> kernel with preemption enabled and disabled on an AMD Elan (i486 compatible)
> with 133 Mhz clock frequency.
>
> The measurements were performed with a kernel module and a user mode process
> that communicate via a character device interface. The user mode process uses
> a blocking read() call to obtain data from the kernel. The kernel module
> reads the system time every 10 ms by calling do_gettimeofday(), wakes up the
> sleeping user mode process and passes the system time to it. After having
> received the system time from the kernel, the user mode process reads the
> system time by calling gettimeofday() and is thus able to determine the
> scheduler latency by subtracting the two times. The user mode process is run
> with the SCHED_FIFO scheduling policy.
>
> Measurements were carried out on a „loaded“ and an „unloaded“ system. The
> „load“ was created by a process that continuously writes data to the serial
> interface /dev/ttyS0.
>
> The results are:
> "loaded" system, 10.000 samples
> average scheduler latency (preemption enabled / disabled): 170 us / 232 us
> minimum scheduler latency (preemption enabled / disabled): 49 us / 43 us
> maximum scheduler latency (preemption enabled / disabled): 840 us / 1063 us
>
> "unloaded" system, 10.000 samples
> average scheduler latency (preemption enabled / disabled): 50 us / 44 us
> minimum scheduler latency (preemption enabled / disabled): 46 us / 41 us
> maximum scheduler latency (preemption enabled / disabled): 233 us / 215 us
>
> Any help in interpreting the data would be highly appreciated. Especially:
> - Why does preemption lead to a higher minimum scheduler latency in the loaded
> case?
> - Why does preemption worsen scheduler latency on the unloaded system?
>
> Best regards,
> Christoph
>
> PS: I am not subscribed, please CC me if you answer!
Have you considered repeating your test on 2.6.3-rc3-mm1 or similar with
all of the most recent thinking on scheduling?
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
next prev parent reply other threads:[~2004-02-18 3:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-03 16:24 2.6.1 Scheduler Latency Measurements (Preemption diabled/enabled) Christoph Stueckjuergen
2004-02-04 0:19 ` Nick Piggin
2004-02-04 0:37 ` Robert Love
2004-02-18 3:41 ` Bill Davidsen [this message]
2004-02-18 4:07 ` Nick Piggin
2004-02-18 7:42 ` Christoph Stueckjuergen
-- strict thread matches above, loose matches on Subject: below --
2004-02-18 21:00 Roger Larsson
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=4032DEEA.1060007@tmr.com \
--to=davidsen@tmr.com \
--cc=christoph.stueckjuergen@siemens.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