% TEXINPUTS=.:$HOME/git/bvtex: latexmk  -pdf ggd.tex


\documentclass[10pt,xcolor=dvipsnames]{beamer}
\input{defaults}

\input{beamer/preamble}
\usepackage[outline]{contour}

\definecolor{bvtitlecolor}{rgb}{0.98, 0.92, 0.84}
\definecolor{bvoutline}{rgb}{0.1, 0.1, 0.1}

\newcommand{\worch}{\textit{worch}\xspace}
\newcommand{\waf}{\textbf{waf}\xspace}

\renewcommand{\bvtit}{LBNE@RACF}
\renewcommand{\bvtitle}{\LARGE \textcolor{DarkOrchid}{LBNE Infrastructure at BNL's RACF}}
\renewcommand{\bvevent}{LBNE Collab Meeting, July/Aug 2014}
\renewcommand{\bvbeamerbackground}{}

\begin{document}
\input{beamer/title.tex}
\input{beamer/toc.tex}

\section{BNL/FNAL Access Tests}

\begin{frame}[fragile]
  \frametitle{SAM Web Client}
  SAM is our file catalog
  \begin{itemize}
  \item Need to be able to query SAM from a variety of contexts
  \item Simple web API to ``SAM Web''
  \item Installed SAM web client on RACF
  \item Developed Python packaging (``\texttt{setup.py}'')
  \item Did some testing, everything works well.
  \end{itemize}

\begin{verbatim}
$ samweb [...]
\end{verbatim}

  Some detailed notes at

\url{http://www.phy.bnl.gov/~bviren/pub/topics/SAM-on-RACF/}

\end{frame}

\begin{frame}
  \frametitle{SAM Support for File Popularity?}
  
  A question for SAM experts.

  \begin{itemize}
  \item SAM will be queried for files matching some criteria
    \begin{itemize}
    \item Usually for the intention of then reading these files.
    \end{itemize}
  \item SAM must already have knowledge about ``who'' (at
    least at the site IP/hostname level) made the query, (right?).
  \end{itemize}

  \begin{quotation}
    Can SAM maintain a count of file/site pairs for all query results?
  \end{quotation}

  \begin{itemize}
  \item[$\rightarrow$] This would allow file cache managers to query
    SAM for file popularity in order to implement smarter caching
    policies.
  \end{itemize}
  
\end{frame}

\begin{frame}[fragile]
  \frametitle{XRootD Client Tests}

  Test use of ``\texttt{xrdcp}'' to copy a file from FNAL to BNL.

  \vspace{2mm}

  Access Control:
  \begin{description}
  \item[kx509] Fermilab-centric way to generate a temporary certificate from your Fermilab Kerberos principal.
  \item[cert] Usage of same OSG certificate for Grid submission
  \end{description}

  Both work.  Thanks OSG for help renewing my cert and Dmitry
  Litvintsev for the tweaks on the Fermilab server to accept it.

  \footnotesize
\begin{verbatim}
kx509> voms-proxy-init -rfc -noregen -valid 24:00 \
                       -voms lbne:/lbne/Role=$ROLE
 cert> voms-proxy-init -voms lbne
 both> xrdcp root://fndca1.fnal.gov:1094/<path>/<file> /target
\end{verbatim}


  \begin{description}
  \item[path] \verb|pnfs/fnal.gov/usr/lbne/mc/lbne/simulated/001|
  \item[file] \verb|35T_singleparticle_pizero_30_1.root|
  \end{description}
\end{frame}

\section{XRootD design, plans and status}

\begin{frame}
  \frametitle{Good Things About Data Distribution with XRootD}
  \begin{itemize}
  \item On-demand, federated peered transfer.
    \begin{itemize}
    \item As apposed to managed, tiered, pre-staged.
    \end{itemize}
  \item Local caching, auto discovery, low latency.
  \item Simple, single namespace exposed to user.
  \end{itemize}
\end{frame}

\begin{frame}[fragile]
  \frametitle{High Level Data Transfer Plan}

  \begin{center}
    \includegraphics[width=0.8\textwidth]{xrootd-arch.pdf}
  \end{center}

  \small

  \begin{itemize}
  \item Requests made to global or site-local XRootD redirector.
  \item FNAL$\to$BNL transfers via FRM job, cached (insert popularity feature here!)
  \end{itemize}

\end{frame}

\begin{frame}
  \frametitle{Status of XRootD at BNL}
  Current status:
  \begin{itemize}
  \item Moved existing XRootD files to GPFS (10TB out of 1PB).
  \item Reconfigured LBNE XRootD file servers, in progress.
  \item Upgrading to XRootD v4.
  \end{itemize}

  \vspace{5mm}

  Still to do:
  \begin{itemize}
  \item Understand authentication issues and forge BNL/FNAL connection
    for FRM-driven copy.
  \item Start with simple cache purge policy now
    \begin{itemize}
    \item Look in to using SAM for popularity-based purge policy.
    \end{itemize}
  \item Up to 55TB will be available.
    \begin{itemize}
    \item Future upgrades under consideration.
    \end{itemize}
  \end{itemize}
\end{frame}

\section{LArSoft UPS Install}

\begin{frame}[fragile]
  \frametitle{LArSoft UPS Install in BNL RACF}
  RACF = Sci. Linux 6.4 64bit, \\
  160/22k LBNE cores, 3/10 interactive LBNE nodes.

  \begin{itemize}
   \item Worch-based from-source (\textit{ca.} v1) build exists, effort on \textbf{hold}.
  \item V2-era Fermilab-scripts-based from-source build tested 
    \begin{itemize}
    \item Went \textbf{smoothly} but only for officially supported platforms.
    \end{itemize}
  \item Bulk of v1 and v2 era Fermilab binaries in place (manual, as needed).
  \end{itemize}

\begin{verbatim}
$ source /afs/rhic.bnl.gov/lbne/software/products/setup
$ ups list -aK+ | grep '"larsoft"' | wc -l
19
$ setup larsoft v02_03_01 -q e5:prof
$ lar [...]
\end{verbatim}

\end{frame}

\section{}

\begin{frame}
  \begin{center}
    That's it.
  \end{center}
\end{frame}

\end{document}