~/talk

What is that Process Doing?

Talkat Open Source Bridge 2013 · 2013-06-18..06-21· [devops-and-delivery]
slides:none on file

Uses concrete system tools and concrete commands to answer the title: the proc filesystem reveals every open file via /proc/PID/fd (including a deleted file whose contents can still be copied) and shows mapped shared libraries in /proc/PID/maps; strace -p attaches to a running process or runs one and prints interpreted system calls (use -f to follow children, filter by syscall classes like file); perf samples via CPU counters to produce accurate callgraph profiles with only a few percent overhead; tshark inspects network traffic.

AI-written summary · about

  1. 0:00Start
  2. 9:34Problem: The process is writing (or reading) some files. Where are they?
  3. 11:11proc/: File Progress Problem: It's working on some file how far has it gotten?
  4. 13:00proc/: Reviving Dead Files Problem: It's using some file which is now deleted. What's in there?
  5. 21:42Traces system calls: Files: stat64 open read write...
  6. 29:42strace: A stuck process Problem: it seems not to be doing anything
  7. 31:48strace: Finding config file Problem: it's not finding the config file you expected
  8. 32:15config file finding the config
  9. 35:51strace digest strace CMD ARGS... strace -p PID
  10. 42:46Fantastic profiler In cahoots with kernel and CPU
  11. 44:33Inside: gdb Debugger, a subject in itself Today just one class of tricks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.