comp.lang.ada
 help / color / mirror / Atom feed
From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov)
Subject: Re: Anyone using Ada with Real-Time Linux?
Date: Wed, 28 Nov 2001 08:29:30 GMT
Date: 2001-11-28T08:29:30+00:00	[thread overview]
Message-ID: <3c049971.305781@News.CIS.DFN.DE> (raw)
In-Reply-To: 877ksc2o7q.fsf@deneb.enyo.de

On Tue, 27 Nov 2001 17:06:01 +0100, Florian Weimer <fw@deneb.enyo.de>
wrote:

>dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) writes:
>
>> [We are considering which OS platform to choose for an embedded "soft"
>> real-time system. Our requirements are: 5 ms for the DAQ & control
>> task and almost "no matter" for the TCP/IP tasks]
>
>If the 5ms are a *requirement*, it's not "soft" real time. ;-)

It is a "requirement" (:-)). [ You know how it works, there are two
ways to deal with problems: 1) an obsolete one is to solve them, 2) a
biz one is to change the requirements. ]

>(And you shouldn't use a standard Linux version.)

Standard Linux has obvious advantages when the hardware configuration
should remain open. I mean driver support etc.

>>>Whether this would fit the requirement I don't know; there might be
>>>unavoidable delays, as Dmitry says.
>>
>> I heard that the Linux kernel is (or will be) preemptive. If so, there
>> [I suppose] should be no big problem with I/O?
>
>Usually, I/O isn't the problem.  Some FS operations and console
>switching are major offenders, IIRC.

The word "usually" is the major concern. Under WinNT it is also
usually no problem, but sometimes, some driver may block the whole
system for 100-200ms.

>Perhaps you don't need a preemptive kernel.  For 2.2.x, there are
>patches which add additional scheduling points to lower average
>latency (but I don't know if you get an exact 5ms timing, perhaps with
>a kernel module using the real-time clock interrupt).

About 2-3 years ago I played with i486, 2MB under Linux + gnat (I do
not remember which version it was). It easily reached "soft" 1ms with
parallel console output. By "soft" I mean that the "real-time" task
becomes active within each 1ms interval.

Regards,
Dmitry Kazakov



  reply	other threads:[~2001-11-28  8:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-25 20:50 Anyone using Ada with Real-Time Linux? DuckE
2001-11-26  8:25 ` Per Sandbergs
2001-11-26 17:27   ` Brian Catlin
2001-11-26 19:52     ` Per Sandberg
2001-11-26 19:03   ` Ted Dennison
2001-11-27  2:23     ` DuckE
2001-11-27  6:34   ` Michael Bode
2001-11-27  1:35 ` Wayne Bullaughey
2001-12-01 15:52   ` Harri J Haataja
2001-11-27  8:45 ` Dmitry A. Kazakov
2001-11-27  9:19   ` Simon Wright
2001-11-27 14:26     ` Dmitry A. Kazakov
2001-11-27 16:06       ` Florian Weimer
2001-11-28  8:29         ` Dmitry A. Kazakov [this message]
2001-11-27 15:19 ` Mark Johnson
2001-11-28  2:47   ` DuckE
replies disabled

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