diff --git a/documentation/Mainpage.md b/documentation/Mainpage.md index 455c0e5b2..97809857e 100644 --- a/documentation/Mainpage.md +++ b/documentation/Mainpage.md @@ -23,7 +23,7 @@ Furthermore, it collects statistics, monitors the quality of service and handles For optimal performance the server is implemented in low-level C and makes use of several Linux-specific realtime features. The primary design goal was to make the behaviour of the system as deterministic as possible. -Therefore, it's advisable to run the server component on a [RT_PREEMPT](https://rt.wiki.kernel.org/index.php/CONFIG_PREEMPT_RT_Patch) patched version of Linux. In our environment, we use Fedora-based distribution which has been stripped to the bare minimum (no GUI, only a few background processes). +Therefore, it's advisable to run the server component on a [PREEMPT_RT](https://rt.wiki.kernel.org/index.php/CONFIG_PREEMPT_RT_Patch) patched version of Linux. In our environment, we use Fedora-based distribution which has been stripped to the bare minimum (no GUI, only a few background processes). The server is a multi-threaded application. diff --git a/documentation/Tuning.md b/documentation/Tuning.md index 1e9769b92..5132b249e 100644 --- a/documentation/Tuning.md +++ b/documentation/Tuning.md @@ -3,7 +3,7 @@ ## Operating System and Kernel For minimum latency several kernel and driver settings can be optimized. -A [RT-preempt patched Linux](https://rt.wiki.kernel.org/index.php/Main_Page) kernel is recommended. +A [PREEMPT_RT patched Linux](https://rt.wiki.kernel.org/index.php/Main_Page) kernel is recommended. Precompiled kernels for Fedora can be found here: http://ccrma.stanford.edu/planetccrma/software/ - Map NIC IRQs => see setting `affinity` diff --git a/server/include/checks.h b/server/include/checks.h index 06c0181cd..d0ce09a43 100644 --- a/server/include/checks.h +++ b/server/include/checks.h @@ -9,14 +9,14 @@ #ifndef _CHECKS_H_ #define _CHECKS_H_ -/** Checks for realtime (RT_PREEMPT) patched kernel. +/** Checks for realtime (PREEMPT_RT) patched kernel. * * See https://rt.wiki.kernel.org * * @retval 0 Kernel is patched. * @reval <>0 Kernel is not patched. */ -int check_kernel_rtpreempt(); +int check_kernel_rt(); /** Check if kernel command line contains "isolcpus=" option. * diff --git a/server/src/checks.c b/server/src/checks.c index e0e593492..c3d3dbc8c 100644 --- a/server/src/checks.c +++ b/server/src/checks.c @@ -34,7 +34,7 @@ int check_kernel_version() return version_compare(¤t, &required) < 0; } -int check_kernel_rtpreempt() +int check_kernel_rt() { return access(SYSFS_PATH "/kernel/realtime", R_OK); } diff --git a/server/src/server.c b/server/src/server.c index 2f6d6c5cb..0cb503380 100644 --- a/server/src/server.c +++ b/server/src/server.c @@ -61,8 +61,8 @@ static void realtime_init() { INDENT if (check_kernel_cmdline()) warn("You should reserve some cores for the server (see 'isolcpus')"); - if (check_kernel_rtpreempt()) - warn("We recommend to use an RT_PREEMPT patched kernel!"); + if (check_kernel_rt()) + warn("We recommend to use an PREEMPT_RT patched kernel!"); /* Use FIFO scheduler with real time priority */ if (settings.priority) {