linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Help on tuning the Linux kernel for soft real-time requiremen ts
@ 2004-10-18 22:44 Zajac Adam-AAZ004
  2004-10-19  1:51 ` Eugene Surovegin
  0 siblings, 1 reply; 6+ messages in thread
From: Zajac Adam-AAZ004 @ 2004-10-18 22:44 UTC (permalink / raw)
  To: 'Eugene Surovegin'; +Cc: linuxppc-embedded

Eugene,

It sounds like you're doing exactly what we've been trying to achieve.
We're trying to meet soft real-time deadlines that are in order of seconds
(2sec).
The only differences between our systems are:
- kernel 2.4.20
- HZ = 100
- Compact Flash

We tried to do a similar thing to the scenario you described where we were
running all other threads with SCHED_OTHER, and the thread with real-time
priority with RoundRobin scheduler policy. We keep experiencing the greatest
slips for such file system intensive operations like gzip and tar.
Also, for an experiment, we tried to turn disk caching off, which helped
meeting the deadlines a little but slowed down all file transfers
unacceptably.
To eliminate the question on the compact flash performance we tried using
NFS. Using NFS  yielded similar results (missed deadlines) to performing the
transfers with the cflash card.

Did you have to set anything special at your kernel config file (.config)?
Did you need to apply low-latency patch separately or the MV kernel you have
came pre-patched?

Thanks,
Adam Zajac

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Help on tuning the Linux kernel for soft real-time requiremen ts
@ 2004-10-21 21:55 Zajac Adam-AAZ004
  2004-10-21 22:34 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Zajac Adam-AAZ004 @ 2004-10-21 21:55 UTC (permalink / raw)
  To: 'VanBaren, Gerald (AGRE)', 'Eugene Surovegin'
  Cc: linuxppc-embedded

Gerald, Eugene,

Thanks a bunch for your inputs.
I've done a lot of different experiments that included using different
storage media and the problem has been narrowed down to a serial driver
contention.

>I would be suspicious that one of your drivers is blocking interrupts
>for long durations, your mass storage driver in particular, although
>serial consoles are also known for rude behavior as well.
>
Gerald, you may be right about this. Although I still don't know which of
the threads in our system cause the serial resource contention, I
temporarily alleviated the problem with limiting the messages that are being
printed out to the screen.

BTW, are you guys aware of any tool that could help me debug the threads
that would concurrently try to access shared resources?
Do you think LTT would be helpful for this particular problem (serial driver
contention that leads to missing soft real-time deadlines)?

Adam

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Help on tuning the Linux kernel for soft real-time requiremen ts
@ 2004-10-22 18:59 Zajac Adam-AAZ004
  2004-10-22 19:10 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Zajac Adam-AAZ004 @ 2004-10-22 18:59 UTC (permalink / raw)
  To: 'wd@denx.de'; +Cc: linuxppc-embedded

Wolfgang,

>I'm not exaclty sure I really understand what  you  are  asking  for.
>Isn't  sometimes  missing  the  deadlines what the "soft" is standing
>for? ;-)

I'm certainly not the one who would attempt to define the distinction
between hard and soft real-time requirements (beyond the obvious notion of
an absolute deterministic and an average response time). Just used that term
casually as we wanted to meet application deadlines that were in order of
seconds with some small room for a response variation (+/- milliseconds).
What I referred to as "missed deadlines" were slips in order of +/- 20
seconds. This was way out of line.

Do you know if sysstat RPM is available for PPC?
It'd be nice to have tools like sar and iostat for debugging my problem.

Regards,
Adam

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

end of thread, other threads:[~2004-10-22 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-18 22:44 Help on tuning the Linux kernel for soft real-time requiremen ts Zajac Adam-AAZ004
2004-10-19  1:51 ` Eugene Surovegin
  -- strict thread matches above, loose matches on Subject: below --
2004-10-21 21:55 Zajac Adam-AAZ004
2004-10-21 22:34 ` Wolfgang Denk
2004-10-22 18:59 Zajac Adam-AAZ004
2004-10-22 19:10 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).