Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Synchronization and Sequencing for high level applications Julian Lewis AB/CO/HT.

Similar presentations


Presentation on theme: "1 Synchronization and Sequencing for high level applications Julian Lewis AB/CO/HT."— Presentation transcript:

1 1 Synchronization and Sequencing for high level applications Julian Lewis AB/CO/HT

2 2 Synchronization: How it works PSB 1.1 PSB 1.2 PSB 2.1 PSB 2.2 PS Batch 1PS Batch 2 SPS Bkt 1 Rng 1 2 Batch Acquisition data + Acquisition time stamp Synchronization event + Telegram & Time stamps + Flags: StBm StCy… JAPC C/C++ From DMCRPLS via UDP SC compositionAll timing cables From DSC via MW The DSC timing cableEquipment TGMMW LHC Missed !! OK Data EnBm EnCy StBm StCy Arrival Time Events t=Kt=0 t mean From DMCRPLS via GMT & CTRI

3 3 Application events 00:Fields : 0x807fffff 01:EvtId : 211 02:Catags : 0x0000061e: ------ StrCyc TgmRdy BpRdy EndCyc ------ ------ ------ StrtBm EndBm 03:Machine: PSB 04:BPTime : Tue-22/Mar/2005 10:24:58.917 (1111483498 S) (917 Ms) 06:SeqNo :1512866 07:ChsId : 1111157523 Fri-18/Mar/2005 15:52:03 08:Level : 1 09:BmState: Spare 10:BmId : 12370 11:BmIns : 5 12:BmTime : Tue-22/Mar/2005 10:24:58.917 (1111483498 S) (917 Ms) 14:CycId : 2: ISOGPS 15:CycInst: 2 16:CycTime: Tue-22/Mar/2005 10:24:58.917 (1111483498 S) (917 Ms) 18:BPInst : 5 19:AqnTime: Tue-22/Mar/2005 10:24:58.917 (1111483498 S) (917 Ms) 21:EvtTime: Tue-22/Mar/2005 10:24:58.917 (1111483498 S) (917 Ms) 31:Telegm : 2 1 3 1 0 0 4205 5 ff 586c bc 5 18 1 2 1 0 78 40 fb 1 1 578 3052 4 4 4 4 4 1 Acquisition time stamp Beam time stamp Telegram Flags

4 4 Latency for CTRI on pcgw Ker 2.6 Time of 1PPS Interrupt: Mon-18/Apr/2005 15:56:10.0000072500 Time of call to driver: Mon-18/Apr/2005 15:56:10.0000187000 Latency of driver call: 0.0000114500 Seconds Average time: 500 calls: 0.0000115971 Seconds Max and Min: [0.0000213500 - 0.0000111000] Time of 1PPS Interrupt: Mon-18/Apr/2005 16:05:38.0000068000 Time of call to driver: Mon-18/Apr/2005 16:05:38.0000216250 Latency of driver call: 0.0000148250 Seconds Average time: 265 call: 0.0000514722 Seconds Max and Min: [0.0024420250 - 0.0000111500] ~0.025ms unloaded Wait PPS Read Time Compute latency CTRI DrIverDrIver PPS interrupt Wait PPS Read Time Compute latency Wait PPS Read Time Compute latency Wait PPS Read Time Compute latency 2.5ms very loaded

5 5 Producing events Event pusher GMT Timing cables PSB/LEI/CPS/ADE/SPS/LHC CBCM Programs BCD/Beams/Cycles etc … Events DTM/UDP Events via GMT Events UDP To non critical systems in CCC, offices and labs For CNGS Grand Saso Mission critical servers and work stations CTGCTRI CCC Reflective memory

6 6 RF synchronization

7 7 Go no Go and retries

8 8 LHC Filling

9 9 CBCM – Brain critical interactions CBCM LHC BRAIN Post-Mortem Dump Bucket Ring Intensity Batches Start-Ramp Ready Pilot One-Shot Commit Events Data + Stamps from MW CRITICAL Timing Control

10 10 Field and Timing

11 11 Added Value (1) All telegrams for all accelerators are available. Acquisition data to cycle correlation. Cycle to Beam & BCD correlation. Missing or late MW data detection. Better handling of errors during an LHC fill allowing quicker response, and less lost super-cycles. Makes ON-Change subscriptions possible. No need to subscribe to telegrams, so MW is less stressed, gets on with essential job. Less loading of the controls network. Precise: (250us - 2.5ms scheduler) using a CTRI. Reliable: CTRI unaffected by network loading. Works without MW - subscription (Pull).

12 12 Added Value (2) Backwards compatible with PS complex. Real time events can be added as needed. EG Post-mortem, BIC, Commit-Transactions. Works everywhere. (Offices + Technical network). Client code is unaware of the event source. Scalable, IE unaffected by the number of clients. Allows modification of telegram description on the fly.

13 13 Affect of installing a CTRI on a server or workstation Client software, there is zero effect. Work station configuration, there is zero effect. Hardware, the CTRI cards are reliable, if they don’t work we are in real trouble ! Installed like this Linux DSCs insmod /ps/dsc/mcr/L86/`uname -R`/ctr/CtrModule.ko Linux servers and work stations insmod /ps/mcr/`uname -R`/ctr/CtrModule.ko

14 14 Cost & Maintenance 150M Cable ( < 1000 Sf) 4 Timing Fan outs ( < 4 x 100 Sf) GMT Cannon-Cables as needed (25 Sf each) CTRI Cards as needed (~800 Sf each) Maintenance of Linux driver: No extra cost Diagnostics: Available, ctrtest is a lot easier to use than DTM Diagnostics. Saves costs.

15 15 Conclusion: Using CTRIs Installing CTRI cards in critical systems is cheap, easy to do, and greatly increases both run time reliability and timing precision. No effect on clients or platform configuration. Increases the chances of detecting errors early, and hence reduces the number of lost super-cycles during an LHC fill. Less annoying to PS Ops. Increase overall performance by reducing network and MW loads. Completely deterministic. Good and cheap insurance policy; connect stations as needed at 1000Sf per connection. Cost for cables and connectors less than 2000 Sf !! Easier to maintain: I see NO Down Side.


Download ppt "1 Synchronization and Sequencing for high level applications Julian Lewis AB/CO/HT."

Similar presentations


Ads by Google