Este contenido no está disponible en el idioma seleccionado.
Chapter 7. Running and interpreting system latency tests
RHEL for Real Time provides the rteval utility to test the system real-time performance under load.
7.1. Running system latency tests Copiar enlaceEnlace copiado en el portapapeles!
With the rteval utility, you can test a system’s real-time performance under load.
Prerequisites
-
The
RHEL for Real Timepackage group is installed. - You have root permissions on the system.
Procedure
Run the
rtevalutility.rteval
# rtevalCopy to Clipboard Copied! Toggle word wrap Toggle overflow The
rtevalutility starts a heavy system load ofSCHED_OTHERtasks. It then measures real-time response on each online CPU. The loads are a parallelmakeof the Linux kernel tree in a loop and thehackbenchsynthetic benchmark.The goal is to bring the system into a state, where each core always has a job to schedule. The jobs perform various tasks, such as memory allocation/free, disk I/O, computational tasks, memory copies, and other.
Once the loads start,
rtevalstarts thecyclictestmeasurement program. This program starts theSCHED_FIFOreal-time thread on each online core. It then measures the real-time scheduling response time.Each measurement thread takes a timestamp, sleeps for an interval, then takes another timestamp after waking up. The latency measured is
t1 - (t0 + i), which is the difference between the actual wakeup timet1, and the theoretical wakeup time of the first timestampt0plus the sleep intervali.The details of the
rtevalrun are written to an XML file along with the boot log for the system. This report is displayed on the screen and saved to a compressed file.The file name is in the form
rteval-<date>-N-tar.bz2, where<date>is the date the report was generated,Nis a counter for the Nth run on<date>.The following is an example of an
rtevalreport:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The report includes details about the system hardware, length of the run, options used, and the timing results, both per-cpu and system-wide.
NoteTo regenerate an
rtevalreport from its generated file, run# rteval --summarize rteval-<date>-N.tar.bz2