start up script S50rtcheck fails
Environment
MRG, all versions
Issue
1) This script S50rtcheck is failing due to a the command rtcheck test fails
-bash-3.2# rtcheck -v
RTCheck 0.7.6 - Linux Real-Time Environment Checker
---------------------------------------------------
RTCheck Initialization:
Locking all memory: ok
Setting up real-time scheduling: ok
System Tests:
Looking up boot_id (9e36d3e0-e2c2-4537-b612-d8835bf0f145): ok
Checking for PREEMPT_RT kernel: ok
Checking for robust (PI) mutex support: ok
Testing for acceptable hrtimer resolution (<=100us): ok
Reporting 57us
Testing for acceptable clock resolution (<=200us): ok
Reporting 1ns
Caching results in /var/cache/rtcheck: ok
User Permission Tests:
Trying to lock memory: failed
RLIMIT_MLOCK is: 65536
Some tests failed, exiting with status: 1
Resolution
Installing the rt-setup package creates a "realtime" group which has it's own resource limits defined. Add your user ID to the realtime group in /etc/groups, log out and back in as that user, and try the rtcheck command again.
There is no important purpose to the rtcheck during startup. If the rtcheck program succeeds when logged in as a memeber of the realtime group, the rtcheck failure during startup can be ignored. The rtcheck init script can also be disabled without causing any problems.
Bug 740374 has been filed against rtcheck for this problem.
Root Cause
The rtcheck program needs the "max locked memory" resource to be set to "unlimited"
The init scripts do not run in the login context of any group, so they do not have the special resource limits set for any group, and therefore do not have the unlimited "max locked memory" setting required by the rtcheck program.
Diagnostic Steps
Use "ulimit -a" to view the current "max locked memory" setting for the current user
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
