E
E
Eddik2015-12-15 09:15:30
ubuntu
Eddik, 2015-12-15 09:15:30

How to run an application in RealTime under Ubuntu?

Hello colleagues. There is a task where you need to have a guaranteed code execution time, for example, calculate the number Pi with an accuracy of the tenth digit for always the same number of microseconds / processor cycles (an external system will focus on this delay). To solve this problem, I installed rt-kernels (3.14.23-rt20 and 3.12.31-rt45), but I didn’t get any qualitative effect compared to generic ones (3.19 and 3.16). Test charts have changed a bit. I am far from the administration of industrial systems, so there is a feeling that I am missing something fundamental and that the problem can be solved as a whole, I just don’t know how. Tell me where to go. x64 system based on Intel Core 2 Quad. The idea is to allocate one core for exclusive use to the thread that performs RT calculations, and use the rest of the resource at the discretion of the system.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2015-12-15
@romy4

no way. change wasps to the one that can do it.
although, there is an option to connect a realtime device that counts pi.

O
Oleg Tsilyurik, 2015-12-15
@Olej

1. Making Linux work like a realtime OS is a bad thing, he didn’t count on it, even if you use all sorts of tricks of the rt-kernel
... "), so it won't work for you. ;-)
3. You can run your Linux process with realtime scheduling and it will do what you want, see rare useful commands , chrt command.
Affinity mask, taskset command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question