Questions tagged [real-time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
55 views

How to start a realtime process?

I looking for a way to start a real-time process or set a running process as a real-time process.
0
votes
1answer
42 views

Install a real-time kernel on CentOS 7 i386

I have computer where I'm trying to install real-time kernel. My OS: # uname -a Linux localhost.localdomain 3.10.0-1127.el7.centos.plus.i686 #1 SMP Sun Apr 5 18:08:31 UTC 2020 i686 i686 i386 GNU/Linux ...
1
vote
2answers
24 views

What RT patch to use for a specific linux kernel version

Running the $uname -r command on my embedded device reveals my kernel to be 4.14.73-ltsi (it is a custom Linux kernel built for an embedded device). Now I intend to install the real time (RT) patch ...
1
vote
0answers
33 views

Linux Time persist through reboot issue

I have a custom board that houses a System on module(SOM) running linux kernel 4.4.15 The board has an RTC that is backed up via small battery. I have the board running with no network connection ...
0
votes
1answer
254 views

Trouble selecting “Fully Preemptible Kernel (Real-Time)” when configuring/compiling from source

I am trying to compile the 5.4 kernel with the latest stable PREEMPT_RT patch (5.4.28-rt19) but for some reason can't select the Fully Preemptible Kernel (RT) option inside make nconfig/menconfig. I'...
0
votes
0answers
25 views

What is UIE timer in RTC?

I am trying to apply a patch that enables UIE timer but I don't understand what UIE stands for and what's the use of it. https://lore.kernel.org/linux-rtc/20191021155631.3342-1-alexandre.belloni@...
0
votes
0answers
26 views

System becomes non interactive when multiple real time threads are run on limited number of CPUs

Linux arch 5.5.9-arch1-2 #1 SMP PREEMPT Thu, 12 Mar 2020 23:01:33 +0000 x86_64 GNU/Linux I have been experimenting with CPUs affinity and scheduling policies and there is one thing that has surprised ...
6
votes
1answer
1k views

Why is the integer value of SIGRTMIN (first real-time signal) 34 and not 32? [duplicate]

Examining the output of kill -l command $ kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) ...
0
votes
1answer
34 views

Linux read() system call sampling rate, task scheduling & RT_PREEMPT

I am working with a Measurement Computing PCIe-DAS1602/16 DAQ: https://www.mccdaq.com/pci-data-acquisition/PCIe-DAS1602-16.aspx with Linux device drivers written by Warren Jasper: https://github....
0
votes
0answers
45 views

How to delete or shrink compiled kernel installation directory and still build an external module?

I am having trouble building external modules after compiling the linux kernel on an external device. It is the 4.19.103 kernel with the real time patch-4.19.103. My onboard storage disk is <3Gb ...
0
votes
0answers
35 views

How to limit memory access/bandwidth of processes or groups of them

I'm looking for a way to limit access to process memory. I have a system with an Intel CPU and integrated graphics. The integrated graphics card uses the RAM as video memory. Now I want to limit the ...
0
votes
1answer
35 views

Cutting out specific text from specific lines in real time

So I have a log running in real time and saving to a text file named 'test.txt' also in real time. Now I want to set up a process that constantly polls that text file for changes and cuts out a ...
0
votes
0answers
51 views

faketime adjusting clock rate freezing graphical applications?

I am trying to trick Chromium to think time passes faster than it really does. One user suggested I use libfaketime. It works, almost. Specifying time shift works fine: faketime -f '+1y' chromium-...
1
vote
0answers
66 views

How does the SCHED_DEADLINE runtime overrun signal (SIGXCPU) work?

I'm implementing a rt-thread using SCHED_DEADLINE. I'm trying to catch a SIGXCPU-signal, if the thread exceeds the specified sched_runtime. To my understanding of the manpage, this can be achived by ...
4
votes
1answer
63 views

Change perception of real time for one process

I would like to change the perception of real time for one process. Making the process believe that time is passing at 50% or 150% of the speed my system/kernel/hardware-clock thinks. I'd like to ...
0
votes
0answers
17 views

Strange ping latency

We have a complex real time application running RHEL 7.4 on ESX as a virtual machine. The VM is hosted on a large NAS-storage. Currently we have repeated latency bursts also evidenced in a running ...
0
votes
1answer
160 views

Inconsistent CPU Usage in Top

