mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Carlos Antunes <cmantunes@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Realtime-preempt performs worse for many threads?
Date: Tue, 1 Nov 2005 15:02:43 -0500	[thread overview]
Message-ID: <cb2ad8b50511011202l5bdc8c82se145adf158221e28@mail.gmail.com> (raw)

Hi!

I've been developing some code for the OpenPBX project
(http://www.openpbx.org) and wrote a program to test how the system,
responds when hundreds of threads are spawned. These threads run at
high priority (SCHED_FIFO) and use clock_nanocleep with absolute
timeouts on a 20ms loop cycle.

With the stock 2.6.14 kernel, I get latencies in the order of several
milliseconds (but less than 20ms) when running 1250 threads
simultaneously. However, when I switch to a kernel patched with
realtime-preempt latency increases to several hundred milliseconds in
many cases.

When I only only spawn 10 or so threads, realtime-preempt gives me
latencies of less than 1ms while the stock kernel still gives me a few
milliseconds. However, when the number of threads sleeping on
clock_nanosleep increases to several hundred, things just break.

Should I assume that realtime-preempt at this time is not ready to
deal with hundreds of realtime threads sleeping most of the time on
clock_nanosleep?

Any ideas on how to maybe debug this and see if there is some kind of problem?

Thanks!

Carlos



--
"We hold [...] that all men are created equal; that they are
endowed [...] with certain inalienable rights; that among
these are life, liberty, and the pursuit of happiness"
        -- Thomas Jefferson

             reply	other threads:[~2005-11-01 20:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-01 20:02 Carlos Antunes [this message]
2005-11-01 23:27 ` Esben Nielsen
     [not found]   ` <cb2ad8b50511011553x57ff9e4dv7f49875cf8a5d7e0@mail.gmail.com>
2005-11-02  0:29     ` Carlos Antunes
2005-11-01 23:09       ` Jeff V. Merkey
2005-11-02  0:32       ` Esben Nielsen

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=cb2ad8b50511011202l5bdc8c82se145adf158221e28@mail.gmail.com \
    --to=cmantunes@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

all inboxes | Powered by JetHome®