DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

Upper bound for realtime application

Started by Unknown ●June 10, 2014
Tom Gardner <spamjunk@blueyonder.co.uk> wrote:

(snip)

> Some processes and some applications are inherently statistical, > and it is only reasonable that they be defined statistically. > The canonical example is telephone calls, where the very unit > used to define the capacity of exchanges (the Erlang) is > statistical and based on Poisson distributions. Typically > telecom systems will be defined in terms of an acceptable mean > delay and an acceptable proportion of "dropped calls".
Reminds me of some years ago, I think about when Steve Martin first hosted SNL. (Saturday Night Live.) Someone set up a call-in, maybe for just one hour, where you could talk to Steve Martin calling a toll-free number. Story was that they burned up the phone switch.
> Telecom systems cannot practically/commercially be hard real-time > without intolerable capital cost - and soft real-time requirements > are acceptable.
-- glen
On 2014-06-11 20:42, Piergiorgio Sartor wrote:
[...]

To be more clear, since I realize the answer
I gave (to both) are not really trasparent.

We *all* know that anything can be real-time,
and we all know the marketing brochures are
full of such claims.

Considering the original question, I found
highly unethical to push forward that concept.

Hence my first answer: not real-time. Period.

Finding arguments to cram the, I do not doubt,
fine results, into real-time is, in my opinion,
not doing a favor to the OP.

bye,

-- 

piergiorgio
On Thursday, June 12, 2014 7:34:34 AM UTC+12, Piergiorgio Sartor wrote:
> On 2014-06-11 20:42, Piergiorgio Sartor wrote: > > [...] > > > > To be more clear, since I realize the answer > > I gave (to both) are not really trasparent. > > > > We *all* know that anything can be real-time, > > and we all know the marketing brochures are > > full of such claims. > > > > Considering the original question, I found > > highly unethical to push forward that concept. > > > > Hence my first answer: not real-time. Period. > > > > Finding arguments to cram the, I do not doubt, > > fine results, into real-time is, in my opinion, > > not doing a favor to the OP. > > > > bye, > > > > -- > > > > piergiorgio
Real time to me means a real-time operating system ie determinism.
On 2014-06-11 21:43, gyansorova@gmail.com wrote:
[...]
> Real time to me means a real-time operating system ie determinism.
One definition of real-time, which I personally find quite elegant, is: "A system which correctness does not only depend on the input/output relationship, but also on the *time* required to generate such relationship" bye, -- piergiorgio
On Wed, 11 Jun 2014 21:47:45 +0200, Piergiorgio Sartor
<piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de>
wrote:

>On 2014-06-11 21:43, gyansorova@gmail.com wrote: >[...] >> Real time to me means a real-time operating system ie determinism. > >One definition of real-time, which I personally >find quite elegant, is: > >"A system which correctness does not only depend >on the input/output relationship, but also on the >*time* required to generate such relationship" > >bye, > >-- > >piergiorgio
In the old days the term "real-time" was used to distinguish processes from those which operated "off line". Many processes can be done off line and take a long time if the benefit is such that it's worth waiting for the result. An easy example is graphic rendering or ray-tracing for video effects. There are plenty of applications (e.g., movie-making) where it is okay to take a long time to render graphics as long as they can be stored and displayed "real-time", in this case at the frame rate. Being able to do the processing in "real-time" distinguished advanced processes that could keep up with the real-time (i.e., as needed) demand rather than taking longer than that and requiring off-line processing and storage for playback or consumption. So I don't think determinisim is sufficient for a definition, and I don't think anything having to do with an operating system has anything to do with it. I think the only question is whether the process can keep up with the demand (e.g., a video frame rate) or requires off-line processing or pre-processing. If the process can keep up with the demand, i.e., all of the inputs are fully processed to provide all of the outputs with no off-line storage required, then it's a real-time process. And, yes, one can strain definitions with what Piergiorgio is calling "nitpicking" cases where a frame a day is sufficient for demand, but I don't think that answers the question at hand very well. Eric Jacobsen Anchor Hill Communications http://www.anchorhill.com
Eric Jacobsen <eric.jacobsen@ieee.org> wrote:

(snip)

