mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Carlos Antunes <cmantunes@gmail.com>
To: Florian Schmidt <mista.tapas@gmx.net>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Fernando Lopez-Lezcano <nando@ccrma.stanford.edu>,
	Ingo Molnar <mingo@elte.hu>, Rui Nuno Capela <rncbc@rncbc.org>,
	"K.R. Foley" <kr@cybsft.com>, john stultz <johnstul@us.ibm.com>,
	Mark Knecht <markknecht@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.14-rt1
Date: Wed, 2 Nov 2005 09:35:12 -0500	[thread overview]
Message-ID: <cb2ad8b50511020635qb355f33w6f3638972556c242@mail.gmail.com> (raw)
In-Reply-To: <20051102102116.3b0c75d1@mango.fruits.de>

On 11/2/05, Florian Schmidt <mista.tapas@gmx.net> wrote:
> On Tue, 1 Nov 2005 23:05:09 -0500
> Carlos Antunes <cmantunes@gmail.com> wrote:
>
> > Here's the thing:
> > http://www.nowthor.com/OpenPBX/timing.c
> >
> > Let me know what kind of results you get.
>
> Hi,
>
> running the code i simply get:
>
> ~$ ./timing
> Failed to create thread # 382
> Failed to create thread # 383
> Failed to create thread # 384
> Failed to create thread # 385
> Failed to create thread # 386
> Failed to create thread # 387
> ..
> Failed to create thread # 498
> Failed to create thread # 499
>
> and then
>
> Segmentation fault
>

That's interesting. Are you running a fairly recent pthread lib?

>
> Probably caused by not handling that some threads didn't get created. I
> reduced the number down to 300:
>
> ~$ ./timing
> Histogram
> Delay(ms)       Count
>  0              300000
>  1              0
>  2              0
>  3              0
>  4              0
>  5              0
>  6              0
>  7              0
>  8              0
>  9              0
> 10              0
> 11              0
> 12              0
> 13              0
> 14              0
> 15              0
> 16              0
> 17              0
> 18              0
> 19              0
> 20              0
> Num threads = 300
> Total sleeps = 300000
> Min error = 0.014 ms
> Max error = 0.133 ms
>
> What would you expect to see? BTW: cpu load stayed moderately small with
> this setting here.
>

Did you run that with SCHED_FIFO or SCHED_OTHER? If it was with
SCHED_FIFO, it was a pretty good result. But maybe your machine is
just very fast. What CPU is that? DId you use 2.6.14-rt2 or some other
version?

>
> As a sidenote: Of course the scheduling works completely different with
> hundreds of threads running SCHED_FIFO at the same priority than with
> hundreds of threads running SCHED_OTHER. SCHED_OTHER threads can preempt
> each other when the dynamic priority changes. SCHED_FIFO threads OTOH
> just sit and wait until they get to run, not preempting other SCHED_FIFO
> threads of the same priority. So basically each SCHED_FIFO thread waits
> until all others have run.
>

Yes, they are supposed to act differently. In particular, my
understanding of realtime scheduling suggests SCHED_FIFO is supposed
to provide better (meaning lower) wakeup latency.

