FSM – ConfDB Integration FW WG Meeting 17 th March, 2006 Fernando Varela Rodriguez, IT-CO (with the input from: Clara, Alex, Sascha, Piotr and Francisca)

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

Stefan KoestnerTutorial – User GuideSeptember 2007 TELL1 - CONTROL Guidelines for Users & Developers.
European Organization for Nuclear Research LHC GCS Recipes Geraldine Thomas 11 December 2009.
JCOP FW Update ALICE DCS Workshop 6 th and 7 th October, 2005 Fernando Varela Rodriguez, IT-CO Outline Organization Current status Future work.
Process Synchronization. Module 6: Process Synchronization Background The Critical-Section Problem Peterson’s Solution Synchronization Hardware Semaphores.
CHEP 2012 – New York City 1.  LHC Delivers bunch crossing at 40MHz  LHCb reduces the rate with a two level trigger system: ◦ First Level (L0) – Hardware.
The new The new MONARC Simulation Framework Iosif Legrand  California Institute of Technology.
Clara Gaspar, March 2006 LHCb’s Experiment Control System Step by Step.
Remote Unit Testing Milestone III Alex Riordan Brian Pruitt-Goddard.
D etector C ontrol S ystem HMPID SB G. De Cataldo CERN-CH, A. Franco & A. Nardulli INFN Bari, I 1 HMPID Updates and prototyping HMPID DCS with.
Introduction to Matlab & Data Analysis
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
2: Computer-System Structures
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems CSCI-6140 – Computer Operating Systems David Goldschmidt, Ph.D.
European Organization for Nuclear Research LHC Gas Control System Applications G.Thomas, J.Ortola Vidal, J.Rochez EN-ICE Workshop 23 April 2009.
Clara Gaspar, October 2011 The LHCb Experiment Control System: On the path to full automation.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Update on Database Issues Peter Chochula DCS Workshop, June 21, 2004 Colmar.
D etector C ontrol S ystem ALICE DCS workshop G. De Cataldo CERN-CH, A. Franco INFN Bari, I 1 Finite State Machines (FSM) for the ALICE DCS:
PVSSProxy The first piece of the MACS procedure framework (ProShell) Angela Brett.
ALICE, ATLAS, CMS & LHCb joint workshop on
P. Chochula ALICE Week Colmar, June 21, 2004 Status of FED developments.
20th September 2004ALICE DCS Meeting1 Overview FW News PVSS News PVSS Scaling Up News Front-end News Questions.
Controls EN-ICE Finite States Machines An introduction Marco Boccioli FSM model(s) of detector control 26 th April 2011.
Clara Gaspar, March 2005 LHCb Online & the Conditions DB.
JCOP Review, March 2003 D.R.Myers, IT-CO1 JCOP Review 2003 Architecture.
Bruno Belbute, October 2006 Presentation Rehearsal for the Follow-up meeting of the Protocol between AdI and CERN.
Alarm Help. Points to discuss (from Clara) Display Only one line per DPE (fatal, error, warning) Background colour should fill whole row Simple version.
ESA UNCLASSIFIED – For Official Use Workshop #23 Pasadena, USA 25 rd March 2015 Sam Cooper Common services update (part 2)
Peter Chochula ALICE Offline Week, October 04,2005 External access to the ALICE DCS archives.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Workforce Scheduling Release 5.0 for Windows Implementation Overview OWS Development Team.
Controls EN-ICE FSM for dummies (…w/ all my respects) 15 th Jan 09.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
Clara Gaspar, July 2005 RTTC Control System Status and Plans.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Clara Gaspar, December 2012 Experiment Control System & Electronics Upgrade.
Rack Wizard LECC 2003 Frank Glege. LECC Frank Glege - CERN2/12 Content CMS databases - overview The equipment database The Rack Wizard.
Configuration database status report Eric van Herwijnen September 29 th 2004 work done by: Lana Abadie Felix Schmidt-Eisenlohr.
OSes: 2. Structs 1 Operating Systems v Objective –to give a (selective) overview of computer system architectures Certificate Program in Software Development.
CERN, Artur Barczyk, CERN/PH-LBC 1 Network Monitoring and Control in LHCb A (very) brief introduction.
TBPM Front-End Software Design Review L.Piccoli April
European Organization for Nuclear Research LHC Gas Control System Applications Generation to Deployment phases Strategy/Principles.
LHCb Configuration Database Lana Abadie, PhD student (CERN & University of Pierre et Marie Curie (Paris VI), LIP6.
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
1 ECS CALO LED Control System CALO Piquet Training Session Anatoli Konoplyannikov /ITEP/ Outline  Introduction  Calorimeter ECS LED monitoring.
Database Issues Peter Chochula 7 th DCS Workshop, June 16, 2003.
DCS Meeting - 17/6/2002 G. De Cataldo, A.Franco - INFN Bari - 1 The implementation of the HMPID DCS in the PVSS-JCOP Framework The Liquid Circulation and.
JCOP Framework and PVSS News ALICE DCS Workshop 14 th March, 2006 Piotr Golonka CERN IT/CO-BE Outline PVSS status Framework: Current status and future.
Clara Gaspar, February 2007 LHCb’s Experiment Control System & Electronics Integration Step by Step.
Peter Chochula Calibration Workshop, February 23, 2005
TBPM Front-End Software Design Review
Online Control Program: a summary of recent discussions
Controlling a large CPU farm using industrial tools
Tools to Build Clients.
Publishing PVSS data on the Web
Module 2: Computer-System Structures
New FSM v24r1.
Pierluigi Paolucci & Giovanni Polese
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Module 2: Computer-System Structures
Pierluigi Paolucci & Giovanni Polese
Tools for the Automation of large distributed control systems
Module 2: Computer-System Structures
Chapter 2: Operating-System Structures
Module 2: Computer-System Structures
Configuration DB Status report Lana Abadie
Pierluigi Paolucci & Giovanni Polese
Presentation transcript:

FSM – ConfDB Integration FW WG Meeting 17 th March, 2006 Fernando Varela Rodriguez, IT-CO (with the input from: Clara, Alex, Sascha, Piotr and Francisca) Outline Aim Prototype Open question Discussion

17 March, 2006FW WG Meeting2 Aim Synchronize the contents of the Configuration DB and the PVSS internal caches to ensure the availability of all configuration data for a given running mode  Configuration DB: holds all configuration parameters  FSM: Recipes are applied when a new command is sent Two tools: However:  ConfDB: recipes may contain a large number of devices  FSM: distributed and local intelligence

17 March, 2006FW WG Meeting3 Interface Implementation as DU Vertex HVLVCooling CULU DU DU FSM-ConfDB ConfDB

17 March, 2006FW WG Meeting4 Some assumptions  There is one FSMConfDB DU per either LU or CU  The run mode is passed as a command argument to these DU from the parent CU  The FSMConfDB handles the configuration of all other DU in the control domain  Upon the reception of a predefined command (e.g. LOAD, CONFIGURE), the FSMConfDB DU loads all configurations for a given run mode and for all DU in its control domain from the ConfDB  Recipes are associated to FSM transition Naming convention required for recipes!!!

DEMO

17 March, 2006FW WG Meeting6 Initialization of the FSM tree Vertex HVLVCooling ConfDB X X  All FSMConfDB DU must be initialized by calling: int fwFSMConfDB_initialize(string sDomain, string sConfigurator);  Disables the FSMConfDB DU if its parent is not a CU and returns  Builds an internal list of DU in the SMI++ domain to be configured  Initializes the connection to the ConfDB  If success, sets the state of the DU to NOT_READY, otherwise ERROR

17 March, 2006FW WG Meeting7 New configuration request Two scenarios:  On-the-fly configuration, e.g. thru CONFIGURE command where this command is also defined for other DU in the tree -Pro: It would not require to define an additional command and a state throughout the FSM hierarchy -Con: Configuration would imply the addition step of loading the recipes  Preloading of recipes, e.g. LOAD command only defined for CU/LU and FSMConfDB DU -Con: Requires the LOAD command and the LOADED state to be implemented by the CUs -Pros: Could load the recipes at any moment, e.g. one could event prepare for COSMICS when a PHYSICS run is about to finish

17 March, 2006FW WG Meeting8 Request for new configuration (2)  FSMConfDB DU gets the run mode: fwDU_getCommandParameter(domain, device, "sMode", mode);  For On-the-fly configuration: The other DU in the domain wait for the FSMConfDB to finish uploading the recipes for the run mode: bool fwFSMConfDB_waitForStateChange(string sDomain, string sConfigurator, time timeout);  FSMConfDB retrieves all recipes for the given mode from the ConfDB int fwFSMConfDB_cacheAllRecipesForMode(string sDomain, string sConfigurator, string sMode = "");  FSMConfDB organizes the PVSS internal caches DOMAIN_NAME/RUN_MODE/FSM_CMD, e.g. EBC/PHYSICS/CONFIGURE

17 March, 2006FW WG Meeting9 Applying recipes If DUs apply recipe: FwAioVertexCooling_doCommand(string domain, string device, string command){ fwFSMConfDB_ApplyRecipeFromCache(domain, device, command); } BUT… Could become very inefficient since the Configuration DB tool is optimized to apply a recipe to a bunch of devices at the same time

17 March, 2006FW WG Meeting10 Applying recipes Who applies the recipes?  The FSMConfDB DUs?  Better performance but…  Does it provide all functionality required?  Each device unit? Total flexibility but how to organize the caches?  One cache per device? => Too many dps being created/deleted  Single cache per domain and recipe? => ConfDB tool could become slow  Several caches per domain => Recipe Dictionary

17 March, 2006FW WG Meeting11 Applying recipes (3) Recipe Dictionary PHYSCIS/ CONFIGURE PHYSICS/ GOTO_STG_1 PHYSICS/ GOTO_STG_2 PHYSICS/ GOTO_READY COSMICS/ CONFIGURE COSMICS/ GOTO_READY device1111 …1111 device Device device …22323 deviceNmn2324  It would be set up by the FSMConfDB DU  The other DU would access it to find out the cache to be used

17 March, 2006FW WG Meeting12 Open questions  Is it fine to impose naming convention on recipes?  How to store to the ConfDB the FSM hierarchy  One cache per recipe and control domain or a set of caches? What should the granularity be?  ConfDB intended to be used by means of tag names. How to handle different version? Version name in recipe name?  Who applies the recipe? Generic and fast vs. local and slow?  Applying a recipe must have a timeout?

17 March, 2006FW WG Meeting13 Discussion