Considerations on data collection glitches caused by ordinary Operating System tasks
So far, at least two tasks have been spotted impacting the real-time RTPC operations: ssh connections ( see https://logbook.virgo-gw.eu/virgo/?r=55832 ) and the rhsmdcertd daemon.
In both cases it can be noted that asymmetric criptografic keys generation/verification is involved:
- in ssh when the session keys are generated and exchanged for the onset of the ssh encrypted channel.
This occurs when sshd receives the client connection and and before the user authentication, which corresponds to what observed.
Note that session re-keying occurs also periodically on a long-lived connection after 1 to 4 GB has been transferred, therefore, in this hypothesis, the glitches should appear also quasi-randomically on rtpcs with long-running processes started via VPM - when some certificate/public_key is verified such as with the rhsmcertd daemon, but it could occur also with other tasks that need to use a public/private keys encryption/verification algorithm
It is unlikely there is something specific about these algorithms causing the glitches except for the fact that they are computationally heavy and so saturate for a while the single core dedicated to the OS.
Therefore it is possible that these episodes will occur more frequently as long the default key length for these algorithms is increased following OS upgrades or anyway in any other cases when the OS-dedicated core is heavily used.
This kind of OS tasks impact on real-time operation suggests that the platform has become sensitive to the activity of ordinary system daemons (by the way it is not true for rhsmcertd that "this daemon is useless on the rtpcs" because we use the free version of the Redhat Subscription infrastructure - Redhat Satellite for the bare metal automatic installation and package provisioning which is embodied in the Foreman platform for RTPCs, i.e. the daemon will be eventually re-enabled in case of need during the mainenance windows).
The conclusion is that the current configuration of a single core being dedicated to the Operating System and non-realtime tasks while the others are isolated for realtime tasks could be anymore not enough to sustain the ordinary system activity, maybe even in case the DAQ collection load is distributed on a higher number of rtpcs.
Maybe as a possible solution the introduction of a second processor could be re-evaluated in order to dedicate the first processor to the OS, unless there is some realtime/RTAI constraint forbidding this.