public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [patch] voluntary-preempt-2.6.8.1-P2
@ 2004-08-16 12:52 jjluza
  2004-08-16 18:29 ` Peter Zijlstra
  0 siblings, 1 reply; 23+ messages in thread
From: jjluza @ 2004-08-16 12:52 UTC (permalink / raw)
  To: linux-kernel

It fails here at compile time with :

arch/i386/kernel/built-in.o(.text+0x2fc5): In function `do_nmi':
: undefined reference to `__trace'
arch/i386/kernel/built-in.o(.text+0x3723): In function `do_IRQ':
: undefined reference to `__trace'
arch/i386/mm/built-in.o(.text+0x7ba): In function `do_page_fault':
: undefined reference to `__trace'
make[1]: *** [vmlinux] Erreur 1
make[1]: Leaving directory `/usr/src/linux-2.6.8'
make: *** [stamp-build] Erreur 2


I also got offset when applying the patch. (P1 hadn't this problem)


Regards.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [patch] voluntary-preempt-2.6.8.1-P0
@ 2004-08-16  2:36 Ingo Molnar
  2004-08-16  2:43 ` Lee Revell
  0 siblings, 1 reply; 23+ messages in thread
From: Ingo Molnar @ 2004-08-16  2:36 UTC (permalink / raw)
  To: Lee Revell; +Cc: Florian Schmidt, linux-kernel, Felipe Alfaro Solana


* Lee Revell <rlrevell@joe-job.com> wrote:

> There are a number of samples above 700us.  I am working with a period
> time of 666 usecs, and since there are 2 periods per buffer, we would
> have to hit two > 666 usec latencies in a row for an xrun - it appears
> that there are many individual latencies above 666, certainly more
> than there are xruns.  So, maybe the mlockall issue is not a result of
> triggering a single large latency, but of increasing the frequency of
> these higher latencies so that we are more likely to hit 2 in a row.

hm, it seems the mlockall() issue is too deterministic for it to be a
statistical-only phenomenon. Also, isnt that xrun on the order of 15
msecs? That's way too big too.

> IIRC ksoftirqd will defer more work under load, and ksoftirqd is one
> of the more common offenders to hit the extract_entropy latency. 
> Maybe mlockall causes more softirqs to be deferred, thus increaing the
> change that we will have to do more than 666 usecs worth of work on 2
> successive wakeups.

there should be no relation between softirqs and mlockall().

this is truly a mind-boggling latency. mlockall() is fully preemptible. 
All it does is to pre-fault the whole range of pages that a process has.

could you try another thing: modify mlockall-test.cc to use mlock() on
the freshly allocated anonymous pages? Does this produce the same
latencies? mlockall() prefaults _all_ pages the process currently has. 
Maybe mlockall() touches some page that is mapped both by jackd and
mlockall-test and thus somehow interacts with jackd's scheduling.

the anonymous pages themselves can have no IPC-alike connection to any
page jackd owns. It is unlikely for that to be any connection between
jackd and mlockall-test - other than both map glibc. To further exclude
any possibility of resource sharing between jackd and mlockall-test,
could you compile the later with -static?

	Ingo

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-08-19  7:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-16 12:52 [patch] voluntary-preempt-2.6.8.1-P2 jjluza
2004-08-16 18:29 ` Peter Zijlstra
  -- strict thread matches above, loose matches on Subject: below --
2004-08-16  2:36 [patch] voluntary-preempt-2.6.8.1-P0 Ingo Molnar
2004-08-16  2:43 ` Lee Revell
2004-08-16  3:28   ` Ingo Molnar
2004-08-16  3:36     ` Ingo Molnar
2004-08-16  3:41       ` Lee Revell
2004-08-16  3:46         ` Ingo Molnar
2004-08-16  3:54           ` Lee Revell
2004-08-16  4:05             ` [patch] voluntary-preempt-2.6.8.1-P1 Ingo Molnar
2004-08-16 11:13               ` Thomas Charbonnel
2004-08-16 11:31                 ` Ingo Molnar
2004-08-16 12:09                   ` [patch] voluntary-preempt-2.6.8.1-P2 Ingo Molnar
2004-08-16 13:26                     ` Thomas Charbonnel
2004-08-16 14:12                       ` Thomas Charbonnel
2004-08-16 14:50                         ` Thomas Charbonnel
2004-08-16 14:58                           ` Ingo Molnar
2004-08-16 15:10                             ` Thomas Charbonnel
2004-08-16 15:37                               ` Ingo Molnar
2004-08-16 16:14                                 ` Thomas Charbonnel
2004-08-17  0:04                         ` Lee Revell
2004-08-17  4:24                     ` Lee Revell
2004-08-17  7:30                       ` Ingo Molnar
2004-08-17  7:33                         ` Lee Revell
2004-08-17  8:06                         ` Lee Revell
2004-08-17 11:26                     ` Thomas Charbonnel
2004-08-19  7:49                       ` Ingo Molnar
2004-08-18 12:22                     ` Thomas Charbonnel
2004-08-18 13:30                       ` Takashi Iwai
2004-08-18 15:26                         ` Thomas Charbonnel
2004-08-18 15:46                           ` Takashi Iwai
2004-08-18 16:53                             ` Thomas Charbonnel
2004-08-19  7:47                       ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox