~/talk

Latency Distributions and Micro-Benchmarking to Identify and Characterize Kernel Hotspots

Talkat SREcon21 · 2021-10-12..10-14· [linux-and-operating-systems]
links:none on file
links:none on file
slides:none on file

Engineering uses micro-benchmarks and latency histograms to pinpoint kernel hotspots across AIX Linux and Solaris rather than rely on topic-level diagnostics. AIX reveals semaphore create/destroy serialization via coarse spinlocks that lengthen wall time under concurrency confirmed with a 3 million iterations create/destroy loop and aggravated by AIX hyperthreading CPU accounting. Linux message queue shm shows huge system time that improves from RHEL6 to RHEL7.6. Solaris netsat traversal of unix domain sockets pushes a token SLI tail from median ms to 250 milliseconds; a benchmark that adds 32k sockets per run reproduces the growth and leads to Solaris 11.4 fixes.

AI-written summary · about

  1. 0:00Intro
  2. 2:11Why Large Bare Metal Boxes? • Faster local communication UNIX Domain Sockets Shared Memory
  3. 2:58The Scale in our Department • 100K processes across hundreds of physical machines
  4. 3:22SysV semaphore bottleneck (AIX)
  5. 8:07Observations and Findings AIX CPU measurement when hyper-threading is very misleading No 'out of the box metrics on SysV IPC operations Sporadic slowness (depending on concurrency/contention)
  6. 9:04SysV shared memory bottleneck (Linux) • Low-level application infrastructure code dropping messages Messaging leverages a form of "zero copy" IPC using Sysv
  7. 9:39SysV shared memory bottleneck (Linux RHEL 6) The micro-benchmark
  8. 10:37Case #2: Observations and Findings • No 'out of the box metrics on SysV IPC operations
  9. 11:59UNIX domain socket bottleneck (Solaris) • Critical software infrastructure experiencing timeouts on load Identity management with very strict SLOS Narrowing down the problem A key SLI for the service is token generation latency
  10. 12:51An Aside: Histograms and Distributions are Useful! • More representative of the data set
  11. 14:18An Aside: A Histogram Example
  12. 14:43Early Observations • No out of the box metrics on socket operations
  13. 16:40Case #3: UNIX domain socket bottleneck (Solaris) The micro-benchmarkt-testing against size
  14. 17:41Case #3: Conclusions • Solaris 11.3 is limited to a max of 256K UDS sockets
  15. 18:23Task clone and exit bottleneck (Linux)
  16. 22:37More Summary (Plea to Kernel Folks) • The Prime Directive of Monitoring: Non-interference
  17. 24:34References
~/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.