forked from todor-ivanov/chep2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ieanalysis.tex
484 lines (413 loc) · 14.8 KB
/
ieanalysis.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
\documentclass[8pt,mathserif,a4paper,oneside,pdf]{beamer}
\mode<presentation>{}
\usetheme{Warsaw}
%% \hypersetup{pdfstartview={Fit}} % fits the presentation to the window when first displayed
\usepackage{pslatex,palatino,avant,graphicx,color}
%\usepackage[margin=2cm]{geometry}
\usepackage[utf8]{inputenc} %direct input of unicide chars
%% \usepackage[T2A,T1]{fontenc}
\usepackage[T1]{fontenc}
%% \usepackage[main=english,bulgarian]{babel}
\usepackage[main=english]{babel}
\usepackage{fancyvrb}
\usepackage{lmodern}
\usepackage{bold-extra}
%% \usefonttheme{professionalfonts} % using non standard fonts for beamer
%% \usefonttheme{serif} % default family is serif
%% \usepackage{fontspec}
%% \setmainfont{Liberation Sans}
%% setting the default font family to SanSerif
\renewcommand{\familydefault}{\sfdefault}
%% \fontencoding{T2A}
%% \fontfamily{sf}
%% %% \fontfamily{garamond}
%% %% \fontseries{m}
%% %% \fontshape{it}
%% %% \fontsize{12}{15}
%% \selectfont
\usepackage{booktabs, multicol, multirow}
\usepackage{mathtools}
\usepackage{color}
\usepackage{fancybox, graphicx}
%% %\usepackage{tikz}
%% \definecolor{lightlightgray}{gray}{0.94}
%% \setbeamercolor{background canvas}{bg=lightlightgray}
\setbeamertemplate{navigation symbols}{\insertframenumber/\inserttotalframenumber}
%% \addtobeamertemplate{footline}{}{\insertframenumber/\inserttotalframenumber}
%% \addtobeamertemplate{footline}[frame number]
%% \setbeamertemplate{footline}[text line]{%
%% \noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}\\
%% \parbox{\linewidth}{\vspace*{-18pt}some text\hfill\insertshortauthor\hfill iztochnici\\}}
\usepackage{amssymb}
\newcommand{\Lagr}{\mathcal{L}}
\newcommand{\tbg}{T3\_BG\_UNI\_SFIA~}
\newcommand{\ngibg}{NGI\_BG~}
\newcommand{\bgo}{BG05-SUGrid~}
\graphicspath{{images/}}
% position the logo
\usepackage{textpos} % package for the positioning
\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{100mm}(\textwidth,-1cm)
\includegraphics[height=1cm,width=1cm,keepaspectratio]{images/logo_su}
\end{textblock*}}
\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{100mm}(-8mm,-14mm)
\includegraphics[height=9mm,width=9mm,keepaspectratio]{images/logo_CMS}
\end{textblock*}}
%\usepackage{biblatex}
%\bibliography{bibliography}
%% \setbeamertemplate{footline}[text line]{%
%% \parbox{\linewidth}{\vspace*{-8pt}some text\hfill\insertshortauthor\hfill\insertpagenumber}}
%% \setbeamertemplate{navigation symbols}{}
\begin{document}
%% Slide 1
\date{ July 10, 2018}
\title[Improving efficiency of analysis jobs in CMS | CHEP2018]{Improving efficiency of analysis jobs in CMS. \\}
\author[Todor Trendafilov Ivanov, University of Sofia ``St. Kliment Ohridski'']{
%% Todor Trendafilov Ivanov on behalf of CMS CRAB Team,\\
%% CHEP2018\\
\textbf{Authors:} Stefano Belforte, Matthias Wolf, Todor Trendafilov Ivanov, Marco Mascheroni, Antonio Perez-Calero Yzquierdo, James Letts, Justas Balcas, Anna Elizabeth Woodard, Brian Paul Bockelman, Diego Davila Foyo, Diego Ciangottini, Jose Hernandez Calama, Leonardo Cristella \\
}
\begin{frame}{}
\begin{textblock*}{100mm}(\textwidth,-1cm)
\includegraphics[height=1cm,width=1cm,keepaspectratio]{images/logo_su}
\end{textblock*}
\begin{textblock*}{100mm}(-8mm,-14mm)
\includegraphics[height=9mm,width=9mm,keepaspectratio]{images/logo_CMS}
\end{textblock*}
\begin{minipage}[t]{1\textwidth}
\begin{center}
\vspace{-1cm}
% University of Sofia ``St. Kliment Ohridski''\\
% CRAB Team CMS
\end{center}
\end{minipage}
\noindent\makebox[\linewidth]{\rule{\paperwidth}{1pt}}
\titlepage
\vfill
\end{frame}
\section[CMS CRAB \& SI System overview]{CMS CRAB \& SI System overview}
\subsection[]{}
\begin{frame}[fragile]{CRAB \& Global Pool \& glideinWMS}
-- At most one slide --\\
\end{frame}
\section[Automating Splitting]{Automating Splitting}
\subsection[Automating Splitting]{Automating Splitting}
\begin{frame}[fragile]{Concept}
-- One or 2 slides here --\\
\end{frame}
\section[Automating Tuning]{Automating Tuning}
\subsection[Current Implementation]{Solution}
\begin{frame}[fragile]{JobAutoTuner and CRAB3 Workflow:}
\begin{columns}
\begin{column}[T]{7cm}
What ever we do we do it at the final step, just before the job submission and after the DAG Expansion - We have to be really fast:
\begin{itemize}
\item
Fast Script execution.
\item
Fast in gathering of the Condor related information.
\item
Fast in querying the external information.
\item
Fast in taking the decisions.
\item
Fast in applying it - editing the jobs.
\end{itemize}
Alternative solution - keep jobs in hold while measuring (Potential enormous delay in submission time).
\end{column}
\begin{column}[T]{5cm}
{\shadowbox{\includegraphics[width=4.5cm]{CRAB3_architecture_simple_JAT}}}
\end{column}
\end{columns}
\end{frame}
\subsection[Automating Time Tuning]{Automating Time Tuning}
\begin{frame}[fragile]{Concept \&\& differences from Automatic Splitting}
\begin{columns}
\begin{column}[T]{4cm}
-- one slide --\\
-- + showing how EWT perJOB progress in time - well defined task + pathological cases. --\\
-- this one may simply be united with the previous slide -- \\
-- the image in the current slide is just for scale testing.
\end{column}
\begin{column}[T]{6cm}
{\shadowbox{\includegraphics[width=6cm]{CRAB3_Auxiliary-RemoteWallClockTime_by_CRAB_SplitAlgo}}}
\end{column}
\end{columns}
\end{frame}
\begin{frame}[fragile]{Current implementation of Time tuning}
-- one slide explaining the whole machinery -- \\
\end{frame}
\begin{frame}[fragile]{Current results}
-- Few plots showing the results from the latest implementation --\\
\end{frame}
\begin{frame}[fragile]{New Methods for improving the accuracy of the current estimation}
-- One slide showing that there is great motivation and opportunity to apply multivariate analysis and ML for improving the accuracy of the method. --\\
-- And that the proper hooks in the current code are already prepared for such next step. (we may even mention that this is a work in progress or a field yet to be explored) --\\
\end{frame}
\subsection[Overflow]{Overflow}
\begin{frame}[fragile]{Problem:}
\begin{itemize}
\item
\textbf{The primary need:} to achieve a better resource utilisation
\item
\textbf{The secondary need:} to protect the sites from being flooded with jobs they cannot process || serve data for them.
\item
\textbf{The old Overflow mechanism} - what does it suffer from:
\begin{itemize}
\item
Statically defined overflow regions - can't be based on other criteria characterizing ``proximity''
\item
Overflow matching decision happens in the timescale of pilot lifetimes - not flexible enough to respond to faster changes in the status of the distributed CPU and storage resources
\item
Requires additional FE groups to be set - a limitation in practice to the different number of settings that could be configured at once.
\item
Based on a special type of pilots - fragmentation of the resources, increasing wastage
\end{itemize}
\end{itemize}
\end{frame}
%% \subsection[Proposed Solution]{Proposed Solution}
\begin{frame}[fragile]{Proposed Solution: }
A solution based on the condor JobRouter mechanism to edit jobs in place.\\
\textbf{Challenges:}
\begin{itemize}
\item
The difficulties for the estimation - the complexity in putting the right algorithms:\\
What do we want to overflow \& Where do we want to send it.\\
\textit{Sysadmin on a military drill.}
\item
The difficulties of measuring:\\
Hard to find the proper metric which best describes one's needs and the effect of his actions.\\
\textit{one possibility: IO waits accessible directly from the UserLog @ the Schedd}
\item
The complexity of applying all the decisions (separately/together)
\item
Decentralizing it adds complexity to the communication between the entities and increases the time for achieving coherency.
\item
In the new CMS computing model \textbf{Bandwidth \& IO} should be treated as a separate resource in addition to \textbf{CPU \& Storage}
\end{itemize}
%% \begin{itemize}
%% \item<1-5>
%% pass
%% \item<2-5>
%% pass
%% \item<3-5>
%% pass
%% \end{itemize}
\end{frame}
%% \subsection[History]{History}
\begin{frame}[fragile]{History - TimeTuner:}
-- This slide must be revisited and if there is something left out of it to be shifted in the Time Tuning section --\\
The first attempt to exploit the CondorJobRouter machinery.\\
It definitely works fine - it scales and is doing what it is expected to do.\\
\textbf{What kind of problems did we face:}
\begin{itemize}
\item
Proper communication with the external systems.
\item
Time delays in the returned information.
\item
Correct monitoring.
\item
Efficiency.
\item
To protect the JobRouter.
\item
To protect the Collector - we basically did not go out of the schedds themselves.
\end{itemize}
\textbf{What did we learn:}
\begin{itemize}
\item
One cannot solve a problem which does not exist.
\item
One cannot measure the world while looking at his internal load.
\end{itemize}
\textbf{We came to the current sate step by step.}
\begin{itemize}
\item
Implementing a maximum overflow in a country and providing a way to substitute the old Overflow.
\item
Facing the Tier1 problem - Critical for us. In the current situation of the negotiation order Analysis jobs cannot
run on the Tier1 sites but there are datasets that are currently placed only at T1.
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Structure:}
\begin{columns}
\begin{column}[T]{5cm}
Three basic abstractions:
\begin{itemize}
\item
\textbf{Information Lifetime:}
\begin{itemize}
\item
static
\item
dynamic
\end{itemize}
\item
\textbf{The OverflowLevel:}
\begin{itemize}
\item
PERTASK
\item
PERJOB
\item
PERBLOCK
\item
PERFILE
\item
PERDATASET
\end{itemize}
\item
\textbf{The OverflowType:}
\begin{itemize}
\item
GEO
\item
TIER1
\item
TIER2
\item
DATALOCATION
\item
LOCALLOAD
\item
SRCLOAD
\item
DSTLOAD
\end{itemize}
\end{itemize}
\end{column}
\begin{column}[T]{7cm}
{\shadowbox{\includegraphics[width=5cm]{CRAB3_overflow}}}
\end{column}
\end{columns}
\end{frame}
\begin{frame}[fragile]{Decision making \& Subsets}
\begin{columns}
\begin{column}[T]{5cm}
\begin{itemize}
\item
Weighted sum vs. Weighted single decision.
\item
Estimating the weights could be dynamic:\\
In the future we can apply more elaborate mechanisms for estimating the optimal weights according to the prompt feedback about the reaction of the system.
\item
Subsets intersections.
\end{itemize}
\end{column}
\begin{column}[T]{7cm}
{\shadowbox{\includegraphics[width=6.5cm]{CRAB3_site_subsets}}}
\end{column}
\end{columns}
\end{frame}
\begin{frame}[shrink]{Limits \& Protect ourselves}
\textbf{Limitations - where and how can be implemented:}\\
We do not want to shoot ourselves in the thumb - so we need to have more options than just maximum overflow.\\
\textbf{Alternatives:}\\
\begin{itemize}
\item
\textbf{At the Schedd level} - Inside the script:\\
Implemented but we cannot say how much can we scale with that.
\begin{itemize}
\item
\textbf{Pros:}\\
We will have the system solid and configured at one place.\\
The configuration limits are going to be accessible through the script itself.
\item
\textbf{Cons:}\\
It requires addition queries to the collector (schedds).\\
Additional delays.\\
Additional memory for the caching system.\\
\end{itemize}
\item
\textbf{At the Negotiator level} - Concurrency limits.\\
\begin{itemize}
\item
\textbf{Pros:}\\
Fast solution. Not requiring additional coding.
\item
\textbf{Cons:}\\
We will have the system configured in many places.\\
Need additional cycle during the negotiation process - creates more pressure on it.\\
We will brake the possibility to propagate the feedback information (we will not be able to recognise if we hit the limit set in the negotiator or some capacity limit).
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Current Status:}
\begin{itemize}
\item
\textbf{What is already done:}
\begin{itemize}
\item
\textbf{Information Lifetime:}
The caching system of the script is working well.\\
\item
\textbf{The OverflowLevel:}
\begin{itemize}
\item
PERTASK - implemented \& tested
\item
PERJOB - implemented \& under testing
\item
PERBLOCK - R\&D
\item
PERFILE - R\&D
\item
PERDATASET - R\&D
\end{itemize}
\item
\textbf{The OverflowType:}
\begin{itemize}
\item
GEO - implemented \& tested - (Default)
\item
TIER1 - implemented \& under testing
\item
TIER2 - to be discussed
\item
DATALOCATION - R\&D
\item
LOCALLOAD - to be discussed
\item
SRCLOAD - R\&D
\item
DSTLOAD - R\&D
\end{itemize}
\end{itemize}
\item
\textbf{What is left to be done (near future):}
\begin{itemize}
\item
A proper monitoring and a scale test.
\item
Moving it to a daemon.
\item
Finalising the rest of the OverflowLevels.
\item
Refactoring the Destination Generation in order to better tie it to the way we do the decision making.
\end{itemize}
\item
\textbf{What can be done in the future:}
\begin{itemize}
\item
To make it possible to measure the actual situation (load / resource utilisation) at the sites and mechanism for propagating the feedback.
\item
To have more topology aware information accessible.
\item
A hard one: to make it more general and context independent.
\end{itemize}
\end{itemize}
\end{frame}
\subsection[Conclusion \& Future plans - Automatic Memory Tuning]{Conclusion \& Future plans}
\begin{frame}
-- to list the future plan for improving the current implementation (if we decide to have a section with 'future plans') --\\
-- to mention Automatic Memory Tuning as a candidate area for future research --\\
\end{frame}
%% \begin{frame}[fragile]{Quantitative Results}
%% pass
%% \end{frame}
%% \begin{frame}[fragile]{What is left to be done}
%% pass
%% \end{frame}
\end{document}