Prototyping the Next EPICS Archiver

Slides:



Advertisements
Similar presentations
MDS4 Roadmap Items Laura Pearlman USC Information Sciences Institute.
Advertisements

V4 Status and Workshop Report CSS, DISCS, an V4 team.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS V4 Support to Physics Application, Data Acquisition, and Data Analysis L. Dalesio, Gabriele Carcassi, Martin Richard.
EPICS Architecture Version 3 Channel Access Client (CAC) Connection Data Transfers WAN/LAN/Local Connection Data Transfers Channel Access Server (CAS)
LCLS Control System Overview Mike Zelazny SLAC ICD Software Department Accelerator Directorate.
Archive Systems What you always wanted to know but were afraid to ask: What’s available? Who’s doing what? PAL EPICS Meeting Oct
AreaDetector Data Processing Pipeline In EPICS V4 Dave Hickin Diamond Light Source EPICS Collaboration Meeting Diamond Light Source 01/05/2013.
July 8, 2008SLAC Annual Program ReviewPage 1 LSST Data Management and Access Jacek Becla LSST Data Access & Database Technology Group Leader.
1/3 G. Manduchi EPICS Collaboration Meeting Spring 2010 New EPICS Channel Archiver based on MDSplus data system G. Manduchi, A. Luchetta, C. Taliercio,
Distributed Data Analysis & Dissemination System (D-DADS) Prepared by Stefan Falke Rudolf Husar Bret Schichtel June 2000.
Data Acquisition at the NSLS II Leo Dalesio, (NSLS II control group) Oct 22, 2014 (not 2010)
Loris Giovannini, Mauro Giacchini Epics Collaboration Meeting
DISTRIBUTED DATA FLOW WEB-SERVICES FOR ACCESSING AND PROCESSING OF BIG DATA SETS IN EARTH SCIENCES A.A. Poyda 1, M.N. Zhizhin 1, D.P. Medvedev 2, D.Y.
Archive Engine for Large Data Sets Nikolay Malitsky EPICS Collaboration Meeting San Francisco, USA October 5, 2013.
A Metadata Based Approach For Supporting Subsetting Queries Over Parallel HDF5 Datasets Vignesh Santhanagopalan Graduate Student Department Of CSE.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Core (and other development efforts) L. Dalesio. EPICS April 25, 2013.
1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Physics Applications – Applying V4 The Control Group – presented by Bob Dalesio Taiwan EPICS Meeting, June 2011.
Thomas Jefferson National Accelerator Facility Page 1 Slow Controls Ken Livingston University of Glasgow.
BROOKHAVEN SCIENCE ASSOCIATES High level applications and EPICS control GUOBAO SHEN NSLS-II, Control Group May 4 th, 2009.
IRMIS Status EPICS 2009 Vancouver D. A. Dohan. Outline IRMIS hardware model cable/cable run channel list Equipment Inventory System RDB Domain separation.
1/15 G. Manduchi EPICS Collaboration Meeting, Aix-en-Provence, Spring 2010 INTEGRATION OF EPICS AND MDSplus G. Manduchi, A. Luchetta, C. Taliercio, R.
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
Towards Long-Term Archiving of NASA HDF-EOS and HDF Data Data Maps and the Use of Mark-Up Language Ruth Duerr, Mike Folk, Muqun Yang, Chris Lynnes, Peter.
Archive Service Nikolay Malitsky October 2, 2013.
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
Soil and Water Conservation Modeling: MODELING SUMMIT SUMMARY COMMENTS Dennis Ojima Natural Resource Ecology Laboratory COLORADO STATE UNIVERSITY 31 MARCH.
Streamflow - Programming Model for Data Streaming in Scientific Workflows Chathura Herath.
SAGA: Array Storage as a DB with Support for Structural Aggregations SSDBM 2014 June 30 th, Aalborg, Denmark 1 Yi Wang, Arnab Nandi, Gagan Agrawal The.
1 BROOKHAVEN SCIENCE ASSOCIATES Control System Overview Bob Dalesio, Control Group HLA Review for NSLS-II Project April
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
BROOKHAVEN SCIENCE ASSOCIATES Advanced Monitor/Subscription Mechanisms Ralph Lange EPICS Collaboration Meeting October 11, 2009.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 12, 2010.
High Speed Detectors at Diamond Nick Rees. A few words about HDF5 PSI and Dectris held a workshop in May 2012 which identified issues with HDF5: –HDF5.
Distributed Data Analysis & Dissemination System (D-DADS ) Special Interest Group on Data Integration June 2000.
Connecting LabVIEW to EPICS network
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
Add the name of your meeting/conference, the location and date Page 1 EPICS Collaboration Meeting Spring 2010 – Aix-en-Provence Highlights Franck Di Maio,
1 XLDB Jacek Becla SLAC Technology Officer for Scientific Databases XLDB Chairman LSST Database & Data Access Manager.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
RDB Issues at SLAC Archiver Store General EPICS Support.
Wir schaffen Wissen – heute für morgen Babak Kalantari, PSI MRF workshop, Prague, Eli Beamlines Paul Scherrer Institut Synchronous DAQ using.
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)
E. Matias Canadian Light Source CLS Beamline Controls.
ICS WP3 – Software Core Components Suzanne Gysin Work Package Lead November 25, 2014.
ORNL is managed by UT-Battelle for the US Department of Energy Status Report: Data Acquisition and Instrument Controls for the Spallation Neutron Source.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Normative V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
Introduction to Control System Studio (CSS) Kay Kasemir, Kunal Shroff EPICS Fall Collaboration Meeting, October 2011 PSI.
Control System Tools for Beam Commissioning Timo Korhonen Controls Division Chief Engineer April 8, 2014.
Version 4 Charter – Discussion Bob Dalesio Greg White.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
BaBar Transition: Computing/Monitoring
Status of I&C System Development for ITER Diagnostic Systems in Japan
Database management system Data analytics system:
Presented by Li Gang Accelerator Control Group
A remote EPICS monitoring tool
SCADA for Remote Industrial Plant
Grid Portal Services IeSE (the Integrated e-Science Environment)
Meng Lu and Edzer Pebesma
Datamining : Refers to extracting or mining knowledge from large amounts of data Applications : Market Analysis Fraud Detection Customer Retention Production.
Data Warehouse.
EPICS Version 4 Abstract:
Status of Fast Controller EPICS Supports for ITER Project
Proposed Changes of the DDS Dynamic Data interface based on the consideration of EPICS PVData and Google’s Protocol Buffers Nikolay Malitsky 1.
Design Principles of the CMS Level-1 Trigger Control and Hardware Monitoring System Ildefons Magrans de Abril Institute for High Energy Physics, Vienna.
Server-Side Plugins Andrew Johnson, Ralph Lange
European Spallation Source Archiving Service
Afonso Mukai Scientific Software Engineer
EPICS 7 Matej Sekoranyja, Marty Karimer, Michael Davidsaver, Ralph Lange, Andrew Johnson, Timo Korhonen, Heinz Junkes, Patrick Marschalik, Murali Shankar,
Presentation transcript:

Prototyping the Next EPICS Archiver Nikolay Malitsky EPICS Collaboration Meeting PSI, Switzerland October 5, 2011

Content Background SciDB in Three Slides Benchmark and Proposal of Channel Archiver Backend Benchmark and Proposal of Channel Archiver Engine Integrated Environment

Background Backends: original approach, RDBs New requirements: ARCHIVER Backends: original approach, RDBs New requirements: 1 M channels and 1 M samples/s (BNL, SLAC, Diamond, PSI, …) New data types (EPICS 4, DAQ, ITER, …) New solutions: Protocol Buffers (SLAC), MSDPlus (Consorzio RFX ), Hypertable (INFN), SciDB (BNL), …

SciDB: Open Source Data Management and Analytics System http://www.scidb.org Consistent array-oriented model and formalism : Generalization of the OLAP models Natural and fundamental data type of scientific software (e.g. MATLAB) Strong team of database experts lead by Mike Stonebraker Wide range of domains represented by Science Advisory Board Genomics Astronomy Environmental Observing Systems Earth Science Fusion Remote Sensing High Energy Physics Atmospheric Sciences Oceanography Control System 4

SciDB Array-Oriented Model CREATE ARRAY Example < a1:integer, a2:float>, a3:MyType> [Dim1=0:5, Dim2=0:4] AQL: Array Query Language, similar to SQL AFL: Array Functional Language, reminiscent of APL, etc. Including a collection of operators, like join, filter, slice, apply, and others Other approaches: Y. Zhao, et al., Array-Based Evaluation of Multi-Dimensional Queries in Object-Relational Database Systems, 1997 P. Baumann, et al., The Multidimensional Database System RasDaMan, 1998 Barrodale Company, DBXten DataBlade , 2010 (thanks to Lana Abadie for this reference)

SciDB Array-Oriented API Chunk-based partitioning Column-oriented partitioning