> In the old days the term "real-time" was used to distinguish processes > from those which operated "off line". Many processes can be done off > line and take a long time if the benefit is such that it's worth > waiting for the result. An easy example is graphic rendering or > ray-tracing for video effects. There are plenty of applications > (e.g., movie-making) where it is okay to take a long time to render > graphics as long as they can be stored and displayed "real-time", in > this case at the frame rate.
Yes. But that doesn't include the statistical nature of the problem. Continuing the example of video at frame rate, consider a movie production company. It has to be able to process, at frame rate, all the movies in production at a given time. (If it really needs to be real time.) Now, in the days of cheap high-speed processors, we just assume that they buy enough processors, but if they are not COTS systems, that will be expensive, and even so may not be enough for peak. As someone else mentioned telephone systems, which have to be pretty close to real time, at least once a connection has gone through. You can have an "all circuits busy" message for those trying to place calls (but not too many, or you encourage customers to switch to the competition). You have to process, at the applicable sample rate, all calls that customers want to make at a given time.
> Being able to do the processing in "real-time" distinguished advanced > processes that could keep up with the real-time (i.e., as needed) > demand rather than taking longer than that and requiring off-line > processing and storage for playback or consumption.
Television was invented years before video tape. Early broadcasting was all live, though maybe not so long before broadcast of filmed movies, and then filmed TV series. The only offline storage was movie film, and that was sometimes used (for delayed broadcast to the west coast).
> So I don't think determinisim is sufficient for a definition, and I > don't think anything having to do with an operating system has > anything to do with it. I think the only question is whether the > process can keep up with the demand (e.g., a video frame rate) or > requires off-line processing or pre-processing. If the process can > keep up with the demand, i.e., all of the inputs are fully processed > to provide all of the outputs with no off-line storage required, then > it's a real-time process.
A single video camera should only need to process one data stream, so it isn't so hard to make it real time. As I understand it, though, for high quality MPEG conversion, it is still done offline. Only for home recording is real-time needed.
> And, yes, one can strain definitions with what Piergiorgio is calling > "nitpicking" cases where a frame a day is sufficient for demand, but I > don't think that answers the question at hand very well.
-- glen
On 11/06/14 19:42, Piergiorgio Sartor wrote:
> On 2014-06-11 20:25, Tom Gardner wrote: > [...] >> Not true: consider video surveillance - a reasonable >> specification is that one frame every second has to >> be captured at full resolution and stored somewhere >> offsite. An expanded specification might include >> the latency between capture and storage. > > And two: nitpicking.
Your definition of nitpicking appears to be "any counter-example which disproves my contention". Unimpressive.
> Again, there are, of course, applications which > do well (real-time), in the "second" range (for > video processing), but that's not the *norm*.
A very weak point - so weak as to be not worth debating.
On Wed, 11 Jun 2014 13:37:51 -0400, Randy Yates wrote:

