Skip to Main Content
Mac OS X for Unix Geeks
book

Mac OS X for Unix Geeks

by Ernest E. Rothman, Brian Jepson
September 2002
Beginner to intermediate content levelBeginner to intermediate
216 pages
7h 43m
English
O'Reilly Media, Inc.
Content preview from Mac OS X for Unix Geeks

latency

latency measures the number of context switches and interrupts, and reports on the resulting delays, updating the display once per second. This utility must be run as root. Example 8-1 shows a portion of its output.

Example 8-1. Partial output from latency
Mon Apr  8 16:30:30                             0:01:58
                     SCHEDULER     INTERRUPTS
---------------------------------------------
total_samples            64431         179982

delays <  10 usecs       38731         176120
delays <  20 usecs       10763           2885
delays <  30 usecs        2934            447
delays <  40 usecs        1037            190
delays <  50 usecs         718             93
delays <  60 usecs         708             41
delays <  70 usecs         540             32
delays <  80 usecs         420             21
delays <  90 usecs         310             30
delays < 100 usecs         217             20
total  < 100 usecs       56378         179879

The SCHEDULER column lists the number of context switches and the INTERRUPTS column lists the number of interrupts.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X For Unix Geeks, 4th Edition

Mac OS X For Unix Geeks, 4th Edition

Ernest E. Rothman, Rich Rosen, Brian Jepson
Mac OS X Hacks

Mac OS X Hacks

Kevin Hemenway, Rael Dornfest
Mac OS X in a Nutshell

Mac OS X in a Nutshell

Jason McIntosh, Chuck Toporek, Chris Stone

Publisher Resources

ISBN: 0596003560Errata Page