Benchmark of the SciDB 0.75 backend May 17, 2011 Benchmark of the SciDB 0.75 backend http://sourceforge.net/projects/epics-archbench/ struct Complex { double re; double im; }; Scenario: 1000 channels 100 chunks/channel 1000 samples/chunk 1 sample : status(int16), severity (int16) , time stamp (int64), and Complex Writing of 1000 channels: 127 s ( ~ 0.8 M samples/sec) REGISTER_TYPE(complex, 0); // 0 – for variable size data … Complex v; v.re = 1.0*ic; v. im = 1.0*(ie+1); value.setData(&v, 16); chunkIterator->writeItem(value); Reading of 4 channels : 0.12 s ( ~ 3 M samples/sec) Value& v = chunkIterator->getItem(); Complex* data = (Complex*) v.data(); Nice results, but the existing in-memory indexing approach does not scale for historical data

Benchmark of the SciDB and Channel Archiver backends CREATE ARRAY Ch001 < dbr: dbr_time_double> [ ts (epicsTimeStamp) = 0:*,1000, 0] struct dbr_time_double{ dbr_short_t status; /* status of value */ dbr_short_t severity; /* severity of alarm */ epicsTimeStamp stamp; /* time stamp */ dbr_long_t RISC_pad; /* RISC alignment */ dbr_double_t value; /* current value */ }; Scenario: 1000 channels 1000 - 100 chunks/channel 100 - 1000 samples/chunk 1 sample : dbr_time_double Chunk Size SciDB EPICS 100 1.6 M events /s 336 K events / s 1000 2.0 M events /s 454 K events /s Writing Chunk Size SciDB EPICS 100 6.7 M events /s 5 M events /s 1000 10 M events /s Reading

SciDB - EPICS Driver SciDB API SciDB-EPICS EPICS backend CHUNK SIZE SciDB API SciDB-EPICS EPICS backend Similar approach: Barrodale Company. Universal File Interface (again, thanks to Lana Abadie for this reference )

Benchmark of the Channel Archiver Engine 20-100 K dbr_time_double/s Engine 2-10 K monitors @ 10 Hz M. Kraimer, et al., EPICS Application Developer ‘s Guide, Ch 2.2 Example IOC Application, 2010 G.Manduchi, et al. New EPICS Channel Archiver based on MDSPlus Data System, Proc. IEEE RT, 2011

Chunk-based solution Buffer : 10s (Chunk size = 10 Hz * 10s = 100) Herb Sutter, Writing a Generalized Concurrent Queue, Dr. Dobb’s, 2008 CA Engine 10,000 channels PV CircularBuffer PV CircularBuffer 10,000 channels Queue Engine CA PV CircularBuffer 09/30/2011 14:43:33 Engine: writing done, channels: 10000, count: 1000000, time: 3.419260e+00 s 09/30/2011 14:43:42 Engine: writing done, channels: 10000, count: 1000000, time: 2.950856e+00 s 09/30/2011 14:43:52 Engine: writing done, channels: 10000, count: 1000000, time: 2.758174e+00 s 09/30/2011 14:44:03 Engine: writing done, channels: 10000, count: 1000000, time: 3.164271e+00 s 09/30/2011 14:44:12 Engine: writing done, channels: 10000, count: 1000000, time: 2.884632e+00 s 09/30/2011 14:44:22 Engine: writing done, channels: 10000, count: 1000000, time: 2.759355e+00 s 09/30/2011 14:44:32 Engine: writing done, channels: 10000, count: 1000000, time: 2.911632e+00 s 09/30/2011 14:44:42 Engine: writing done, channels: 10000, count: 1000000, time: 2.809776e+00 s Buffer : 10s (Chunk size = 10 Hz * 10s = 100) Writing rate: 1 M / 3 s = 300 K samples/ s

A Bigger Picture Beamline Experiments EPICS 3 Control System EPICS 4 SciDB Node Archiver SciDB Node SciDB Node SciDB Node SciDB Node EPICS 3 Driver EPICS 3 Driver HDF5 Driver V 3 HDF5 Driver HDF5 Driver EPICS3 HDF5 HDF5 HDF5 Detectors Magnets, BPMs, etc Beamline Experiments EPICS 3 Control System Archiver SciDB Node SciDB Node DAQ EPICS 4 Infrastructure Model Service Another Service V 4 EPICS 4 Driver EPICS 4 Driver HDF5 Driver HDF5 Driver V 4 EPICS4 HDF5 SciDB API Magnets, BPMs, etc Detectors

Thank You BNL : B. Dalesio, D. Dohan, Diamond Light Source : J. Rowland INFN : M. Giacchini SciDB: J. Becla, P. Brown SLAC: M. Shankar Stony Brook University: Y. Kulinich