> Tim Wescott <tim@seemywebsite.really> writes: > >> On Wed, 11 Jun 2014 00:30:27 -0400, Randy Yates wrote: >> >>> robert bristow-johnson <rbj@audioimagination.com> writes: >>> >>>> i might suggest taking a look at the wikipedia article about >>>> "real-time computing". >>>> https://en.wikipedia.org/wiki/Real-time_computing >>>> >>>> there is a variation in the definition for the case of >>>> continuous-input, continuous-output (the "DSP" definition). >>>> >>>> Raph, if your application is set up to process images as fast as they >>>> are thrown at it, then it's real-time. but if it takes *more* time >>>> to process the images than the average (or, worst case, depends on >>>> the buffering) time between images being input, then it's not >>>> real-time. you've mentioned that it takes about "1.5s per image" to >>>> process. if images are being input to the process at a rate slower >>>> than 2/3 image per second, then your application can process images >>>> in real-time. but if your image rate is faster than 2/3 image per >>>> second, then your process is not real-time. >>>> >>>> i guess that would be closer to the "soft real-time" definition, but >>>> it's really not either. if latency is not an issue, then "soft" is >>>> the definition. but if there is a hard limit on the latency, then >>>> "hard" is the definition. >>> >>> The wikipedia article says "real-time DSP" can have delay (latency). >>> >>> I'm not sure I would split the DSP/non-DSP real-time hair. I would >>> consider latency a separate issue from real-time. That is, if the time >>> required to process an event is less than or equal to the event >>> period, >>> you're real-time, even if it takes a week to come out the pipe. >> >> The real-world limitation to real time is that there is some guaranteed >> upper bound on delay. If you can't guarantee an upper bound, then >> you're not selling real time. > > Tim, > > For any system you see in the real world, there's ALWAYS an upper bound > on delay, whether that system is "real-time" or not. If it takes 200 > years for my computer to boot, that's unacceptable, even if it then runs > 1024 cores at 8 THz each. (a ridiculous example just to show the > point...)
Well.... There are bad algorithms out there that don't have a deterministic stopping point, and some of those have stopping points that are data- dependent. So I'm not sure that I can buy into your observation.
> However, it has been my observation that there are many, many instances > where latency is much less important than the ability to meet an "event > interval." > > Therefore I would classify delay (latency) and the ability to meet an > event interval as two separate requirements, whether common terminology > supports this or not. > > DEFINITION: In a system that requires a periodic event to be processed > indefinitely, "event interval" is the period of the event. > >> Getting into the hard/soft hair-splitting is pretty much an issue of >> whether you can guarantee the bound absolutely and always, or just >> sometimes, or on average, or whatever. > > I would say that those types of things are more "event interval" issues > than latency issues. Sometimes they are both important, as in rb-j's > example case, but often the ability to meet an event interval is much > more important than latency. Hence the utility in separating these two > things.
In DSP, yes, the "event interval" is important as well as the overall latency, because often the latency does not matter nearly as much as the throughput. Having a firm maximum latency still matters though. But in just about any problem that involves controlling physical processes, the latency _is_ very important: you need to be able to shut the barn door _before_ the horses get out. Many "real time" systems are operating in closed loop, and for those systems the raw latency is often far more important than throughput -- to the point where system designers will happily ignore high-latency, high-throughput methods in favor of methods that achieve the latency goals. What any particular system needs, of course, will vary depending on the system. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
On 11/06/14 23:43, Tim Wescott wrote:
> On Wed, 11 Jun 2014 13:37:51 -0400, Randy Yates wrote: > >> Tim Wescott <tim@seemywebsite.really> writes: >> >>> On Wed, 11 Jun 2014 00:30:27 -0400, Randy Yates wrote: >>> >>>> robert bristow-johnson <rbj@audioimagination.com> writes: >>>> >>>>> i might suggest taking a look at the wikipedia article about >>>>> "real-time computing". >>>>> https://en.wikipedia.org/wiki/Real-time_computing >>>>> >>>>> there is a variation in the definition for the case of >>>>> continuous-input, continuous-output (the "DSP" definition). >>>>> >>>>> Raph, if your application is set up to process images as fast as they >>>>> are thrown at it, then it's real-time. but if it takes *more* time >>>>> to process the images than the average (or, worst case, depends on >>>>> the buffering) time between images being input, then it's not >>>>> real-time. you've mentioned that it takes about "1.5s per image" to >>>>> process. if images are being input to the process at a rate slower >>>>> than 2/3 image per second, then your application can process images >>>>> in real-time. but if your image rate is faster than 2/3 image per >>>>> second, then your process is not real-time. >>>>> >>>>> i guess that would be closer to the "soft real-time" definition, but >>>>> it's really not either. if latency is not an issue, then "soft" is >>>>> the definition. but if there is a hard limit on the latency, then >>>>> "hard" is the definition. >>>> >>>> The wikipedia article says "real-time DSP" can have delay (latency). >>>> >>>> I'm not sure I would split the DSP/non-DSP real-time hair. I would >>>> consider latency a separate issue from real-time. That is, if the time >>>> required to process an event is less than or equal to the event >>>> period, >>>> you're real-time, even if it takes a week to come out the pipe. >>> >>> The real-world limitation to real time is that there is some guaranteed >>> upper bound on delay. If you can't guarantee an upper bound, then >>> you're not selling real time. >> >> Tim, >> >> For any system you see in the real world, there's ALWAYS an upper bound >> on delay, whether that system is "real-time" or not. If it takes 200 >> years for my computer to boot, that's unacceptable, even if it then runs >> 1024 cores at 8 THz each. (a ridiculous example just to show the >> point...) > > Well.... > > There are bad algorithms out there that don't have a deterministic > stopping point, and some of those have stopping points that are data- > dependent. So I'm not sure that I can buy into your observation. > >> However, it has been my observation that there are many, many instances >> where latency is much less important than the ability to meet an "event >> interval." >> >> Therefore I would classify delay (latency) and the ability to meet an >> event interval as two separate requirements, whether common terminology >> supports this or not. >> >> DEFINITION: In a system that requires a periodic event to be processed >> indefinitely, "event interval" is the period of the event. >> >>> Getting into the hard/soft hair-splitting is pretty much an issue of >>> whether you can guarantee the bound absolutely and always, or just >>> sometimes, or on average, or whatever. >> >> I would say that those types of things are more "event interval" issues >> than latency issues. Sometimes they are both important, as in rb-j's >> example case, but often the ability to meet an event interval is much >> more important than latency. Hence the utility in separating these two >> things. > > In DSP, yes, the "event interval" is important as well as the overall > latency, because often the latency does not matter nearly as much as the > throughput. Having a firm maximum latency still matters though. > > But in just about any problem that involves controlling physical > processes, the latency _is_ very important: you need to be able to shut > the barn door _before_ the horses get out. Many "real time" systems are > operating in closed loop, and for those systems the raw latency is often > far more important than throughput -- to the point where system designers > will happily ignore high-latency, high-throughput methods in favor of > methods that achieve the latency goals.
True, but there are also many real-time systems in which latency is relatively unimportant. Consider an extreme example: a video camera plus real-time processing system situated on Mars transmitting images back to Earth. The latency is somewhat longer than the frame interval :)
> What any particular system needs, of course, will vary depending on the > system.
Precisely.
Tom Gardner <spamjunk@blueyonder.co.uk> wrote:

(snip)

> True, but there are also many real-time systems in which latency > is relatively unimportant.
> Consider an extreme example: a video camera plus real-time > processing system situated on Mars transmitting images back > to Earth. The latency is somewhat longer than the frame interval :)
Make it "near Jupiter" and there is a very good example. Among others, the ICT (Integer Cosine Transform) was invented to solve this one. (Consider doing the transform on a CDP1802, which has about the computation power of the 6502.) Latency is fine, but you need a big enough buffer, and that tends to be limited on Mars or on the way to Jupiter. As I understand, the buffer is magnetic tape. I don't have any idea how hard it is to keep magnetic tape working out there. See: http://tmo.jpl.nasa.gov/progress_report/42-115/115j.pdf For more details of Galileo, see: https://en.wikipedia.org/wiki/Galileo_%28spacecraft%29 Seems that the final data rate was about 160 bits/second, where they transmit about 20 watts, and about 10 zeptowatts reach the receiving antenna. -- glen