I'm experiencing very strange behaviour with some hardware we're working on. My setup consists of Linux 4.9.87 w/ SMP & PREEMPT RT on a dual-core iMX6 CPU. The application running on this setup ...
0
votes
1answer
89 views

SCHED_RR and SCHED_FIFO only work on “prempt kernal”?

I am running a python program on the raspberry Pi (Raspbian) that I would like to give higher priority. I want to run the following command : $ sudo chrt --rr 50 python3 loopExample.py I have read ...
2
votes
1answer
408 views

Why does /proc/stat count more than 100 tick/s

I have a developer complaining that the CPU usage reported by /proc/stat is not consistent. It is my understanding that /proc/stat is counting ticks, which since kernel 2.6 has been fixed to 100/s ...
0
votes
0answers
88 views

When are audio threads preempted?

In audio threads, I've been told it's good style to not use syscalls like e.g. printf() because they give control back to the kernel, which can then decide to continue with another thread, which means ...
0
votes
1answer
521 views

Available options for real-time Linux (Centos 7) and their relation to one another [closed]

I'm looking to expand and also get more current information from the question asked here. I have a requirement for real-time behavior that has is sub-millisecond and am now exploring what my options ...
1
vote
0answers
62 views

Small delay in sudo

I want my zsh prompt to display whether the session has sudo rights (from a previously run sudo command). After looking at the answers to this question, I arranged to use the exit status of sudo -n ...
2
votes
1answer
584 views

How to set the SCHED_RR time slice or time quantum per process / thread?

The time slice (also called time quantum) for threads with SCHED_RR policy can, according to the sched_rr_get_interval man page be obtained using int sched_rr_get_interval(pid_t pid, struct timespec *...
1
vote
1answer
299 views

Realtime, SCHED_FIFO, CPU_SET()

I'm trying to assign two real time processes to two cpus(one each). I'm using SCHED_FIFO scheduling policy. I'm doing the following things: adding "quiet splash isolcpus = 6,7" at ...
1
vote
1answer
1k views

Detect if USB disk is mounted in C application in Linux

I would like to check if USB disk is mounted in a C application. I know that in a script I can accomplish this via mount | grep /mnt (the mount point where udev mounts the USB drive) but I need to do ...
0
votes
0answers
30 views

Filter output / print one record per event or time period

I've got a custom HID device which prints out exact coordinates of touched points at real time. It is very sensitive & currently printing out the coordinate that's being touched on multiple ...
0
votes
1answer
484 views

compile and use a realtime kernel on CentOS 7

I would like to compile and use a realtime kernel on CentOS 7. I found a guide on the web: http://jensd.be/589/linux/complile-and-use-a-realtime-kernel-on-centos-7-or-rhel-7 When I try to use it I ...
-1
votes
1answer
857 views

Running make -j$(nproc) or make modules -j$(nproc)

I am following this. To run make -j$(nproc) make modules -j$(nproc) I know that make is running jobs Are the jobs supposed to run for hours? (I got impatient and interrupted.) make -j$(nproc)
1
vote
0answers
28 views

Activation /Config of Preempt RT [duplicate]

I installed the Preempt RT patch, how can I know if it was installed correctly, and if it was activated? If it was right, what configuration shall be done, and how to do it?
2
votes
1answer
365 views

Among these two in my ps output, which real-time process will be preempted over the other by linux?

I have got some idea from: https://stackoverflow.com/questions/8887531/which-real-time-priority-is-the-highest-priority-in-linux about how the real time priority values assigned to different ...
-1
votes
1answer
57 views

Since which version does linux support system clock with nano precision?

We are using centos7 and with the date command we came to know that system clock support nano precision. date +"%s %9N" 1537941601 130559008 So, we were to know that from which version did linux ...
0
votes
1answer
1k views

Knowing when a write() on a serial port has finished transmitting data

I need to synchronize an IO pin value with a write to a serial port from user space (because I wasn't yet able to do it from kernel space - see my other question). My code (leaving out error checking) ...
0
votes
1answer
129 views

How to real-time display a number from a running log file or terminal [closed]

I have a CNC and the software runs from a terminal. I would like to catch the current Z axis depth in real-time to display it. The information I need is shown in the terminal as well as in the log ...
1
vote
0answers
87 views

Linux (kernel 3.x and 4.x) Pthread and general process scheduling algorithms

I was wondering if both scheduling (contention) scopes (SYSTEM and PROCESS) are used in the Linux kernel scheduling logic. POSIX supports PROCESS scope pthreads (MXN model) and SYSTEM scope pthreads (...
0
votes
1answer
689 views

CFS and real-time policies

I'm trying to implement a real-time algorithm in Linux. I've studied the linux Real-Time policies : sched_rr, sched_fifo. Than i go deeper and i found the Completely Fair Scheduler. I deduced that ...
3
votes
2answers
1k views

Port Forwarding without delay and high fps in a real time live stream using socat

I am using the command socat to port forward a connection from a real-time live stream. TCP4-LISTEN:8080 TCP4:123.456.789.12:80 The problem is it has added delay and low fps while the live stream ...
4
votes
3answers
27k views

Current time/date as a variable in BASH and stopping a program with a script

I am trying to create a raspberry pi spy cam bug. I am trying to make it so the new file created for the various processes come up with NOW=`date '+%F_%H:%M:%S'`; which works fine. but it requires ...
0
votes
1answer
607 views

Enable CONFIG_PREEMPT_RT_FULL after the kernel compilation

I have Linux with a kernel that was compiled with the real-time patch, but the config option CONFIG_PREEMPT_RT_FULL was not enabled (it says in /proc/config that it is not set). Do you now if there ...
1
vote
0answers
412 views

Check if Linux Kernel is real time or not from Kernel module

We have a kernel module which is used on both real time (RT) and non-real time Linux kernel. Module uses the function get_user_pages_remote. However, there is a version check since the module needs to ...
0
votes
1answer
458 views

Applying RT PREEMPT kernel patch fails

I am trying to apply the RT PREEMPT patch for the Linux kernel. As mentioned in guides like this and this, you are supposed to do it like this: zcat patch-4.14.15-rt13.patch.gz | patch -p1 (...
0
votes
0answers
369 views

Configure raspberry pi kernel from script instead of menuconfig

I would like to build the official kernel for the Raspberry Pi. But I want to change one feature during the process. I'm basically following this tutorial: http://www.frank-durr.de/?p=203 And at ...
1
vote
0answers
107 views

What are the performance implications of isolating a core vs PREEMPT_RT?

I try to figure out what the differences between several real time systems are. So far I've tried to use the PREEMPT_RT patch and to isolate a core and reserve it for the RT application. So far I've ...
2
votes
3answers
8k views

How to find scheduling policy and active processes' priority?

I want to make a shell script that finds all active processes and to print to the user the scheduling policy.I want the result to be like this. pid 3042's current scheduling policy: SCHED_OTHER pid ...
1
vote
2answers
640 views

Interpretation of PTP4L and PHC2SYS syslog records

I'm using the ptp4l and phc4sys services to syncronize the clocks of my Centos 7.4 servers to a central PTP source. The services regularly write syslog records like the one below. I haven't found any ...
0
votes
1answer
207 views

Where to find extended information about menuconfig kernel configuration options?

Where to find extended information about menuconfig options? I am especially interested in those related with improving latency/jitter of a RT_PREEMT kernel (apart of the obvious ...
1
vote
0answers
128 views

rtcwake being set one day ahead of intended time

I am trying to use this command to wake up my computer 5 seconds from now: sudo rtcwake -m no -s 5 The problem I am having is that the time to wake my computer is set 5 seconds ahead of current time ...
3
votes
1answer
1k views

Docker with real-time / low-latency audio? (for virtual amps like Guitarix…)

I've been trying to get a foss virtual guitar amp to run on my Fedora machine for a while now, Guitarix (which runs on JACK) to be more precise. But I just can't figure it out. People say that it is ...
2
votes
1answer
322 views

lxc and sched_setscheduler

I am trying to run an application inside a Centos container and needs to run in real time. I googled around and the suggestion was to add lxc.cap.keep = sys_nice. After I did it, lxc-start complains ...
2
votes
0answers
82 views

Time between process runs is occasionally too long, how can I set a maximum time? [closed]

I am using a raspberry pi to grab data through a SPI port. Attached to the SPI port is a PIC, programmed so that it samples on an A/D at 12.8kHz, and stores the samples in a 256 long buffer. (to cope ...
2
votes
1answer
1k views

Clock instability in Debian 9 (stretch)

I have a machine running Debian 8 (jessie) downgraded to kernel 3.2-rt. This is running an application which is set to realtime priority (SCHED_RR), wakes up every 1ms to do some processing, and ...