Libera Software status at the ESRF

Download Report

Transcript Libera Software status at the ESRF

2nd Libera Users’ Meeting
3rd and 4th of April 2008
ALBA
Libera Software status at the ESRF
F.Epaud
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 1
Liberas devices at the ESRF (1)
4 Liberas for Bunch/Bunch Feedback:





LiberaAccess TANGO device server (Access to the FAI and DDRAM)
MultibunchFeedback TANGO device server
Firmware V1.04 (one upgraded to V1.40 -> gives problem)
Java application for operation (on left)
LabVIEW application for ‘Experts’ (below)
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 2
Liberas devices at the ESRF (2)
1 Libera Electron + FPGA ESRF’ design
for the Transfer Efficiencies measurement
 4 striplines (TL1, SY, TL2, SR)
connected to the ADC inputs of the
Libera
 Firmware V1.42
 LiberaAccess TANGO device server
(Access to the FAI and DDRAM)
 XfrEffLibera TANGO device server
 Java application
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 3
Liberas devices at the ESRF (3)
 3 Libera Brilliance for TL2 BPM
 Firmware V1.80
 BPMLibera TANGO device server from
SOLEIL
 LiberaPulsedBPM
 Java application
 2 Libera Brilliance for second Transfer
Efficiencies measurement based on Libera:
 On hold
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 4
Liberas devices at the ESRF (4)
8 Libera Brilliance for SR-BPM: In view to equip all the SR (32 cells * 7 BPMs = 224)
 Firmware version:
 4 with Firmware V1.60 (1 back to I-TECH)
 3 with Firmware V1.80
 1 with firmware V1.82
 Just upgraded to V1.82 last tuesday
 BPMLibera TANGO device server device server from SOLEIL
 CVS Version 4.1.1
 New needs
 Some bugs
 BPMLiberaAll TANGO device server
 Collect the X and Z positions for the SOFB
 Set/Get parameters to/from all the Liberas
 Applications:
 operation (none at the moment)
 Debugging (uses ATK panel)
 Configuration tools: first installation, upgrades, TANGO configuration
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 5
Installation and upgrade tools (for SR)
Fully automatized and documented on the WEB in order that the Diagnostics team can make it

Installation:
 Network connection (Use DHCP)
 Customisation scripts: prompt, ntp, mount to a common NFS point, ssh
configuration (needed for upgrades)
 TANGO configuration tool (on left)
 based on a naming convention: sr/d-bpmlibera/c<cell>-<BPM>
 <Cell > = 1 to 32,
 <BPM> = 1 to 7
 Creates the device (only the last 2 fields of IP number are mandatory)
 Creates ‘Frees’ properties
 Add a Line in DeviceParameters and BlockParameters
 HwParameters will not be used at the ESRF
 Upgrades scripts:
 V1.60 to V1.80, V1.80 to V1.82
 List of the Liberas to be upgraded in a file
 ssh to all Liberas and run of upgrade scripts
 Since V1.60, I-TECH uses Debian packaging instead of their own tools
 Script to change of FPGA program on all Liberas
 Script to verify the formware version of all the Liberas and the FPGA program in use
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 6
SR-BPM architecture



32 cells with 7 BPMs each (224 Liberas).
One dedicated VLAN (not dedicated physical network, shared with the rest of the
control)
Computing ressources needed per BPMLibera TANGO device server:
(Access with ATK panel at 1 Hz)
Mode
SA
SA + DD (10000
samples)
SA + DD + ADC
(1024 samples)
% CPU
Pentium 4 HT/ 2.8 GHz–
Linux/redhate 4
~2%
% Network
100 Mbs
?
~3%
?
~4%
?
 ~ 25 servers per crate
 ~ 9 Linux crates (new version: PCI Express, Pentium 4 Core Duo /2 GHz)
 Embedded TANGO device server should be very interesting
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 7
BPM Libera TANGO device server
 SOLEIL device server
 Add-On:




Attributes: SUMSAHistory (spectrum), MeanSumSA (scalar)
Arc tangent algorithm for position calculation (not implemented yet)
Incoherency calculation (not implemented yet)
Support of CSPI 1.82 ( in progress, but waitting for I-TECH’s bugs correction)
 Features and Bugs:
 Calculation of SA X and X mean Position on the last acquired samples (ordered data)
 Locking of semaphore, message passing
 Problems reading class property (pogo code generation problem)
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 8
BPMLiberaAll TANGO device server
 Functionalities:






