8
Monitors Chapter Seven Dr. Gheith Abandah 1

Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Embed Size (px)

DESCRIPTION

Monitors A monitor is a tool used to observe the activities on a system Useful for: – Software optimization – Finding bottlenecks – Tuning – Characterizing workloads Dr. Gheith Abandah3

Citation preview

Page 1: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Monitors

Chapter Seven

Dr. Gheith Abandah 1

Page 2: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Outline

• Monitors• Software monitors• Hardware monitors

Dr. Gheith Abandah 2

Page 3: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Monitors

• A monitor is a tool used to observe the activities on a system

• Useful for:– Software optimization– Finding bottlenecks– Tuning– Characterizing workloads

Dr. Gheith Abandah 3

Page 4: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Definitions

• Event is a change in the system state• Trace is a log of events usually including event

times• Monitors often have overheads

Dr. Gheith Abandah 4

Page 5: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Monitor types

• Triggers– Event driven: good for infrequent events– Timer driven (sampling): good for frequent events

• Results displaying– Online– Batch

• Implementation– Software, hardware, firmware, hybrid

Dr. Gheith Abandah 5

Page 6: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Software monitors

• Activation mechanism:– Trap instruction– Trace mode; interrupt after every instruction– Timer interrupt (resolution problem)

Dr. Gheith Abandah 6

Page 7: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Hardware monitors

• Probes• Counters• Timers• Logic analyzers

Dr. Gheith Abandah 7

Page 8: Monitors Chapter Seven Dr. Gheith Abandah1. Outline Monitors Software monitors Hardware monitors Dr. Gheith Abandah2

Comparison

Criterion Hardware monitor

Software monitor

Domain HW events Application and OS events

Input rate High LowTime resolution High Low

Overhead None Varies

Dr. Gheith Abandah 8