Debian Codegraph @

my_docs/23/lmod_zoom_mtg_2023_08_01/presentation.tex

raw
1 \documentclass{beamer}
2
3 % You can also use a 16:9 aspect ratio:
4 %\documentclass[aspectratio=169]{beamer}
5 \usetheme{TACC16}
6
7 % It's possible to move the footer to the right:
8 %\usetheme[rightfooter]{TACC16}
9
10 %% page
11 %\begin{frame}{}
12 % \begin{itemize}
13 % \item
14 % \end{itemize}
15 %\end{frame}
16 %
17 %% page
18 %\begin{frame}[fragile]
19 % \frametitle{}
20 % {\tiny
21 % \begin{semiverbatim}
22 % \end{semiverbatim}
23 %}
24 % \begin{itemize}
25 % \item
26 % \end{itemize}
27 %
28 %\end{frame}
29
30 \begin{document}
31 \title[Lmod]{15 years of Lmod: A Retrospective}
32 \author{Robert McLay}
33 \date{August 1, 2023}
34
35 % page 1
36 \frame{\titlepage}
37
38
39 % page 2
40 \begin{frame}{Outline}
41 \center{\includegraphics[width=.9\textwidth]{[email protected]}}
42 \begin{itemize}
43 \item The start of Lmod
44 \item Why I used Lua to implement Lmod?
45 \item Where Lmod success comes from?
46 \item Features added over time
47 \item Lmod lessons learned
48 \item Conclusions
49 \end{itemize}
50 \end{frame}
51
52 % page 3
53 \begin{frame}{The start of Lmod}
54 \begin{itemize}
55 \item In 2008, my friend and colleague Bill Barth asked:
56 \item TACC has a software hierarchy with Tmod 3.2.10 (TCL/C)
57 \item Impossible to change compilers or mpi modules
58 \item Help?
59 \end{itemize}
60 \end{frame}
61
62 % page 4
63 \begin{frame}{Key Insight}
64 \begin{itemize}
65 \item Remember the state of \$MODULEPATH
66 \item When it changes, change loaded modules if necessary
67 \item Support the idea of inactive modules
68 \item Lmod was born
69 \end{itemize}
70 \end{frame}
71
72 % page 5
73 \begin{frame}{Why implement in Lua?}
74 \begin{itemize}
75 \item TCL is not my favorite language
76 \item TCL/C Tmod was/is very complicated (and ugly!!)
77 \item Worked in Lua to develop testing tools (more on this latter)
78 \item Did consulting work in Python before TACC: Avoid conflicts
79 \item If useful, the idea would be integrated into Tmod (Nope!)
80 \item Happy accident: Lua is fast enough
81 \item Lua is easier to protect from user environments (Esp. Python)
82 \end{itemize}
83 \end{frame}
84
85 % page 6
86 \begin{frame}{Some Reasons for Lmod Success}
87 \begin{itemize}
88 \item Initially no real competition (Tmod 4 started in 2017)
89 \item Working at TACC helped
90 \item Good enough documentation
91 \item Easy transition from Tmod to Lmod (Lmod reads TCL
92 modulefiles (Almost always works!?))
93 \item Many Features not provided by other tools
94 \item Unsolicited articles written by Jeff Layton about Lmod
95 \item Many say: ``It just works so I don't worry about it.''
96 \item Now used by EasyBuild, OpenHPC and Spack
97 \item Packages for Mac Brew, Fedora, Debian
98 \item It is reliable.
99 \end{itemize}
100 \end{frame}
101
102 % page 7
103 \begin{frame}{Hidden Reason for Lmod Success}
104 \begin{itemize}
105 \item Testing Lmod has an extensive test suite (1400+ tests)
106 \item Lmod uses the release early and often model.
107 \item Almost 7000 check-in, 611 tags (versions)
108 \item Can debug (via ml -D ... or ml -T) remotely
109 \item My background is in 3-D Finite Element in C++
110 \item I am a big fan of Design Patterns
111 \item Lmod uses Singleton, Factories and Template pattern
112 through-out for a code written in Lua.
113 \end{itemize}
114 \end{frame}
115
116 % page 8
117 \begin{frame}{More on Testing}
118 \begin{itemize}
119 \item The TM testing suite filters output to converts to canonical
120 names
121 \item Makes output path independent so tests can be run anywhere
122 \item Tests both stderr and stdout output for each test
123 \item Can repeatedly run a single test file or just the ones that
124 failed
125 \item Lmod is reliable because of testing
126 \item Github Actions run tests on 4 version of Lua on both
127 Ubuntu and macOS for every check-in. (Thanks Kenneth Hoste and
128 Ward Poelmans!)
129 \item There are also unit tests and installed Lmod set of tests
130 \end{itemize}
131 \end{frame}
132
133 % page 9
134 \begin{frame}{Building trust with the user community}
135 \begin{itemize}
136 \item Making it reliable (again via Testing)
137 \item Timely answering the email and github issues
138 \item Book: Team Geek
139 \item Learning to be polite when answering and re-answering
140 questions
141 \item ``You might consider ...''
142 \item ``Please test Lmod version ... when you get a chance to see
143 if it works for you''
144 \item Not getting upset when non-native English speakers sound
145 insulting
146 \end{itemize}
147 \end{frame}
148
149 % page 10
150 \begin{frame}{Features added over time}
151 \begin{itemize}
152 \item Tab completion for bash and z-shell
153 \item Support for N/V then C/N/V finally N/V/V (Lmod 7+)
154 \item Semantic versioning (5.9 $<$ 5.10)
155 \item Module properties
156 \item Spider cache (speed up ``module avail'' and ``module load'')
157 \item Personal Collections
158 \item ml
159 \item sandbox (prevents modulefiles from calling internal routines)
160 \end{itemize}
161 \end{frame}
162
163 % page 11
164 \begin{frame}{Features part II}
165 \begin{itemize}
166 \item pushenv, sticky modules, i18n error messages
167 \item Hooks, /etc/lmod/lmod\_config.lua
168 \item Tracking of module usage via hooks
169 \item Hidden modules
170 \item depends\_on()
171 \item source\_sh(): source a shell script inside a modulefile
172 \item LMOD\_QUARANTINE\_VARS
173 \item ...
174 \end{itemize}
175 \end{frame}
176
177 % page 12
178 \begin{frame}{Lmod lesson learned}
179 \begin{itemize}
180 \item A private repo (bitbucket) as well as a public repo (github)
181 \item make gittag TAG=...; make world\_update
182 \item git worktrees
183 \item Exploiting Lmod to help XALT
184 \item Learned way more than I ever wanted to know about bash, zsh,
185 tcsh shell startup procedures
186 \item Want tcsh to die, die, die
187 \item That default interactive non-login bash shell startup is
188 borked (We patch bash to get to work)
189 \item Can be difficult to decide what a user is reporting. Bug or
190 not?
191 \item Getting users to use the bugReport script when submitting a
192 bug.
193 \end{itemize}
194 \end{frame}
195
196 % page 13
197 \begin{frame}{Lmod lesson learned (II)}
198 \begin{itemize}
199 \item That \texttt{module() \{ eval "\$(LMOD\_CMD bash "\$@")" \}}
200 works better than
201 \item \texttt{module() \{ eval \$(LMOD\_CMD bash "\$@") \}} who
202 knew?
203 \item Cannot test every possibility, users will \textbf{ALWAYS}
204 find a case I missed
205 \item The moduleTable has been incredible notion to store
206 the module state in your env.
207 \item That other tools will use the spider cache output.
208 \item No two site are run exactly the same way.
209 \item There are ten or more ways that Lmod can be tailored.
210 \item Communicating changes thru README.new
211 \end{itemize}
212 \end{frame}
213
214 % page 14
215 \begin{frame}[fragile]
216 \frametitle{Lmod Doc usage by City}
217 \center{\includegraphics[width=.9\textwidth]{Lmod_doc_usage_by_city}}
218 \end{frame}
219
220 % page 15
221 \begin{frame}{Conclusions}
222 \begin{itemize}
223 \item Not every site works like TACC.
224 \item That making Lmod available to the world has made it so much
225 better.
226 \item I have made many friends over the years through working on Lmod.
227 \item Working on Lmod has been a fun part of the job.
228 \item I have been giving these Lmod Monthly talks since Sept 2021
229 \end{itemize}
230 \end{frame}
231
232
233 % page 16
234 \begin{frame}{Future Topics}
235 \begin{itemize}
236 \item Next Meeting will be Sept. 5th at 9:30 Central (14:30 UTC)
237 \item Mathew Cawood will be running the meeting with a different
238 zoom link
239 \end{itemize}
240 \end{frame}
241
242 \end{document}