Today all the Gc channels computed as double are stored as float inside the DAQ.
On request of Gabriele, fours channels are stored as double and as float to perform numerical noise investigations.
These channels are:
. Gc_Differential(float), D_Gc_Differential(double)
. Gc_Common(float), D_Gc_Common(double)
. Gc_DARM_z(float), D_Gc_DARM_z(double)
. Gc_CARM_z(float), D_Gc_CARM_z(double)
The new channels are available online for dataDisplay accesses and stored on disks.
Work has been done to tune all the dampers, tune the residual TCS, tune the alignments. The horizon is around 4-5 Mpc and the sensitivity at low frequency (20-30 Hz) appears to be comparable with the best obtained.
The 8 Hz is not cured yet. The NI external heather has been switched on to check for etalon effects.
A new baseline based on TolmProcessor v0r54 in operation for the ITF control with:
. TolmBase v0r54
. TolmProcessor v0r54
. TolmDictionary v0r24
. TolmFrameBuilder v1r3p12
. GcLocking v1r12p4
. GcAlignment v1r12p4
. Pr v10r14p2
Please restart you Cl ClITFCtrl UI to take in account these modifications
At the beginning, we try
. GcLocking v1r13
. Pr v10r15
Unfortunately we faces some troubles due to these 2 new releases:
. Gc: wrong Gc_IsTidal channel properties. which generates a new version of the Tolm packets sent to the Sc DSPs. As consequence the DSPs were not able to handle the transmitted packets. To recover the situation we go back the previous GcLocking release (v1r12p4) and a 'compile and download' of the Sc DSP card was performed on all towers to take in account the new Tolm packet version number.
. Pr: the automatic switch was not working correctly, here for the RFC lock. We put back the previous version v10r14p2 to recover a correct working condition.
Some corrupted data have been observed at level of Gc_NE_z and Gc_WE_z in global control, in particular when locking RFC.
This is not a problem since the replicated signals at level of DSP Sc_NE_zGc and Sc_WE_zGc are corretly interpreted.
The origin of these corrupted sequences of data are due to occurence of values inferior to 1e-31 in float vectors. When it happens, dataDisplay shows a corrupted frame. The DSP is not affected by these events (see plot).
This morning at about 9h59 LT rtpc06 crashed without any clear reason:
Nov 25 09:59:15 rtpc06 kernel: TOLM [TolmChannelManager::add_channel] channel Ca_BS_zMar already has a different writer client (current writer id = 477)
Nov 25 09:59:15 rtpc06 kernel: TOLM [TolmChannelManager::add_channel] channel Ca_NE_zMirUD already has a different writer client (current writer id = 477)
Nov 25 09:59:15 rtpc06 kernel: TOLM [TolmChannelManager::add_channel] channel Ca_NE_zMar already has a different writer client (current writer id = 477)
Nov 25 09:59:15 rtpc06 kernel: TOLM [TolmChannelManager::add_channel] channel Ca_PR_zMir already has a different writer client (current writer id = 477)
Nov 25 09:59:15 rtpc06 kernel: TOLM [TolmChannelManager::add_channel] channel Ca_WE_zMirUD already has a different writer client (current writer id = 477)
Nov 25 09:59:15 rtpc06 kernel: TOLM [TolmChannelManager::add_channel] channel Ca_WE_zMar already has a different writer client (current writer id = 477)
Nov 25 10:24:52 rtpc06 syslogd 1.4.1: restart.
Nov 25 10:24:52 rtpc06 syslog: syslogd startup succeeded
Nov 25 10:24:52 rtpc06 kernel: klogd 1.4.1, log source = /proc/kmsg started.
After rebooting rtpc06, during the sequence of task restarting (TolmLocking, PrISYS, PRITF, GcLocking) the rtpc06 crashed again without giving any explicit reason:
Nov 25 10:38:57 rtpc06 kernel: I-pipe: Domain RTAI registered.
Nov 25 10:38:57 rtpc06 kernel: RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 1.12-03.
Nov 25 10:38:57 rtpc06 kernel: RTAI[hal]: compiled with gcc version 3.4.6 20060404 (Red Hat 3.4.6-8).
Nov 25 10:38:57 rtpc06 kernel: RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs VECTORED), ISOL_CPUS_MASK: e).
Nov 25 10:38:57 rtpc06 kernel: PIPELINE layers:
Nov 25 10:38:57 rtpc06 kernel: e09fef80 9ac15d93 RTAI 200
Nov 25 10:38:57 rtpc06 kernel: c0487c00 0 Linux 100
Nov 25 10:38:57 rtpc06 kernel: RTAI[malloc]: global heap size = 2097152 bytes, .
Nov 25 10:38:57 rtpc06 kernel: RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: , kstacks pool size = 524288 bytes.
Nov 25 10:38:57 rtpc06 kernel: RTAI[sched]: hard timer type/freq = APIC/12499750(Hz); default timing: periodic; linear timed lists.
Nov 25 10:38:57 rtpc06 kernel: RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 2800012000 hz.
Nov 25 10:38:57 rtpc06 kernel: RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
Nov 25 10:39:03 rtpc06 kernel: ACPI: PCI Interrupt Link [LNEC] enabled at IRQ 16
Nov 25 10:39:03 rtpc06 kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LNEC] -> GSI 16 (level, low) -> IRQ 22
Nov 25 10:39:16 rtpc06 pam_rhosts_auth[4389]: allowed to virgorun@ctrl12.virgo.infn.it as virgorun
Nov 25 10:39:16 rtpc06 rsh(pam_unix)[4389]: session opened for user virgorun by (uid=0)
Nov 25 10:39:16 rtpc06 kernel:
Nov 25 10:39:16 rtpc06 kernel: LXRT CHANGED MODE (SYSCALL), PID = 4430, SYSCALL = 242.
Nov 25 10:39:20 rtpc06 pam_rhosts_auth[4432]: allowed to virgorun@ctrl12.virgo.infn.it as virgorun
Nov 25 10:39:20 rtpc06 rsh(pam_unix)[4432]: session opened for user virgorun by (uid=0)
Nov 25 10:39:23 rtpc06 pam_rhosts_auth[4475]: allowed to virgorun@ctrl12.virgo.infn.it as virgorun
Nov 25 10:39:23 rtpc06 rsh(pam_unix)[4475]: session opened for user virgorun by (uid=0)
Nov 25 10:41:50 rtpc06 syslogd 1.4.1: restart.
Nov 25 10:41:50 rtpc06 syslog: syslogd startup succeeded
Nov 25 10:41:50 rtpc06 kernel: klogd 1.4.1, log source = /proc/kmsg started.
I rebooted the rtpc06 again and could finally restart all tasks.
As the ITF relock with the MS suspension will be done with the new DSP_TOLMs deployed on all the towers, the GC_GTW1 and GC_GTW2 servers were stopped.
Their TOLM_PMCs will be used on the one of DSP carriers needed for the terminal towers.
The crate C36 and C38 were dismounted. One 7 slot VME crate C14 remains in the rack R14 with the rio36a and rio36b for compilation and tests.
There is an online monitoring of the delay between the data sent by Gc and the one forwarded by the control DSP.
The first plot shown the number of sampling in error per second.
There is not delay added between the Gc rtpc06 and the Sc_NE and Sc_WE even with the gateways(Gc_GTW1 and Gc_GTW2).
While for the 2 new Sc DSPs PR and BS there is several samples in error.
The second and third plost shown a typical event where the same sample is use two time by the DSP. According the LDMoni FFT the main rate of these event are 50Hz, 2KHz and 4 KHz.
The Tolm packets sent by the rtpc06 are in order(cf the TolmLocking configuration):
. the TOLM packet for the GC_GTW1(monitoring channels Gc_GTW1_emTime and Gc_GTW1_txTime)
. the TOLM packet for the GC_GTW2(monitoring channel Gc_GTW2_emTime and Gc_GTW2_txTime)
. the TOLM packet for the Sc_PR DSP(no monitoring channel)
. the TOLM packet for the Sc_BS DSP(no monitoring channel)
. the TOLM packet for the Sc_OB DSP(no monitoring channel)
. a TOLM packet for the rtpc15(monitoring channels Daq_Susp_Pr_Tt_Send_Start Daq_Susp_Pr_Tt_Send_Transmit)
According the last plot, the last packet sent by the rtpc06 crossing through 3 Mux/Demux is available at maximum 38us after the beginning of the locking cycle.
Unfortunately, we don't have up to now the same monitoring for the packets received by the DSP. Anyway the packets sent to the DSPs:
. are sent before the rtpc15 Tolm packet
. have the same number of Mux/Demux to cross
. so should have the same maximum delivery time
Investigations in progress
As requested by Nicolas Leroy, in order to simplify the use of GcLocking and in particular to adapt it to CALVA, the code was reorganized in v2r12 to access from a common file (GcLockingCommon.h) all the common definitions used by the algo and the server (Signals,Positions,Lengths,Commands,LockingState). The version v2r12 is up and running.
To avoid the same problem as the Alignment last week (see Alignment problem after maintenance) All the ADC7674 uses for the locking were reloaded and the Pr_ISYS, Pr_ITF, Pr_Ca and Pr_Demod restarted
For test purposes, the Alignment data acquired by the ADC7674s PrQ1q_ADC0, PrQ2_ADC0, PrQ5_ADC0 ADC7674 and those acquired by the ADC298As Qr72_DAQ and PrQ8 are sent only to the rtpc11: the TOLM broadcast is disabled.
The unlock of this morning was caused by a communication problem between GcAlignment and PR lower DSP. The angular corrections were good at Gc level but corrupted at DSP. A bit after the ulock also PR longitudinal correction became corrupted.
New servers version:
. TolmProcessor v0r43p1
. TolmFRameBuilder v1r1p14
. Pr v10r10p4
. GcLocking v2r9p1
. GcAlignment v2r9p1
The main upgrade is in the TolmProcessor packages: now the TOLM_PROCESSOR_OUTPUT_PACKET are processed and sent trough the TOLM link before the TOLM_PROCESSOR_DAQ_FIFO_PACKET processing
The upgrade has been done on:
. ClITFCtrl
. ClCalibration
. ClBenchesC and ClBenchesE
Please restart yours clients to take in account these modifications
Please restart your ClDaqCollect UI too, the following servers were restarted with the new TolmFrameBuilder release:
. FbLocking, FbAlign
. FbCa
. FbMoniCB, FbMoniMc, FbMoniNe and FbMoniWe
In this new version Sensing offsets and gains can be adjusted onfly with a ramp fixed of 5 second at the moment.
Cleint ClITF.cfg has been updated and GcAlignment v2r9 is now up and running
This patch v2r8p3 hopefully will solve some of the remaining problems related to the DAQ and improves the startup phase report on user info and channel management, and some code optimization.
Following is the ChangeLog report for v2r8p3:
* avoid passing strings in algo function arguments in Controls.c:
- add alignment_algo_get_debug_sensing function (used instead of general alignment_algo_get_debug_data)
- remove unused argument string fsm_state in alignment_algo_compute function
It solves the bug of the /var/log/messages (Data losses at 2h02 UTC on rtpc11):
Sep 21 16:29:21 rtpc07 kernel: BUG: sleeping function called from invalid context at arch/i386/lib/usercopy.c:113
Sep 21 16:29:21 rtpc07 kernel: in_atomic():0, irqs_disabled():1
Sep 21 16:29:21 rtpc07 kernel: [] __might_sleep+0xfe/0x104
Sep 21 16:29:21 rtpc07 kernel: [] strncpy_from_user+0x37/0x5b
Sep 21 16:29:21 rtpc07 kernel: [] do_getname+0x40/0x5d
Sep 21 16:29:21 rtpc07 kernel: [] getname+0x2a/0x60
Sep 21 16:29:21 rtpc07 kernel: [] __user_walk_fd+0x10/0x3e
Sep 21 16:29:21 rtpc07 kernel: [] vfs_stat_fd+0x19/0x40
Sep 21 16:29:21 rtpc07 kernel: [] sys_stat64+0xf/0x23
Sep 21 16:29:21 rtpc07 kernel: [] __ipipe_dispatch_event+0x28/0x228
Sep 21 16:29:21 rtpc07 kernel: [] copy_to_user+0x3f/0x47
Sep 21 16:29:21 rtpc07 kernel: [] sys_select+0x136/0x154
Sep 21 16:29:21 rtpc07 kernel: [] getnstimeofday+0x33/0x10a
Sep 21 16:29:21 rtpc07 kernel: [] __ipipe_syscall_root+0x81/0x111
Sep 21 16:29:21 rtpc07 kernel: [] sysenter_past_esp+0x6e/0x72
* add some user info during long idle state
* add (int,float,double) type values in channel_t structure
* Check configuration types in alignmentInit function
* Add a algo_run_one method in configured state
A new configuration file is associated to this patch v2r8p3 (GcAlignment.cfg_Oo_New). It is now up and running. The present computing time in the cycle is now about 9 us (gained a factor 2). Gc Trend window must be updated again !
On Gabriele's request, a new signal is sent to each terminal suspension.
To allow this:
1. On the TolmLocking server configuration the two signals are declared:
. TOLM_PROCESSOR_CHANNEL Gc_NE_z0 -32 10000. 10000. 0. 1. "au" "" 0.
. TOLM_PROCESSOR_CHANNEL Gc_WE_z0 -32 10000. 10000. 0. 1. "au" "" 0.
and added to the 2 TOLM output packets GC_SC1 for the North End and GC_SC2 for the West End
2 On the each TOLM Gateway GC_GTW1 and GC_GTW2 their configuration were upgraded to propagate this new signal as the last word before the DOL tailer for each tower
3. The NE and WE DSPs configuration were upgraded by Paolo Ruggi to read this new word.
For the Sc_NE DSP GC DOL input, the channels are
. GLB_00 Gc_NE_z
. GLB_01 Pr_NE_txCorr = Gc_Al_NE_txCorr + sinewave(PrDemod)
. GLB_02 Pr_NE_tyCorr = Gc_Al_NE_tyCorr + sinewave(PrDemod)
. GLB_03 Ca_NE_zMirUD
. GLB_04 Ca_NE_zMirLR
. GLB_05 Ca_NE_zMar
. GLB_06 Ca_NE_Noise
. GLB_07 Gc_NE_z0
Same DOL input configuration for Sc_WE DSP.
All the ClITFCtrl Pr servers are running with the v10r10p3 release.
The major modifcations are:
. fix the bug when the PR_UNZIP a0 parmater is equal to 0
- when publising the Pr channel in the TOLM channel buffer, declare Pr as the writer of all the published channels
I found the bug in GcAlignment which caused the recurrent crash of rtpc11 reported this morning again in Operation report - Night shift.
, as revealed by the core:
CmConnectNew () from /virgo/VCS-7.0/VIRGOSW/Cm/v8r5/Linux-i686-SL4/libCm.so
(gdb) bt
#0 0xb7dea9f4 in CmConnectNew () from /virgo/VCS-7.0/VIRGOSW/Cm/v8r5/Linux-i686-SL4/libCm.so
#1 0xb7df08c0 in CmMessagePost () from /virgo/VCS-7.0/VIRGOSW/Cm/v8r5/Linux-i686-SL4/libCm.so
#2 0xb7df0c53 in CmMessageSend () from /virgo/VCS-7.0/VIRGOSW/Cm/v8r5/Linux-i686-SL4/libCm.so
#3 0xb7d93b63 in SmsMsgHandler (message=0x696c415f, sender=0x6c666e4f ,
receiver=0x78745f79 ) at ../src/CmHandlers.c:816
Indeed it appeared clearly that since I added the two Output{x,y} degree of freedom, Sms message string was lacking memory allocation.
The GcAlignment crashes started to show up since the first introduction of the new degrees of freedom (11 August), most of them during automatic angular noise budget from Alp (but it also happened a couple of time during manual operation).
In such a situation of unsufficient memory allocation, the crash is more likely to happen when a change of onfly is triggered at the same time than a Sms request. In general, this is more likely to happen when a change of onfly is requested from Alp since it is synchronized with the DAQ chain. This is why most crashes were observed during the angular noise budget, which is the only macro triggering a change of onfly (in Tools).
I correct the bug by increasing the memory buffer allocation for the Sms string (in the current version v2r8p2), and restarted GcAlignment. This should solve the problem !
The truth is even much easier to understand since, when the Tool algo is triggered the Sms string size increases by the size of the Tools onfly string. This is why it happened when the Tools algo is switched on.
The rtpc11 crash mentioned during Operation report - Night shift is due to a crash of GcAlignment process (from /var/messages: Sep 14 03:23:54 rtpc11 kernel: GcAlignment.exe[8908]: segfault at 4f696c41 eip 44fd963b esp bf969598 error 4). I found aGcAlignment log file full (2GB) which is most probably the reason of the system crash. The many attempts to lock this night partially explains this oversized logfile.
In these new versions, switches for Output_t{x,y} are introduced, and are manageable from the GUI. In the GcAlignment.cfg file, input signal Oo_{x,y} have been inverted after request of Ruggi et al.
Tested on rtpc07 in parallel while locked at step 12.
Pending actions:
- Restart your ClITFCtrl clients.
- Restart GcAlignment to take effect. (To be done by experts)
- To use Output_t{x,y} corrections is it necessary to close coresponding loops using usual cm command (like in Alignment.cfg,Steps.cfg)
Last week some tests were performed to understand the reloadConfig problems observed on QrITF.
I built a new release v10r10p2, where I remove the update to the TOLM_PROCESSOR_PACKET keywords in the reloadConfig operations. In this configuration, I succeed to perform more than 80 reloadConfig, one each for 5s, without having the QrITF_10K RTTask stuck.
This morning, all the Pr running in RTLinux were restarted with this new release: PrISYS, PrITF, PrCa, PrDemod, QrITF_10K and QrITF.
Please restart your ClITFCtrl to take in account these modifications
A new version for both GcLocking and GcAlignment have been installed during maintenance (v2r8p1). These versions commonly include :
- A selective input channel type treatment (FLOAT,DOUBLE) to remove precision loss between Pr and Gc tasks. From now on, DOUBLE type treatment is used from Pr,Qr to GcLocking,GcAlignment tasks (D_ suffixes in channel names are used in GcLocking,GcAlignment configuration files).
- Concerning entry GcAlignment crashed during angular noise budget, the crash occured about 0.5 second after the successfull launch of the noise algo and from the core analysis, may be related to the response treatment at the level of the server. Additional robustness at level of the server handler has been added in v2r8p1.
In addition we performed some extensive tests:
- Offline codes updated and tested OK (including noise algo switches for GcAlignment, Full locking sequence for GcLocking)
- Online code tested on rtpc07 (only GcAlignment) with real data in parallel (including noise algo switches for GcAlignment)
- Online codes tested with DOUBLE type (including a test launching an Alp macro angular noise budget, during maintenance) OK.