Disable RTAPI Logging

58 views
Skip to first unread message

Alexander Rössler

unread,
Aug 8, 2019, 6:19:56 AM8/8/19
to machi...@googlegroups.com
We have a problem with our BeagleBone setup. The RTAPI logging is causing systemd-journal to use a big chunk of the CPU resources, in particular right after program start.

The log messages are visible by running journalctl, something along the lines of CMD 1036, code 29 and SET_LINE (sorry, I'm on a different computer). So it looks like RTAPI is printing out messages when reading the file.

Anyway, is there a way to disable or reduce the RTAPI logging?

Thanks,
Alex

ce...@tuta.io

unread,
Aug 8, 2019, 7:18:26 PM8/8/19
to Alexander Rössler, machi...@googlegroups.com
Aug 8, 2019, 12:19 by al...@machinekoder.com:

> We have a problem with our BeagleBone setup. The RTAPI logging is causing systemd-journal to use a big chunk of the CPU resources, in particular right after program start.
>
> The log messages are visible by running journalctl, something along the lines of CMD 1036, code 29 and SET_LINE (sorry, I'm on a different computer). So it looks like RTAPI is printing out messages when reading the file.
>
> Anyway, is there a way to disable or reduce the RTAPI logging?
>
Hi,
what exactly do you mean by disabling? When the RTAPI message level will be set to NONE - https://github.com/machinekit/machinekit-hal/blob/master/src/rtapi/rtapi_support.c#L98-L99 <https://github.com/machinekit/machinekit-hal/blob/master/src/rtapi/rtapi_support.c#L98-L99> - it should not log the messages from RTAPI_PRINT_* function. You can then decouple the default system logger in, I think, syslog-async.c. However, maybe you mean something else.

Could you post what messages make the bulk of load?

Cern.

Paulo Sherring

unread,
Aug 23, 2019, 7:36:50 PM8/23/19
to Machinekit
Off topic: Hey, huge fanboy of QtQuickVcp here! Digging its source code was incredibly instructive and positive :)

Had this problem using the Machinekit/mkwrapper setup, as described here https://github.com/machinekit/Cetus/issues/21
My solution, which is a bandaid only, was to reduce logging level on the python script:

launcher.set_debug_level(5) ---
launcher.set_debug_level(1) +++
Target was BBG.

Hope that helps you.
Best regards.
Paulo Sherring.
Reply all
Reply to author
Forward
0 new messages