Thanks for tryting this out. Although I'm still puzzled at the low
number of threads you were able to create.

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-02 14:35 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-17 16:05 2.6.14-rc4-rt7 Ingo Molnar
2005-10-17 17:06 ` 2.6.14-rc4-rt7 Mark Knecht
2005-10-17 19:21 ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-18  1:30   ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-18  1:50     ` 2.6.14-rc4-rt7 Mark Knecht
2005-10-18  6:54     ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-18  7:28     ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-18 14:11       ` 2.6.14-rc4-rt7 K.R. Foley
2005-10-18 14:49         ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-18 21:04       ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-18 21:31         ` 2.6.14-rc4-rt7 William Weston
2005-10-19  6:01           ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-19 11:19           ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-20 19:12             ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-20 19:16               ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-20 23:55                 ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-21  8:05                   ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-21 23:25                     ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-22  0:20                       ` 2.6.14-rc4-rt7 Mark Knecht
2005-10-22  3:41                         ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-22  5:12                           ` 2.6.14-rc4-rt7 Lee Revell
2005-10-22 23:25                             ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-22  3:58                       ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-24 19:28                         ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-24 19:38                           ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-24 19:46                             ` 2.6.14-rc4-rt7 john stultz
2005-10-25  9:17                               ` 2.6.14-rc4-rt7 Antonio
2005-10-25 15:44                               ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-25 15:58                                 ` 2.6.14-rc4-rt7 linux-os (Dick Johnson)
2005-10-25 17:35                                 ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-10-25 18:16                                 ` 2.6.14-rc4-rt7 john stultz
2005-10-25 20:12                                   ` 2.6.14-rc4-rt7 George Anzinger
2005-10-26  8:28                                     ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-26 16:03                                       ` 2.6.14-rc4-rt7 George Anzinger
2005-10-26 17:17                                         ` 2.6.14-rc4-rt7 George Anzinger
2005-10-26 20:45                                           ` 2.6.14-rc4-rt7 Rui Nuno Capela
2005-10-26 22:07                                             ` 2.6.14-rc4-rt7 William Weston
2005-10-26 23:33                                               ` 2.6.14-rc4-rt7 john stultz
2005-10-26 23:54                                                 ` 2.6.14-rc4-rt7 William Weston
2005-10-26 23:58                                                 ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27  0:11                                                   ` 2.6.14-rc4-rt7 john stultz
2005-10-27  0:34                                                 ` 2.6.14-rc4-rt7 William Weston
2005-10-26 23:57                                               ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27  0:02                                                 ` 2.6.14-rc4-rt7 William Weston
2005-10-27  0:45                                                 ` 2.6.14-rc4-rt7 john stultz
2005-10-27  1:07                                                   ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27  1:22                                                     ` 2.6.14-rc4-rt7 john stultz
2005-10-27  1:37                                                       ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27  1:52                                                         ` 2.6.14-rc4-rt7 john stultz
2005-10-27  2:11                                                           ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27 22:01                                                             ` 2.6.14-rc4-rt7 William Weston
2005-10-27 22:32                                                               ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27  1:26                                                     ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27  8:01                                                 ` 2.6.14-rc4-rt7 Rui Nuno Capela
2005-10-27 17:44                                                   ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-27 23:18                                                     ` 2.6.14-rc4-rt7 Rui Nuno Capela
2005-10-28 17:13                                                     ` 2.6.14-rc4-rt7 Fernando Lopez-Lezcano
2005-11-03 22:13                                       ` 2.6.14-rc4-rt7 - [PATCH] improved boot time TSC synchronization Jim Houston
2005-10-24 20:39                             ` 2.6.14-rc4-rt7 Steven Rostedt
2005-10-24 21:00                               ` 2.6.14-rc4-rt7 Lee Revell
2005-10-17 21:43 ` 2.6.14-rc4-rt7 Daniel Walker
2005-10-17 22:03   ` 2.6.14-rc4-rt7 Thomas Gleixner
2005-10-17 22:05     ` 2.6.14-rc4-rt7 Daniel Walker
2005-10-17 22:15       ` 2.6.14-rc4-rt7 Thomas Gleixner
2005-10-18  6:42   ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-18 16:23     ` 2.6.14-rc4-rt7 Daniel Walker
2005-10-18 20:26       ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-18  0:19 ` 2.6.14-rc4-rt7 Daniel Walker
2005-10-18  6:45   ` 2.6.14-rc4-rt7 Ingo Molnar
2005-10-20 19:54 ` 2.6.14-rc5-rt1 Ingo Molnar
2005-10-20 23:33   ` 2.6.14-rc5-rt1 Felix Oxley
2005-10-21  0:39     ` 2.6.14-rc5-rt1 Mark Knecht
2005-10-21 13:47       ` 2.6.14-rc5-rt1 Mark Knecht
2005-10-21 10:01     ` 2.6.14-rc5-rt1 Felix Oxley
2005-10-21 10:16       ` 2.6.14-rc5-rt1 Ingo Molnar
2005-10-21 10:18       ` 2.6.14-rc5-rt1 Felix Oxley
2005-10-21 10:26         ` 2.6.14-rc5-rt1 Felix Oxley
2005-10-22 23:23           ` 2.6.14-rc5-rt1 Felix Oxley
2005-10-24 22:28             ` [ANNOUNCE] 2.6.14-rc5-rt5 kgdb update George Anzinger
2005-11-12 15:32               ` Ingo Molnar
2005-11-12 15:33                 ` Ingo Molnar
2005-11-12 16:10                 ` George Anzinger
2005-10-30 13:33   ` 2.6.14-rt1 Ingo Molnar
2005-10-30 14:58     ` 2.6.14-rt1 K.R. Foley
2005-10-30 15:41       ` 2.6.14-rt1 Steven Rostedt
2005-10-30 17:17         ` 2.6.14-rt1 Ingo Molnar
2005-10-30 17:19       ` 2.6.14-rt1 Ingo Molnar
2005-10-30 16:30     ` 2.6.14-rt1 Mark Knecht
2005-10-31 18:13     ` 2.6.14-rt1 Fernando Lopez-Lezcano
2005-11-01 20:18     ` 2.6.14-rt1 Fernando Lopez-Lezcano
2005-11-02  2:47       ` 2.6.14-rt1 Fernando Lopez-Lezcano
2005-11-02  2:55         ` 2.6.14-rt1 Carlos Antunes
2005-11-02  3:05           ` 2.6.14-rt1 Steven Rostedt
2005-11-02  3:26             ` 2.6.14-rt1 Carlos Antunes
2005-11-02  3:32               ` 2.6.14-rt1 Steven Rostedt
2005-11-02  3:36                 ` 2.6.14-rt1 Carlos Antunes
2005-11-02  4:05                 ` 2.6.14-rt1 Carlos Antunes
2005-11-02  9:21                   ` 2.6.14-rt1 Florian Schmidt
2005-11-02 14:35                     ` Carlos Antunes [this message]
2005-11-02 14:40                       ` 2.6.14-rt1 Ingo Molnar
2005-11-02 14:45                         ` 2.6.14-rt1 Carlos Antunes
2005-11-02 15:37                           ` 2.6.14-rt1 Steven Rostedt
2005-11-02 16:07                             ` 2.6.14-rt1 Carlos Antunes
2005-11-02 16:24                               ` 2.6.14-rt1 Steven Rostedt
2005-11-02 16:53                                 ` 2.6.14-rt1 Carlos Antunes
2005-11-02 16:37                               ` 2.6.14-rt1 Steven Rostedt
2005-11-02 18:13           ` 2.6.14-rt1 Fernando Lopez-Lezcano
2005-11-02  7:02       ` 2.6.14-rt1 Ingo Molnar
2005-11-02 18:13         ` 2.6.14-rt1 Fernando Lopez-Lezcano
2005-11-04  7:04         ` 2.6.14-rt1 Fernando Lopez-Lezcano
2005-11-02 21:41     ` 2.6.14-rt4: __get_nsec_offset() false positives john stultz
2005-11-03  6:53       ` Ingo Molnar
2005-11-05  2:35     ` 2.6.14-rt1 (now rt6) Fernando Lopez-Lezcano
2005-11-05  3:46       ` Mark Knecht
2005-11-09 11:22       ` Ingo Molnar
2005-11-10 12:15       ` Ingo Molnar
2005-11-10 22:10         ` Fernando Lopez-Lezcano

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=cb2ad8b50511020635qb355f33w6f3638972556c242@mail.gmail.com \
    --to=cmantunes@gmail.com \
    --cc=johnstul@us.ibm.com \
    --cc=kr@cybsft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markknecht@gmail.com \
    --cc=mingo@elte.hu \
    --cc=mista.tapas@gmx.net \
    --cc=nando@ccrma.stanford.edu \
    --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 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®