Skip to content

Configure latency at run-time from init script #25

@zultron

Description

@zultron

My RTAI package 4.1 branch builds the latest ShabbyX/RTAI code, and the linux-ipipe-deb 3.16.7 branch builds kernel packages from that.

#24 raised the issue of scheduling latency calibration, which is reported to be done at build time, traditionally. This doesn't make sense in a package setting, since latency values likely won't apply to the application host (if calibration on the build host is even possible, which it isn't in my environment).

RTAI ships an init script that loads modules at boot time. I propose to use this init script to run the calibrate tool on the application host to determine latency, and then load modules with the resulting figures.

I'd appreciate help with these questions:

  • How exactly to determine the latency? The calibration README says it's up to the user to determine a balance between the kernel and user space scheduling latency figures from the calibration_helper tool. Any rules of thumb?
  • How to feed the results into which parameter of which module? The latest (v. 3.4) user manual appears out of date, referring to rtai_lxrt.ko and rtai_ksched.ko.
  • Does it make most sense to run calibration_helper just once and store the results in a modprobe.d or /etc/default config file, from where the results will be retrieved upon subsequent boots? This would enable the user to further tune the value, as well as possibly saving time during boot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions