mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* realtime-preempt and arm
@ 2006-11-29  8:57 tike64
  2006-11-30 15:56 ` junjiec
  0 siblings, 1 reply; 14+ messages in thread
From: tike64 @ 2006-11-29  8:57 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I'm trying the realtime-preempt patch-2.6.18-rt6 on
lh7a400 arm system with little success. In a test
program I try 5 ms timeout with select() but get 20 ms
avg or 26 ms max. When the framebuffer scrolls, the
max delay goes up to 59 ms. With a vanilla kernel I
get 10 ms (because of tick resolution?), 11 ms and 39
ms.

My question is, is the realtime-preempt patch supposed
to work on arm architecture and/or without high
resolution timer (which lh7a40x seems to lack) at all
or should I just try to be more clever.

Relevant code:

====
prio.sched_priority = 99;
if (sched_setscheduler(0, SCHED_RR, &prio) < 0) ...
if (mlockall(MCL_CURRENT | MCL_FUTURE) < 0) ...
while (1) {
	t = raw_timer();
	tv.tv_usec = 5000;
	tv.tv_sec = 0;
	select(0, 0, 0, 0, &tv);
	t = raw_timer() - t;
	if (max_t < t) max_t = t;
	if (min_t > t) min_t = t;
	avg_t += t;
	++n;
	if (n < 100) continue;
	printf("%i revs; min: %i max: %i avg: %i\n",
		n,
		min_t,
		max_t,
		(avg_t + n / 2) / n);
====

Relevant config: PREEMPT_RT, PREEMPT_SOFTIRQS,
PREEMPT_HARDIRQS

I didnt' enable HIGH_RES_TIMERS because lh7a40x seems
not to support it.

--

tike



 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: realtime-preempt and arm
@ 2006-12-16  0:14 Robert Crocombe
  0 siblings, 0 replies; 14+ messages in thread
From: Robert Crocombe @ 2006-12-16  0:14 UTC (permalink / raw)
  To: linux-kernel

root@spanky:~$ uname -r
2.6.19.1-rt15_00

And I'm totally thrilled since this is the first -rt kernel that I've
tried and been able to boot since .16-rt29.  Yay!

root@spanky:~$ zcat /proc/config.gz | egrep "HZ.*=y"
CONFIG_HZ_1000=y

100 revs; min: 5008 max: 5034 avg: 5015
100 revs; min: 5008 max: 5023 avg: 5010
100 revs; min: 5008 max: 5015 avg: 5009
100 revs; min: 5008 max: 5018 avg: 5009
100 revs; min: 5008 max: 5017 avg: 5009
100 revs; min: 5008 max: 5015 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5017 avg: 5009
100 revs; min: 5008 max: 5014 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5015 avg: 5009
100 revs; min: 5008 max: 5017 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5023 avg: 5010
100 revs; min: 5008 max: 5015 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5015 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5015 avg: 5009
100 revs; min: 5008 max: 5017 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5016 avg: 5009
100 revs; min: 5008 max: 5017 avg: 5009
100 revs; min: 5008 max: 5018 avg: 5009
100 revs; min: 5008 max: 5019 avg: 5009
100 revs; min: 5008 max: 5013 avg: 5009

quad Opteron running x86_64 Fedora Core 5.

-- 
Robert Crocombe
rcrocomb@gmail.com

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

end of thread, other threads:[~2006-12-16  0:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-29  8:57 realtime-preempt and arm tike64
2006-11-30 15:56 ` junjiec
2006-12-01  9:07   ` tike64
2006-12-13 18:36     ` Steven Rostedt
2006-12-14  7:21       ` tike64
2006-12-14 10:00         ` Ingo Molnar
2006-12-14 10:26           ` tike64
2006-12-14 12:52             ` Steven Rostedt
2006-12-14 14:23               ` tike64
2006-12-14 15:20                 ` Steven Rostedt
2006-12-15  7:15                   ` tike64
2006-12-15  9:58                     ` Ingo Molnar
2006-12-15 13:00                       ` Steven Rostedt
2006-12-16  0:14 Robert Crocombe

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

Powered by JetHome