Collect the data from all the Liberas (XposSA and ZposSA)
Read/Set Parameters to all Liberas (e.g. Gains, Offset Tune, SetTime ???,…)
Correct data according to beam current and filling mode (not yet implemented)
Checks BPM incoherencies (not yet implemented)
Automatic gain control (not yet implemented)
Allows to Disable faulty BPMs
 Uses TANGO attribute Group call
Problems:
 Multiple attributes group call not allowed within TANGO. 1 call required for each plan (loose of
synchronisation: ~ 10 mS with 8 Liberas), therefore we can’t assume to read the same sample
 XposSA and ZposSA reading time for 8 liberas: ~ 20 mS
 SetTime (setting of System Time, Machine Time and Machine Time Phase).
Problems:
 Actually no possibility to disable the 1Hz/10Hz trigger.
 Actually no possibility to synchronise the BPMLiberaAll device server
 Needs 1.5 seconds to set the times to 8 liberas (4 groups calls).
 But: For slow orbit correction it’s not a problem if the Liberas are not synchronised
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 9
FOFB: 10 KHz FA Mode (With I-TECH design
32 groups of 7 Liberas
 Protocol uses UDP packets
 At cell level:
 ~ 11 Mbs ( 1.1 % of Gb bandwidth)
 1.1 uS to transfer a packet
 At switch level:
 ~ 358 Mbs (36 % of Gb bandwidth)
 36 uS to transfer all packets
(*) But packets are synchronised, therefore
there will be collissions, possibly looses of
packets (TO TEST)
- STAR topology)

 1 UDP deamon per group using a different port.
( Generally received data are stored in a buffer
within the driver, then the daemon is awaken when
all data are received)
1 libera
32 goups of
7 Liberas
16 groups
of 14
Liberas
On one cell:
- Data size (long)
4
28
56
- Date size (byte)
16
112
224
- UDP/IP header (byte)
28
28
28
- Total packet size (byte)
44
140
252
- Data rate / 100 us (bit/100us))
352
1120
2016
- Data rate / sec for a group (Mbit/s)
3,52
11,2
20,16
- Packet transmission time (us)
0,044
1,12
2,02
0,4
1,1
2,0
32
16
- Total Data size (bytes)
4480
4032
- Data rate / 100 us (bit/100us))
35840
32256
- Total data rate (M bit/s)
358
323
- Total transmission time (us) (*)
36
32
- % of 1 Gigabit bandwidth
36
32
- % of 1 Gigabit bandwidth
 Buffer reading in conversion from byte to double
On the data concentrator area:
 CPU for Matrix calculation
- Number of group
 OS and drivers latencies and determinism to write
to the steerers.
 How to measure the ‘latency’ of the whole chain:
 Liberas synchronisation (stops of Trigger)
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 10
Conclusion / Questions
 TANGO device server:



of

Do you use embedded TANGO device server in operation. Whish version ? On top of generic server ?
What is your computers architecture: How many servers per crate, how many crates
What is your network architecture: How many VLAN, physical dedicated network or shared with the rest
the control
Software sharing: Several versions drived from the SOLEIL device server
 Higher level server:
 Have you a server to centralised the data
 Can you disable the trigger to perform the “SetTime” on all the liberas
 Installation and upgrades:
 Have you tools for installation and maintenance
 Have you had to return Libera, due to internal FLASH memory corruption.
 Actually 5 persons (not full time) of the Software works for Libera support
 BPMLibera TANGO device server (Jens Meyer)
 BPMLiberaAll TANGO device server (Francis Epaud)
 Installation tools and procedures, updates, day to day support for DIAG group (Bernard Regad et
Francis Epaud)
 Applications : Faranguiss Poncet (control and tools) and Laurent Farvacque (Machine physics)
Thanks a lot to Nicolas Leclercq from SOLEIL
Can we share some development
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 11
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 12
Libera Users' meeting at ALBA
/
3rd and 4th April 2008
/
F.Epaud
' Slide: 13