IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 508


Ignore:
Timestamp:
Apr 22, 2004, 4:44:14 PM (22 years ago)
Author:
Paul Price
Message:

Standardised nomenclature: OTA vs Chip. "Chip" is the standard term,
since we desire that it be applicable to other systems, e.g. Megacam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/design/design.tex

    r507 r508  
    1 %%% $Id: design.tex,v 1.6 2004-04-23 01:15:45 price Exp $
     1%%% $Id: design.tex,v 1.7 2004-04-23 02:44:14 price Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    4949\subsection{System Overview}
    5050
    51 \tbd{description of the Pan-STARRS System and PS-1.}
     51\PS{} is a survey telescope system being developed by the University
     52of Hawaii Institute for Astronomy (IfA), the Maui High Performance
     53Computing Center (MHPCC), Science Applications International
     54Corporation (SAIC), and Massachusetts Institute of Technology (MIT)
     55Lincoln Laboratory.  The baseline system will consist of four 1.8m
     56telescopes, each with a 1 gigapixel camera capable of sustained image
     57rates of 2 per minute.  A single initial test telescope (PS-1) will
     58be constructed on Haleakala and will see first light at the beginning
     59of 2006.  The full four-telescope system (PS-4) will follow PS-1 by
     60roughly 2 years.
    5261
    5362\subsection{Document Overview}
     
    5968
    6069Open Issues and TBDs in this document are marked \tbd{in bold, red
    61 with surrounding square brackets}.
     70type with surrounding square brackets}.
    6271
    6372\section{Referenced Documents}
     
    6877
    6978\DocumentsInternalSection
    70 PSDC-430-xxx  &   PS-1 Design Reference Mission \\ \hline
     79PSDC-130-001  &   PS-1 Design Reference Mission \\ \hline
    7180PSDC-430-004  &   Pan-STARRS IPP C Code Conventions \\ \hline
    7281PSDC-430-006  &   Pan-STARRS IPP ADD \\ \hline
     
    7988
    8089\section{System Design Decisions}
    81 
    82 \PS{} is a survey telescope system being developed by the
    83 University of Hawaii Institute for Astronomy (IfA), the Maui High
    84 Performance Computing Center (MHPCC), Science Applications
    85 International Corporation (SAIC), and Massachusetts Institute of
    86 Technology (MIT) Lincoln Laboratory.  The baseline system will consist
    87 of four 1.8m telescopes, each with a 1 gigapixel camera capable of
    88 sustained image rates of 2 per minute.  An single initial test
    89 telescope (PS-1) will be constructed on Haleakala and will see first
    90 light at the beginning of 2006.  The full four-telescope system (PS-4)
    91 will follow PS-1 by roughly 2 years.
    9290
    9391Since \PS{} is a survey project, all data from the telescopes
     
    112110Processing System (MOPS), and potentially other client science
    113111pipelines.
     112
     113\subsection{System Overview}
    114114
    115115The \PS{} Image Processing Pipeline (IPP) consists of a
     
    152152requirements.
    153153
    154 \subsection{System Overview}
    155154\subsection{System Architecture}
    156155\subsubsection{Architectural Components}
     
    191190\begin{center}
    192191\resizebox{8cm}{!}{\includegraphics{pics/overview}}
    193 \caption{ \label{overview} IPP System Overview}
     192\caption{ \label{overview} IPP System Overview. \tbd{``Processing
     193Jobs'' should be renamed ``Analysis Pipelines''.} }
    194194\end{center}
    195195\end{figure}
    196196
    197 \subsubsection{Analysis Stages}
    198 
    199 We now consider the collection of analysis tasks which are performed
    200 by the IPP.  Depending on the task, they may be performed on
    201 individual images, collections of images, or on derived data products.
    202 Because of the nature of the image data, many of the analysis tasks
    203 can be performed in parallel because, for example, the analysis of an
    204 OTA in one image does not depend on the results from another OTA.  We
    205 define the analysis pipelines to be the largest complete analysis task
    206 which may be performed on a single data item.  The data analysis
    207 pipelines are divided into three categories, and further subdivided as
    208 follows:
    209 
    210 \begin{enumerate}
    211  \item Science Image Pipelines
    212  \begin{enumerate}
    213   \item Phase 1 : image processing preparation
    214   \item Phase 2 : image reduction
    215   \item Phase 3 : exposure analysis
    216   \item Phase 4 : image combination
    217  \end{enumerate}
    218  \item Calibration Image Pipelines
    219  \begin{enumerate}
    220   \item Calibration 1 : basic master-detrend creation
    221   \item Calibration 2 : Sky-model/fringe-mode generation
    222   \item Calibration 3 : Flat-field correction image Creation
    223  \end{enumerate}
    224  \item Reference Catalog Pipelines
    225  \begin{enumerate}
     197\subsubsection{Analysis Pipelines}
     198
     199We now consider the collection of IPP analysis pipelines.  Depending
     200on the particular pipeline, they may be run on individual images,
     201collections of images, or on derived data products.  Because of the
     202nature of the image data, many of the analysis pipelines can be run in
     203parallel because, for example, the analysis of a chip in one image
     204does not depend on the results from another chip.  We define the
     205analysis pipelines to be the largest complete analysis task which may
     206be performed on a single data item.  The data analysis tasks are
     207divided into three categories, and further subdivided as follows:
     208
     209\begin{enumerate}
     210\item Science Image Pipelines
     211  \begin{enumerate}
     212  \item Phase 1: image processing preparation
     213  \item Phase 2: image reduction
     214  \item Phase 3: exposure analysis
     215  \item Phase 4: image combination
     216  \end{enumerate}
     217\item Calibration Image Pipelines
     218  \begin{enumerate}
     219  \item Calibration 1: basic master-detrend creation
     220  \item Calibration 2: Sky-model/fringe-mode generation
     221  \item Calibration 3: Flat-field correction image Creation
     222  \end{enumerate}
     223\item Reference Catalog Pipelines
     224  \begin{enumerate}
    226225  \item Astrometry reference catalog generation
    227226  \item Photometry reference catalog generation
    228  \end{enumerate}
     227  \end{enumerate}
    229228\end{enumerate}
    230229
     
    241240\begin{center}
    242241\resizebox{8cm}{!}{\includegraphics{pics/pipelines}}
    243 \caption{ \label{pipelines} IPP System Overview}
     242\caption{ \label{pipelines} IPP System Overview. \tbd{Small part at
     243top is missing.} }
    244244\end{center}
    245245\end{figure}
     
    248248
    249249The basic IPP hardware organization is shown in Figure~\ref{hardware}.
    250 The overall hardware organization, with an OTA subcluster and a
    251 Static-Sky subcluster, is largely chosen to reduce the I/O load during
     250The overall hardware organization, with a Detector subcluster and a
     251Static Sky subcluster, is largely chosen to reduce the I/O load during
    252252the pre-reduction analysis of the raw science images.  In addition, we
    253253have specified distinct machines to maintain the object and metadata
     
    255255defined the details of these databases; it may be more appropriate
    256256depending on the eventual solutions to distribute these database
    257 elements across the OTA and Static Sky subclusters.
     257elements across the Detector and Static Sky subclusters.
    258258
    259259\begin{figure}
     
    358358requirements, the IPS may maintain the pixel data distributed across
    359359the processor nodes in an organized fashion, i.e.\ associating
    360 specific machines with specific OTAs.  The IPS interacts with the IPP
    361 Metadata Database to allow other systems or subsystems to identify the
    362 available images meeting specified criteria.  IPS specifications are
    363 described in the IPS subsystem specification.
     360specific machines with specific detectors.  The IPS interacts with the
     361IPP Metadata Database to allow other systems or subsystems to identify
     362the available images meeting specified criteria.  IPS specifications
     363are described in the IPS subsystem specification.
    364364
    365365In addition to storing the pixel data, the IPS is responsible for
     
    572572\begin{tabular}{l}
    573573\hline
    574 \multicolumn{1}{l}{\bf Metadata Tables} \\
    575 Weather \\
    576 SkyProbe \\
    577 LRProbe \\
    578 DIMM \\
    579 NIR \\
    580 Dome Status \\
    581 Telescope Status \\
    582 Raw FPAs \\
    583 Raw OTAs \\
    584 Raw Cells \\
    585 Observation Group \\
    586 OTA Guide Stars \\
    587 Science OTA stats \\
    588 Science Cell stats \\
    589 Science FPA stats
    590 Sky-OTA overlaps \\
    591 Processed Sky-Cell stats \\
    592 Calibration 1 input OTA stats \\
    593 Calibration 1 output OTA stats \\
    594 Calibration 2 input OTA stats \\
    595 Calibration 2 output OTA stats \\
    596 Calibration 3 input stats \\
    597 Calibration 3 output stats \\
     574\multicolumn{2}{l}{\bf Metadata Tables} \\
     575Weather & Details on the weather, including internal temperatures. \\
     576SkyProbe & Analysis of SkyProbe data. \\
     577LRProbe & Analysis of LRProbe data. \\
     578DIMM & Analysis of DIMM data. \\
     579NIR & Analysis of NIR data. \\
     580Dome Status & The status of the dome. \\
     581Telescope Status & The status of the telescope. \\
     582Raw FPAs & Details on raw FPA exposures. \\
     583Raw Chips & Details on raw chips. \\
     584Raw Cells & Details on raw cells. \\
     585Observation Group & Details on a group of observations to be processed. \\
     586Chip Guide Stars & Details on guide stars \\
     587Science Chip stats & Details on processed chips. \\
     588Science Cell stats & Details on processed cells. \\
     589Science FPA stats & Details on processed FPAs.
     590Sky-Detector overlaps & List of overlaps between sky cells and detectors. \\
     591Processed Sky-Cell stats & Details on sky cells. \\
     592Calibration 1 input stats & Details on input images for Cal 1. \\
     593Calibration 1 output stats & Details on output detrend images from Cal 1. \\
     594Calibration 2 input stats & Details on input images for Cal 2. \\
     595Calibration 2 output stats & Details on output detrend images from Cal 2. \\
     596Calibration 3 input stats & Details on input images for Cal 3. \\
     597Calibration 3 output stats & Details on output detrend images from Cal 3. \\
    598598\hline
    599599\end{tabular}
     
    781781Reference catalog & The reference catalog that was used for the photometry. \\
    782782PSF stats & Summary statistics of the PSF. \\
    783 OTA state & \tbd{The state of the OTA?} \\
     783Chip state & \tbd{The state of the chip?} \\
    784784Software versions & Versions of each of the modules used in the processing. \\
    785785\hline
     
    822822\begin{tabular}{ll}
    823823\hline
    824 \multicolumn{2}{l}{\bf Sky-Chip overlaps} \\
     824\multicolumn{2}{l}{\bf Sky-Detector overlaps} \\
    825825Chip ID & The identification number of the chip. \\
    826826Sky Cell ID & The identification number of the sky cell. \\
     
    849849\begin{tabular}{ll}
    850850\hline
    851 \multicolumn{2}{l}{\bf Calibration 1 input Chip stats} \\
     851\multicolumn{2}{l}{\bf Calibration 1 input stats} \\
    852852Input ID & The input chip identification number. \\
    853853Output ID & The identification number of the output detrend image. \\
     
    861861\begin{tabular}{ll}
    862862\hline
    863 \multicolumn{2}{l}{\bf Calibration 1 output Chip stats} \\
     863\multicolumn{2}{l}{\bf Calibration 1 output stats} \\
    864864Output ID & The identification number of the output detrend image. \\
    865865Data type & The type of the detrend image (bias | dark | flat) \\
     
    875875\begin{tabular}{ll}
    876876\hline
    877 \multicolumn{2}{l}{\bf Calibration 2 input Chip stats} \\
     877\multicolumn{2}{l}{\bf Calibration 2 input stats} \\
    878878Input ID & The input chip identification number. \\
    879879Output ID & The identification number of the output detrend image. \\
     
    889889\begin{tabular}{ll}
    890890\hline
    891 \multicolumn{2}{l}{\bf Calibration 2 output OTA stats } \\
     891\multicolumn{2}{l}{\bf Calibration 2 output stats } \\
    892892Output ID & The identification number of the output detrend image. \\
    893893Data type & The type of the detrend image (bias | dark | flat) \\
     
    903903\begin{tabular}{ll}
    904904\hline
     905\multicolumn{2}{l}{\bf Calibration 3 input stats} \\
     906Input ID & The input chip identification number. \\
     907Output ID & The identification number of the output detrend image. \\
     908State & \tbd{State of the processing?} \\
     909Accepted? & Is the detrend image of acceptable quality? \\
     910Image stats & Assorted image statistics (mean flux, exposure time, airmass). \\
     911Residual stats & Statistics of the residual image (mean, sigma, clipped sigma) \\
     912Applied reduction & \tbd{Reduction method used?} \\
     913Applied params & Parameters of reduction. \\
     914\hline
     915\end{tabular}
     916
     917\begin{tabular}{ll}
     918\hline
    905919\multicolumn{1}{l}{\bf Calibration 3 output metadata } \\
    906920Input images & Identification numbers of the input chips. \\
     
    946960access to objects on the sky, including the access to the photometry
    947961associated with specific input images, moving objects associated with
    948 specific OTA images.  Detailed requirements for the IOD are described
    949 in the IOD subsystem specification document xxx-xxx-xxxx.
     962specific chips.  Detailed requirements for the IOD are described in
     963the IOD subsystem specification document xxx-xxx-xxxx.
    950964
    951965Reference Astrometry Catalogs:
     
    960974\begin{tabular}{l}
    961975\hline
    962 \multicolumn{1}{l}{\bf Object DB Tables} \\
    963 Images \\
    964 Objects \\
    965 Detections \\
    966 NonDetections \\
    967 Filters \\
    968 Photcodes \\
    969 Bright Objects \\
    970 Region Tables \\
    971 Average Magnitudes \\
    972 USNO Objects \\
    973 Reference Objects \\
     976\multicolumn{2}{l}{\bf Object DB Tables} \\
     977Images & The images that have objects in the DB. \\
     978Objects & The objects --- average properties of multiple detections of the same object. \\
     979Detections & Detections of sources in an image. \\
     980Non-Detections & Non-detections of objects in an image. \\
     981Filters & Filters understood by the system. \\
     982Photcodes & \tbd{Transformations between different photometric systems?} \\
     983Bright Objects & \tbd{Links to postage stamp images of bright objects.} \\
     984Region Tables & \tbd{???} \\
     985Average Magnitudes & \tbd{How is this different from an `object'?} \\
     986USNO Objects & Objects from the USNO database. \\
     987Reference Objects & The reference catalogs for astrometry and photometry. \\
    974988\hline
    975989\end{tabular}
     
    9871001IMD.  The Controller must be able to manage more than a single
    9881002processing thread to make maximum use of available processor
    989 resources.  Some analysis jobs, such as operations on the OTAs, must
     1003resources.  Some analysis jobs, such as operations on the chips, must
    9901004be allocated preferentially to specified processors, while others must
    9911005be distributed to the available machines in the cluster.
     
    11501164The input to this analysis is the list of guide-star pixel centroids
    11511165and their celestial coordinates as saved in the metadata database, as
    1152 well as the FPA and OTA organization and geometry, and the basic
     1166well as the FPA and chip organization and geometry, and the basic
    11531167optical distortion for the camera.  For the sky-cell / detector-cell
    11541168overlaps, the sky tiling scheme is required.
    11551169
    11561170The output consists of calculated astrometric parameters (linear
    1157 transformation + static distortion) for each of the FPA OTAs.  On the
    1158 basis of this astrometry, the overlap between the OTAs and the
     1171transformation + static distortion) for each of the FPA chips.  On the
     1172basis of this astrometry, the overlap between the detectors and the
    11591173sky-cells is calculated.  The output of this calculation is a list of
    1160 sky-cell / OTA links in a database table.  This list of links can be
    1161 used by the later stages to initiate the analyses. 
     1174sky-cell / chip links in a database table.  This list of links can be
     1175used by the later stages to initiate the analyses.
    11621176
    11631177The phase 1 analysis is performed on an FPA basis to ensure that
     
    14891503
    14901504In the Phase 2 analysis, the astrometric solutions were determined
    1491 independently for each OTA.  These solutions are limited by the
     1505independently for each chip.  These solutions are limited by the
    14921506assumption of a static distortion and \tbd{by the accuracy of the
    14931507astrometric reference}.  In the phase 3 analysis, the astrometric
    1494 solutions of the N FPA images are improved by \tbd{???}.
     1508solutions of the $N$ FPA images are improved by \tbd{???}.
    14951509
    14961510\tbd{what is the expected accuracy of the relative astrometric
     
    15021516
    15031517In the Phase 2 analysis, the background is determined based only on
    1504 the available sky in a single OTA image.  However, the background
     1518the available sky in a single chip.  However, the background
    15051519structures are normally correlated on the scale of the FPA, so an
    15061520improved background solution can be determined by combining the
    1507 information from many OTA images.  \tbd{is the background correlated
     1521information from many chips.  \tbd{is the background correlated
    15081522between FPAs?}
    15091523
     
    15171531rejection.  This combination requires the calculation of a set of PSF
    15181532kernels to convert each of the input images to a single, common PSF.
    1519 These PSF kernels are determined from the per-OTA PSFs measured in
     1533These PSF kernels are determined from the per-chip PSFs measured in
    15201534Phase 2.
    15211535
     
    18531867demands in terms of data I/O throughput on the network.  Phase 2 and
    18541868Phase 4 also present the most significant CPU demands.  In this
    1855 discusion, Phase 2 refers to the per-OTA image pre-processing in which
    1856 the instrumental signature is removed and a first pass object
    1857 detection is performed.  Phase 4 refers to the multiple OTA
    1858 combination in which the pre-processed images are merged and combined,
    1859 in both addition and subtraction, with the static sky image, and up to
    1860 three object detection passes are performed.
     1869discusion, Phase 2 refers to the per-chip pre-processing in which the
     1870instrumental signature is removed and a first pass object detection is
     1871performed.  Phase 4 refers to the multiple chip combination in which
     1872the pre-processed images are merged and combined, in both addition and
     1873subtraction, with the static sky image, and up to three object
     1874detection passes are performed.
    18611875
    18621876This document does not address the hardware requirements implied by
     
    18921906computational resources.  The IPP requires relativley large amounts of
    18931907data storage space, primarily for the image data.  Image data is
    1894 organized in two categories.  First, there is the per-OTA data -- data
    1895 associated with specific OTAs, including the raw images, the
     1908organized in two categories.  First, there is the per-chip data --
     1909data associated with specific chips, including the raw images, the
    18961910calibration images, and temporary processed images at various stages.
    18971911Second, there is the data associated with the static sky imagery,
     
    19001914provide both data storage and computational resources.  The second
    19011915assumption we make is that the data storage nodes are divided into two
    1902 classes: those which deal with the per-OTA data and those that provide
    1903 the static sky storage.  In addition, we assume that the computational
    1904 tasks related to Phase 2 take place on the per-OTA storage nodes and
    1905 the Phase 4 computation takes place on the static sky storage nodes.
     1916classes: those which deal with the per-chip data and those that
     1917provide the static sky storage.  In addition, we assume that the
     1918computational tasks related to Phase 2 take place on the per-chip
     1919storage nodes and the Phase 4 computation takes place on the static
     1920sky storage nodes.
    19061921
    19071922Figure~\ref{hardware} shows our basic concept for the hardware
    19081923organization for the IPP.  This diagram shows the two types of compute
    1909 nodes: OTA-level processing and storage nodes (dominated by Phase 2)
     1924nodes: chip-level processing and storage nodes (dominated by Phase 2)
    19101925and static sky processing and storage nodes (mostly Phase 4).  Also
    19111926shown are two switches used in this configuration; although it is
     
    19231938this document, we explore two extreme-case options:
    19241939\begin{itemize}
    1925 \item Random Data Distribution - OTA \& Sky data is randomly
    1926   distributed within the compute node of a given type (ie, OTA data is
    1927   randomly distributed among the OTA compute nodes).
    1928 \item Optimal Data Distribution - OTA \& Sky data is optimally
    1929   distributed to compute OTA/Sky nodes (OTA processing is always on a
    1930   machine with local OTA data).
     1940\item Random Data Distribution --- Detector \& Sky data is randomly
     1941  distributed within the compute node of a given type (ie, chip data
     1942  is randomly distributed among the detector compute nodes).
     1943\item Optimal Data Distribution --- Detector \& Sky data is optimally
     1944  distributed to compute Detector/Sky nodes (chip processing is always
     1945  on a machine with local chip data).
    19311946\end{itemize}
    19321947A second factor which will have a significant impact on the I/O
     
    20962111
    20972112The image metadata consists of values associated with the FPA (4), the
    2098 OTAs (240), and the Cells (15360).  Aside from the guide star history,
    2099 the total data requirements for each of these entries will be scaled
    2100 by the number of bytes required for the metadata from each data level.
    2101 Clearly, if the Cell entry is allowed to be large, it will dominate
    2102 the total Metadata data volume.  If we suggest an expected number of
    2103 64 bytes per Cell, 256 B per OTA, and 1k per FPA, we find a total
    2104 metadata volume per exposure of roughly 1 MB, completely dominated by
    2105 the Cell metadata.  With the exposure rates above, we find a total of
    2106 metadata volume of 1.8 TB over the lifetime of the project.  For PS-1,
    2107 the total volume is reduced by a factor of 2.5 (for the shorter
    2108 lifetime) and another factor of 4 (for the lone telescope).  Neither
    2109 data quantity is affected by the minimal vs standard data volume
    2110 choice.
     2113chips (240), and the Cells (15360).  Aside from the guide star
     2114history, the total data requirements for each of these entries will be
     2115scaled by the number of bytes required for the metadata from each data
     2116level.  Clearly, if the Cell entry is allowed to be large, it will
     2117dominate the total Metadata data volume.  If we suggest an expected
     2118number of 64~bytes per Cell, 256~B per chips, and 1~kB per FPA, we find a
     2119total metadata volume per exposure of roughly 1~MB, completely
     2120dominated by the Cell metadata.  With the exposure rates above, we
     2121find a total of metadata volume of 1.8~TB over the lifetime of the
     2122project.  For PS-1, the total volume is reduced by a factor of 2.5
     2123(for the shorter lifetime) and another factor of 4 (for the lone
     2124telescope).  Neither data quantity is affected by the minimal vs
     2125standard data volume choice.
    21112126
    21122127\paragraph{Object Database Storage}
     
    21422157needed by the object detection, deblending, and analysis.  Experiments
    21432158with the FFTW package show that FFTs may be performed on Intel
    2144 processors at rates of approximately 0.25 GHz-sec / Mpix for data sets
     2159processors at rates of approximately 0.25~GHz-sec / Mpix for data sets
    21452160of order 1 Megapixel.  The FFTs required for the Phase 2 analysis are
    21462161performed on the 512$^2$ pixel cells, so these numbers may roughly be
    2147 scaled linearly to determine the total time required for OTA
    2148 processing.  A single FFT on a full OTA, with 64 Cells, therefore
    2149 requires roughly 4 GHz-sec.  For the full Phase 2 analysis, there are
     2162scaled linearly to determine the total time required for chip
     2163processing.  A single FFT on a full chip, with 64 cells, therefore
     2164requires roughly 4~GHz-sec.  For the full Phase 2 analysis, there are
    21502165roughly 4 single direction FFTs required excluding those associated
    21512166with object detection; thus the total processing time for these FFTs
    2152 is approximately 16 GHz-sec.  The addtional analysis steps, excluding
     2167is approximately 16~GHz-sec.  The addtional analysis steps, excluding
    21532168object detection and characterization, account for a small fraction of
    21542169this compute time, which we estimate at 10\%.  The object detection
     
    21562171performed, and the number of measurements made per object.  Typical
    21572172analysis performed by the Sextractor routine, which performs a
    2158 substantial number of per-object analyses, requires 27 GHz-sec for a
    2159 full OTA, including the FFTs used for smoothing.  We can therefore
    2160 assume a total of 50 GHz-sec per OTA for the Phase 2 processing.  This
    2161 converts to a total of 12000 GHz-sec for a complete major frame.
     2173substantial number of per-object analyses, requires 27~GHz-sec for a
     2174full chip, including the FFTs used for smoothing.  We can therefore
     2175assume a total of 50~GHz-sec per chip for the Phase 2 processing.
     2176This converts to a total of 12,000~GHz-sec for a complete major frame.
    21622177
    21632178For Phase 4, the main computational tasks are combining the multiple
    21642179images, with cosmic-ray rejection, and performing the object detection
    21652180tasks.  Nick Kaiser has done tests of the Phase 4 image combine and
    2166 rejection stages, and finds a total processing time of roughly 96
    2167 GHz-sec for a full stack of 4 OTA images.  If we add in an additional
    2168 34 GHz-sec for detailed object detection and image differencing, we
    2169 find a conservative estimage of 130 GHz-sec for a 4-image OTA stack,
    2170 equivalent to 7800 GHz-sec for a major frame.
     2181rejection stages, and finds a total processing time of roughly
     218296~GHz-sec for a full stack of 4 chips.  If we add in an additional
     218334~GHz-sec for detailed object detection and image differencing, we
     2184find a conservative estimage of 130~GHz-sec for a 4-image chip stack,
     2185equivalent to 7800~GHz-sec for a major frame.
    21712186
    21722187For PS-1, the data processing will clearly require a smaller amount of
     
    21812196\begin{table}
    21822197\begin{center}
    2183 \caption{Data Scenarios (MB per OTA or Sky-cell) \label{scenarios}}
     2198\caption{Data Scenarios (MB per Chip or Sky-cell) \label{scenarios}}
    21842199\begin{tabular}{lrrrr}
    21852200\hline
     
    22442259
    22452260In the Random Data Distribution scenario, there is a single CPU
    2246 allocated to each OTA in the OTA farm and a single CPU for each Sky
    2247 cell process.  The OTA data are stored across random machines in the
    2248 OTA farm, with the result that every Phase 2 processing requires
    2249 network access to the data.  For each science OTA image which is
    2250 observed, each OTA node will read from the network a total of 560 MB
     2261allocated to each chip in the detector farm and a single CPU for each Sky
     2262cell process.  The chip data are stored across random machines in the
     2263detector farm, with the result that every Phase 2 processing requires
     2264network access to the data.  For each science chip which is
     2265observed, each detector node will read from the network a total of 560 MB
    22512266(the 2 raw images for data storage and the 7 calibration frames, along
    22522267with one mask and one raw input image) and write a total of 200 MB
     
    22592274\paragraph{Random / Minimal Data Scenario}
    22602275
    2261 In the Random-Minimal, there is a single CPU allocated to each OTA in
    2262 the OTA farm and a single CPU for each Sky cell process, and the OTA
    2263 data are stored across random machines in the OTA farm.  However, the
    2264 calibration and the processed science images are stored at 2 bytes per
    2265 pixel, the mask is set at 4 bits per pixel, and only 4 calibration
    2266 images are assumed.  For each science OTA image which is observed,
    2267 each OTA node will read from the network a total of 232 MB (the 2 raw
    2268 images for data storage and the 4 calibration frames, along with one
    2269 mask and one raw input image) and write a total of 100 MB (one
    2270 processed image and the mask along with the 1.5 processed images for
    2271 the Phase 4 analysis). Given the assumption of 50 MB/s from the
     2276In the Random-Minimal, there is a single CPU allocated to each chip in
     2277the detector farm and a single CPU for each Sky cell process, and the
     2278chip data are stored across random machines in the detector farm.
     2279However, the calibration and the processed science images are stored
     2280at 2 bytes per pixel, the mask is set at 4 bits per pixel, and only 4
     2281calibration images are assumed.  For each science chip which is
     2282observed, each detector node will read from the network a total of 232 MB
     2283(the 2 raw images for data storage and the 4 calibration frames, along
     2284with one mask and one raw input image) and write a total of 100 MB
     2285(one processed image and the mask along with the 1.5 processed images
     2286for the Phase 4 analysis). Given the assumption of 50 MB/s from the
    22722287network adapter, the total data volume implies an I/O period of 6.6
    22732288seconds.  Again, note that the disk I/O is parallel with the network
     
    22772292
    22782293In the Optimal Data Distribution scenario, there is a single CPU
    2279 allocated to each OTA in the OTA farm and a single CPU for each Sky
    2280 cell process.  In addition, all data for the specified OTA are stored
    2281 on local disks attached to the same computer as the CPU, with the
    2282 result that all Phase 2 I/O is made to a local disk.  For each science
    2283 OTA image which is observed, each OTA node will read from the network
    2284 a total of 2 raw images (one for the original image, one for the
    2285 backup copy) and write an average of roughly 1.5 processed images and
    2286 masks to the Phase 4 machines for a total of 184 MB of network I/O.
    2287 During the processing stage, the OTA node will read from disk a total
    2288 of 496 MB (7 calibration frames at 64 MB each, one 16 MB mask, and one
    2289 raw science image at 32 MB) and write a total of 80 MB (one processed
    2290 image at 64 MB and one mask at 8 MB).  Given the assumptions for the
    2291 network and disk bandwidths (50 MB/s and 100 MB/s respectively), the
    2292 data volumes imply a total I/O period of 9.5 seconds.  In this
    2293 instance, the network I/O is presumed to be sequential with the disk
    2294 I/O.
     2294allocated to each chip in the detector farm and a single CPU for each
     2295Sky cell process.  In addition, all data for the specified chip are
     2296stored on local disks attached to the same computer as the CPU, with
     2297the result that all Phase 2 I/O is made to a local disk.  For each
     2298science chip which is observed, each detector node will read from the
     2299network a total of 2 raw images (one for the original image, one for
     2300the backup copy) and write an average of roughly 1.5 processed images
     2301and masks to the Phase 4 machines for a total of 184 MB of network
     2302I/O.  During the processing stage, the detector node will read from
     2303disk a total of 496 MB (7 calibration frames at 64 MB each, one 16 MB
     2304mask, and one raw science image at 32 MB) and write a total of 80 MB
     2305(one processed image at 64 MB and one mask at 8 MB).  Given the
     2306assumptions for the network and disk bandwidths (50 MB/s and 100 MB/s
     2307respectively), the data volumes imply a total I/O period of 9.5
     2308seconds.  In this instance, the network I/O is presumed to be
     2309sequential with the disk I/O.
    22952310
    22962311\paragraph{Optimal / Minimal Data Scenario}
     
    23052320\paragraph{Phase 4 Node I/O Requirements / Standard Data Volume}
    23062321
    2307 Although it is easy to arrange the OTA data in such a way that the
    2308 majority of I/O is performed locally, it is not as easy to arrange
     2322Although it is easy to arrange the detector data in such a way that
     2323the majority of I/O is performed locally, it is not as easy to arrange
    23092324this for the Static Sky data used by the Phase 4 analysis.  We
    23102325therefore make the assumption that the Phase 4 analysis will require
    2311 all input OTA data to be loaded across the network, as well as all
    2312 Static Sky data.  This is somewhat of an overestimate as some of the
    2313 Static Sky data will be processed by machines with the data stored
     2326all input detector data to be loaded across the network, as well as
     2327all Static Sky data.  This is somewhat of an overestimate as some of
     2328the Static Sky data will be processed by machines with the data stored
    23142329locally, and clever Static-Sky data organization schemes can enhance
    2315 this chance. 
     2330this chance.
    23162331
    23172332In the Phase 4 analysis, the images from the 4 separate telescopes are
    23182333combined into a single image, confronted with the appropriate segment
    23192334of the static sky, with output difference image and updated static sky
    2320 image.  If we restrict input access to the individual OTA cells, the
     2335image.  If we restrict input access to the individual chip cells, the
    23212336maximum read overhead is 50\% (need to read a 10x10 set of cells for
    23222337an 8x8 input image).  If the processing is performed on Static Sky
    2323 segments equivalent in size to the OTAs, the input data is 608 MB (384
     2338segments equivalent in size to the chips, the input data is 608 MB (384
    23242339MB of processed science image, 96 MB of mask images, 64 MB of static
    23252340sky image and 64 MB of static sky weight map) while the output data is
     
    23762391\paragraph{Random / Standard Data Scenario}
    23772392
    2378 In the Random Data Distribution scenario, each OTA node needs to read
    2379 a total of 560 MB from the network and write a total of 200 MB every
    2380 30 seconds.  With 240 OTA nodes, this corresponds to a total bandwidth
    2381 of 6080 MB/sec, or 49 Gb/sec.  Note that this includes the bandwidth
    2382 needed to copy data from the summit and make two copies on the OTA
    2383 machines, as well as the bandwidth to send the processed image
    2384 portions to the Phase 4 machines.  The Phase 4 processing adds an
    2385 additional 320 MB of network I/O per Sky-Cell group, and there are
     2393In the Random Data Distribution scenario, each detector node needs to
     2394read a total of 560 MB from the network and write a total of 200 MB
     2395every 30 seconds.  With 240 detector nodes, this corresponds to a
     2396total bandwidth of 6080 MB/sec, or 49 Gb/sec.  Note that this includes
     2397the bandwidth needed to copy data from the summit and make two copies
     2398on the detector machines, as well as the bandwidth to send the processed
     2399image portions to the Phase 4 machines.  The Phase 4 processing adds
     2400an additional 320 MB of network I/O per Sky-Cell group, and there are
    23862401roughly 60-70 Sky-cells per exposure set.  Thus the Phase 4 processing
    23872402adds an additional 750 MB/sec network bandwidth.  In the architecture
    2388 defined in Figure \tbd{NN}, the Sky nodes and the OTA nodes are each
     2403defined in Figure \tbd{NN}, the Sky nodes and the detector nodes are each
    23892404attached to separate switches.  An additional bandwidth requirement is
    23902405derived by the need to exchange data between these switches in for
     
    24122427
    24132428In the Optimal Data Distribution, the Phase 2 network bandwidth is
    2414 reduced significantly to 184 MB per OTA node, for a total of
     2429reduced significantly to 184 MB per detector node, for a total of
    241524301.5GB/sec, while the Phase 4 network bandwidth remains unchanged at
    24162431750 MB/sec.  The inter-switch communication also remains the same at
     
    24202435
    24212436In the Optimal / Minimal Scenario, the total Phase 2 network bandwidth
    2422 drops to 124 MB per OTA node, for a total of 1.0GB/sec, while the
     2437drops to 124 MB per detector node, for a total of 1.0GB/sec, while the
    24232438Phase 4 network bandwidth is 552 MB/sec.  The inter-switch
    24242439communication remains the same as the Random/Minimal Scenario at 560
     
    24802495bandwidths.  The important conclusion in this analysis is the implied
    24812496number of GHz per processor, given the assumptions laid out.
    2482 Phase 2 is specified to have 240 OTA nodes, while Phase 4 is specified
     2497Phase 2 is specified to have 240 detector nodes, while Phase 4 is specified
    24832498to have roughly 60 static sky nodes.  The range of Phase 2 CPU
    24842499requirements implies that each CPU needs to have speeds in the range
     
    25132528\section{Notes}
    25142529
    2515 \subsection{Cell vs OTA vs Mosaic vs Major Frame}
    2516 
    2517 There are several levels of input data pixel groups: Cell, OTA,
    2518 Mosaic, and Major Frame.  It is necessary to make the association
    2519 between the data of one level and that of the next in a way that is
    2520 reliable and robust to missing elements.  If a specific cell is
    2521 missing from an OTA, that information is known by the controller an
    2522 needs to be represented in the metadata.  Similarly if an OTA is
    2523 missing from a mosaic camera, that information is also known and must
    2524 be carried though the metadata.  A more difficult association is that
    2525 between the telescopes to define the major frame.  Some possibilities:
     2530\subsection{Cell vs Chip vs FPA vs Major Frame}
     2531
     2532There are several levels of input data pixel groups: Cell, Chip, Focal
     2533Plane Array (FPA), and Major Frame.  It is necessary to make the
     2534association between the data of one level and that of the next in a
     2535way that is reliable and robust to missing elements.  If a specific
     2536cell is missing from a chip, that information is known by the
     2537controller an needs to be represented in the metadata.  Similarly if a
     2538chip is missing from a mosaic camera, that information is also known
     2539and must be carried though the metadata.  A more difficult association
     2540is that between the telescopes to define the major frame.  Some
     2541possibilities:
    25262542
    25272543\begin{enumerate}
     
    25722588Phase 4. 
    25732589
    2574 \subsection{Pending Sky-cell / OTA table}
    2575 
    2576 Define a pending sky-cell / OTA table to define the overlaps and to
     2590\subsection{Pending Sky-cell / Detector table}
     2591
     2592Define a pending sky-cell / detector table to define the overlaps and to
    25772593give something which the scheduler can query to decide when to
    25782594initiate phase 4.
Note: See TracChangeset for help on using the changeset viewer.