nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
34 stars 19 forks source link

Add documentation for running real-time #737

Open alexlin0 opened 5 years ago

alexlin0 commented 5 years ago

Add documentation to detail how to run Trick sims in real-time on one wiki page. This includes setting the software frame, setting process priorities, setting root privilege, processor and memory locking, real-time clock selection, itimers, isolating the processor in the OS, and possibly moving interrupt handling.

iamthad commented 5 years ago

Please keep the principle of least privilege in mind. In particular, setting a realtime priority in Linux can be done either with CAP_SYS_NICE or RLIMIT_RTPRIO rather than running as root.

See man 7 capabilities and man 2 getrlimit for further information.