Course outline

Linux performance / Advanced: topology, observability, and controlled tuning / Lesson 21

Measurement overhead and missing events

Test observer overhead and data completeness before drawing conclusions from a trace.

About 24 min read20 worked examples20 practice exercisesContent reviewed
On this page

Lesson goals

  • Estimate observer impact on a representative workload.
  • Interpret event loss and evidence-collection limits.
  • Design matched comparisons to estimate observer impact and its limits.
  • Interpret loss, selection, privacy, and collection teardown.

Bound the observation

An observation tool consumes resources and may change the behavior being measured. Start with a question, the target process or workload, a collection duration, and an acceptable overhead budget. Choose the least intrusive evidence that can distinguish your hypotheses. In a disposable environment, record normal request latency and throughput before attaching the observer, and agree on a stop condition if errors or latency rise.

Compare observer off and on

Run the same representative lab workload without and with the collection, keeping the environment and interval comparable. Repeat the comparison and record both application outcomes and collector CPU, memory, and data volume. The synthetic values below illustrate a possible observer effect; they are not measured results. A slower observed run does not automatically prove the collector caused the difference, because background work or workload variation may also matter.

text Synthetic comparison
observer off: 100 requests/s, 20 ms median
observer on:   90 requests/s, 25 ms median

These invented values illustrate the question; they do not establish cause or represent an executed measurement.

Account for missing evidence

A collector can drop events when buffers or downstream processing cannot keep up. Sampling, filtering, permissions, and process lifetime can also exclude observations. Inspect the collector’s documented loss indicators and record its selection criteria. Absence of an event in incomplete data is not proof that the event did not happen. Reduce scope or sampling frequency only after considering whether the remaining signal can still answer the original question.

Protect the evidence

Diagnostics can capture file names, command arguments, network addresses, or request data. Restrict access, avoid collecting unnecessary fields, and use synthetic identifiers in a lab. Define retention and deletion with the data owner before collecting production evidence. A lower-overhead trace is not automatically safer if it exposes secrets. Record what was collected and the authorization boundary so another operator can interpret the evidence without copying sensitive content.

Interpret and repeat

If overhead is material, shorten the collection or narrow its scope and repeat the comparison. Preserve the original settings, collection window, loss indicators, and workload results with the conclusion. The example below records a bounded observation contract before any tool is attached. After a corrective change, use the same measurement method when feasible and verify the user operation as well as the suspected resource signal.

text Example observation contract
target: disposable lab service
window: 60 seconds
stop: rising errors or unacceptable latency
record: workload, event loss, collector overhead

The example defines scope, stop conditions, and evidence to retain before running a tool.

Treat the observer as part of the experiment

A diagnostic collector consumes CPU, memory, I/O, buffer space, and reader capacity. It can perturb the workload it is intended to explain, especially on a hot event path or within a constrained cgroup. Define the question, target, duration, acceptable overhead, data fields, and stop condition before collection. Prefer the least intrusive observation that can distinguish the hypotheses. Verifier acceptance or a tool’s availability does not establish negligible runtime cost or complete data.

Compare the same representative synthetic workload with the observer off and on, keeping input mix, offered demand, concurrency, environment, and timing boundaries matched. Repeat and retain all trials, collector resource use, and background activity. A single slower instrumented run suggests possible perturbation but can also reflect workload variation or time drift. The examples below are fictional records and arithmetic; they do not attach a tracer or measure this host.

Describe what could have been observed

A trace population is defined by target, filter, event type, sampling method, permissions, and lifetime. An absent event can mean it did not occur, was filtered, was not sampled, happened outside the window, belonged to another namespace, or was lost. A permission error or unsupported event produces missing evidence, not a zero count. Record selection rules and collection status before making a negative claim.

Sampled profiles estimate the selected event population; they do not necessarily contain every request or wall-clock wait. A PID can be reused, and a target may exit during collection. Use suitable process-lifetime and operation identity where the interface supports it, and account for unmatched starts or finishes. Narrowing scope or frequency can reduce overhead but can also remove the signal needed to answer the original question. State that tradeoff explicitly.

Quantify loss and its possible bias

A collector or userspace reader can lose records when event rate exceeds buffer or processing capacity. Track documented loss counters, buffer overflow, map insertion failures, and unmatched events for the same interval. If 100 of 1000 generated records are lost, the observed loss fraction is 10%, assuming the counts cover the same population. That arithmetic does not say whether the missing records were fast or slow. A retained histogram may be biased if loss concentrates during overload.

Report the retained population, filter, sample rate, units, and loss alongside any percentile. A fast-looking retained p99 cannot prove that missing events were fast. Reduce event volume or scope, verify the remaining signal still answers the question, and repeat a bounded authorized lab observation. Preserve original loss evidence and avoid treating missing records as zero-duration operations.

Minimize sensitive data and bound lifecycle

Observability can expose filenames, command arguments, endpoint addresses, request bodies, or stack traces. Collect only fields needed for the question, use synthetic identifiers in the lab, restrict access, and agree with the data owner on retention and deletion. A low-overhead trace is not automatically safe if it exports secrets. Review output and error logs before sharing, and preserve enough sanitized context to interpret the measurement without copying unrelated payloads.

A collection plan includes attachment, duration, event-rate and loss budgets, reader behavior, stop conditions, and teardown. Define who owns maps, buffers, and files and what happens if the reader exits or the target restarts. Confirm detach and cleanup in a disposable environment. A collector left active after the approved window can continue consuming resources or collecting data outside its authorization. No probe attachment or production collection is required in this lesson.

Test the inference with explicit limitations

A long observed operation can explain part of a request only if the event definition, identity, and timestamps align. A nearby trace event or high aggregate count may belong to another request or include unrelated work. Correlate a safe request identifier and independent application or resource evidence; do not equate a sampled share with total client latency. If loss or overhead is material, reduce volume or use a simpler counter and repeat the controlled comparison.

After an authorized corrective change, use equivalent workload and measurement boundaries where feasible, and verify the user operation, errors, and suspected signal together. Preserve the original settings, raw counts, missing-data indicators, and negative findings. A smaller trace may be safer and more useful only if it still captures the mechanism under test. The goal is a defensible, bounded inference, not the largest collection.

20 worked examples

1. Observer comparison

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: observer off: 100 requests/s, 20 ms median observer on: 90 requests/s, 25 ms median runs: one each

  1. The instrumented run has 10 fewer requests/s and a 5 ms higher median.
  2. One pair suggests possible overhead but does not exclude workload or background variation.
text Observer comparison
observer off: 100 requests/s, 20 ms median
observer on: 90 requests/s, 25 ms median
runs: one each

Hypothetical data for analysis, not a host measurement. A controlled repeated comparison is needed to isolate observer effect. The instrumented run has 10 fewer requests/s and a 5 ms higher median.

Expected result: One pair suggests possible overhead but does not exclude workload or background variation.

Why this result follows: A controlled repeated comparison is needed to isolate observer effect. The instrumented run has 10 fewer requests/s and a 5 ms higher median.

2. Matched repeats

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: off p99 ms: 20,21,20 on p99 ms: 25,26,25 workload: matched

  1. Each on sample is 5 ms above the paired off sample.
  2. The repeated pattern supports an observer-impact hypothesis within this synthetic setup.
text Matched repeats
off p99 ms: 20,21,20
on p99 ms: 25,26,25
workload: matched

Hypothetical data for analysis, not a host measurement. Matched repeated trials reduce reliance on a single noisy comparison. Each on sample is 5 ms above the paired off sample.

Expected result: The repeated pattern supports an observer-impact hypothesis within this synthetic setup.

Why this result follows: Matched repeated trials reduce reliance on a single noisy comparison. Each on sample is 5 ms above the paired off sample.

3. Background confound

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: observer off: quiet host observer on: background load rises latency: rises

  1. Background activity changes along with observer state.
  2. Repeat with matched conditions before attributing the rise solely to the collector.
text Background confound
observer off: quiet host
observer on: background load rises
latency: rises

Hypothetical data for analysis, not a host measurement. A simultaneous external change confounds causal attribution. Background activity changes along with observer state.

Expected result: Repeat with matched conditions before attributing the rise solely to the collector.

Why this result follows: A simultaneous external change confounds causal attribution. Background activity changes along with observer state.

4. Collector CPU

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: collector CPU: 0.4 CPU workload cgroup budget: 1 CPU latency: rises

  1. The observer consumes a substantial part of the stated shared budget.
  2. Measure workload and collector behavior together before interpreting latency.
text Collector CPU
collector CPU: 0.4 CPU
workload cgroup budget: 1 CPU
latency: rises

Hypothetical data for analysis, not a host measurement. Observer resource use can compete with the measured workload. The observer consumes a substantial part of the stated shared budget.

Expected result: Measure workload and collector behavior together before interpreting latency.

Why this result follows: Observer resource use can compete with the measured workload. The observer consumes a substantial part of the stated shared budget.

5. Off/on workload mismatch

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: off input: 1 KiB on input: 1 MiB latency: on higher

  1. Input size changes by a large amount along with observer state.
  2. Match payload and demand before estimating observer overhead.
text Off/on workload mismatch
off input: 1 KiB
on input: 1 MiB
latency: on higher

Hypothetical data for analysis, not a host measurement. Workload differences can cause timing changes independently of instrumentation. Input size changes by a large amount along with observer state.

Expected result: Match payload and demand before estimating observer overhead.

Why this result follows: Workload differences can cause timing changes independently of instrumentation. Input size changes by a large amount along with observer state.

6. Lost fraction

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: generated records: 1000 lost records: 100 same interval: yes

  1. The loss count is 100 of 1000 generated records.
  2. The observed loss fraction is 10%, without revealing which events were lost.
text Lost fraction
generated records: 1000
lost records: 100
same interval: yes

Hypothetical data for analysis, not a host measurement. Loss arithmetic requires matching generated and lost populations. The loss count is 100 of 1000 generated records.

Expected result: The observed loss fraction is 10%, without revealing which events were lost.

Why this result follows: Loss arithmetic requires matching generated and lost populations. The loss count is 100 of 1000 generated records.

7. Retained fast p99

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: retained records: 900 lost: 100 retained p99: 5 ms

  1. The p99 describes only the 900 retained records.
  2. Do not infer that the missing 100 were fast; report loss and repeat bounded collection.
text Retained fast p99
retained records: 900
lost: 100
retained p99: 5 ms

Hypothetical data for analysis, not a host measurement. Loss can bias the observed latency population. The p99 describes only the 900 retained records.

Expected result: Do not infer that the missing 100 were fast; report loss and repeat bounded collection.

Why this result follows: Loss can bias the observed latency population. The p99 describes only the 900 retained records.

8. Filter excludes event

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: filter: cgroup A expected event: cgroup B observed: absent

  1. The selected population excludes cgroup B.
  2. Absence in this capture cannot prove the event did not occur in B.
text Filter excludes event
filter: cgroup A
expected event: cgroup B
observed: absent

Hypothetical data for analysis, not a host measurement. Filters determine which events can enter a trace. The selected population excludes cgroup B.

Expected result: Absence in this capture cannot prove the event did not occur in B.

Why this result follows: Filters determine which events can enter a trace. The selected population excludes cgroup B.

9. Outside window

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: capture: 10:00–10:01 expected event: 10:02

  1. The expected time lies after collection ended.
  2. The trace cannot establish presence or absence at 10:02.
text Outside window
capture: 10:00–10:01
expected event: 10:02

Hypothetical data for analysis, not a host measurement. A trace only observes its collection interval. The expected time lies after collection ended.

Expected result: The trace cannot establish presence or absence at 10:02.

Why this result follows: A trace only observes its collection interval. The expected time lies after collection ended.

10. Unsupported event

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: event: unsupported reported count: absent

  1. The requested event was not measured.
  2. Keep it unavailable and choose an authorized documented alternative if needed.
text Unsupported event
event: unsupported
reported count: absent

Hypothetical data for analysis, not a host measurement. Missing event support is not a measured zero. The requested event was not measured.

Expected result: Keep it unavailable and choose an authorized documented alternative if needed.

Why this result follows: Missing event support is not a measured zero. The requested event was not measured.

11. Permission denied

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: collector: permission denied records: none

  1. The collection failed before producing a valid population.
  2. Preserve the error and use the approved scoped process rather than lowering host security.
text Permission denied
collector: permission denied
records: none

Hypothetical data for analysis, not a host measurement. An access denial is not evidence that no events occurred. The collection failed before producing a valid population.

Expected result: Preserve the error and use the approved scoped process rather than lowering host security.

Why this result follows: An access denial is not evidence that no events occurred. The collection failed before producing a valid population.

12. Sampling limitation

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: sampling probability: 1% rare event: absent loss: none reported

  1. Only a subset of eligible events was sampled.
  2. The rare event may have occurred without selection, so absence is not conclusive.
text Sampling limitation
sampling probability: 1%
rare event: absent
loss: none reported

Hypothetical data for analysis, not a host measurement. Sampling intentionally omits part of the eligible population. Only a subset of eligible events was sampled.

Expected result: The rare event may have occurred without selection, so absence is not conclusive.

Why this result follows: Sampling intentionally omits part of the eligible population. Only a subset of eligible events was sampled.

13. PID reused

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: PID 42 lifetime A: exited PID 42 lifetime B: starts filter: PID only

  1. The same number identifies different process lifetimes.
  2. Add supported lifetime context before joining records across the boundary.
text PID reused
PID 42 lifetime A: exited
PID 42 lifetime B: starts
filter: PID only

Hypothetical data for analysis, not a host measurement. PID values can be reused after process exit. The same number identifies different process lifetimes.

Expected result: Add supported lifetime context before joining records across the boundary.

Why this result follows: PID values can be reused after process exit. The same number identifies different process lifetimes.

14. Unmatched start

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: starts: 100 matched finishes: 95 unmatched: 5

  1. Five starts have no corresponding finish in the record.
  2. Report them separately and define cleanup rather than inventing durations.
text Unmatched start
starts: 100
matched finishes: 95
unmatched: 5

Hypothetical data for analysis, not a host measurement. A valid latency requires matched operation boundaries. Five starts have no corresponding finish in the record.

Expected result: Report them separately and define cleanup rather than inventing durations.

Why this result follows: A valid latency requires matched operation boundaries. Five starts have no corresponding finish in the record.

15. Reader overload

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: event rate: 100000/s reader capacity: 10000/s loss counter: rising

  1. The producer exceeds reader capacity tenfold and observed loss rises.
  2. Reduce scope or aggregate, then verify the remaining signal and loss budget.
text Reader overload
event rate: 100000/s
reader capacity: 10000/s
loss counter: rising

Hypothetical data for analysis, not a host measurement. A slow reader can overflow buffers and bias retained data. The producer exceeds reader capacity tenfold and observed loss rises.

Expected result: Reduce scope or aggregate, then verify the remaining signal and loss budget.

Why this result follows: A slow reader can overflow buffers and bias retained data. The producer exceeds reader capacity tenfold and observed loss rises.

16. Map insertion failure

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: starts: 100 map insert failures: 8 matched durations: 92

  1. Eight starts were not stored under the stated accounting.
  2. Report the failures because the 92 durations omit those operations.
text Map insertion failure
starts: 100
map insert failures: 8
matched durations: 92

Hypothetical data for analysis, not a host measurement. Map capacity or insertion failure can remove events before correlation. Eight starts were not stored under the stated accounting.

Expected result: Report the failures because the 92 durations omit those operations.

Why this result follows: Map capacity or insertion failure can remove events before correlation. Eight starts were not stored under the stated accounting.

17. Sensitive payload

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: question: latency histogram proposed fields: full request body

  1. The full body is not necessary for the stated latency calculation.
  2. Use minimal authorized timing and identity fields with reviewed retention.
text Sensitive payload
question: latency histogram
proposed fields: full request body

Hypothetical data for analysis, not a host measurement. Data minimization limits exposure while preserving required evidence. The full body is not necessary for the stated latency calculation.

Expected result: Use minimal authorized timing and identity fields with reviewed retention.

Why this result follows: Data minimization limits exposure while preserving required evidence. The full body is not necessary for the stated latency calculation.

18. Reader exits

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: reader: exited early attachment: remains active cleanup: undefined

  1. The attachment can continue after its intended reader stops.
  2. Define stop, detach, and owned-state cleanup for this failure before collection.
text Reader exits
reader: exited early
attachment: remains active
cleanup: undefined

Hypothetical data for analysis, not a host measurement. Observation lifecycle includes abnormal termination and teardown. The attachment can continue after its intended reader stops.

Expected result: Define stop, detach, and owned-state cleanup for this failure before collection.

Why this result follows: Observation lifecycle includes abnormal termination and teardown. The attachment can continue after its intended reader stops.

19. Long unrelated span

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: kernel span: 80 ms client request: 100 ms correlation ID: absent

  1. The timings are nearby, but the record does not connect the events.
  2. Do not assign the span to the request without identity and interval correlation.
text Long unrelated span
kernel span: 80 ms
client request: 100 ms
correlation ID: absent

Hypothetical data for analysis, not a host measurement. Temporal proximity alone does not establish a causal request link. The timings are nearby, but the record does not connect the events.

Expected result: Do not assign the span to the request without identity and interval correlation.

Why this result follows: Temporal proximity alone does not establish a causal request link. The timings are nearby, but the record does not connect the events.

20. Stop threshold

Problem: Analyze the synthetic observation record and calculate or infer the supported result and its limits. Record: overhead budget: p99 increase ≤5 ms observed increase: 15 ms lab collection: active

  1. The observed increase exceeds the predefined budget by 10 ms.
  2. Stop the lab collection and follow its detach and rollback plan.
text Stop threshold
overhead budget: p99 increase ≤5 ms
observed increase: 15 ms
lab collection: active

Hypothetical data for analysis, not a host measurement. A predeclared stop condition bounds observer impact. The observed increase exceeds the predefined budget by 10 ms.

Expected result: Stop the lab collection and follow its detach and rollback plan.

Why this result follows: A predeclared stop condition bounds observer impact. The observed increase exceeds the predefined budget by 10 ms.

Common errors and fixes

Assuming tracing has no cost

Why it happens
The service was not compared with and without the observer.
How to fix it
Repeat a bounded experiment under equivalent conditions and inspect collection overhead.
Prevent it next time
Set an overhead budget and stop condition before collecting.

Treating an absent event as conclusive

Why it happens
Filters, sampling, or event loss were overlooked.
How to fix it
Inspect loss indicators and selection criteria, then collect suitable evidence.
Prevent it next time
Record data completeness and limitations with each conclusion.

Collecting unnecessary sensitive data

Why it happens
Field or access scope exceeded the question.
How to fix it
Stop collection and handle data under its owner’s procedure.
Prevent it next time
Minimize fields and define access and retention in advance.

20 practice exercises

1. Throughput fell in one traced run. Has tracing been proven responsible?

Show hint

Check variability before attributing the difference to the observer.

Show worked solution

No. Compare repeated runs under equivalent workloads and conditions, and inspect collector overhead and background activity before attributing cause.

A throughput drop in one run suggests possible overhead but does not prove it. Repeat observer-on and observer-off trials with matched workload and conditions, recording collector resources and background activity.

Check your solution

  • Record the throughput difference without asserting cause.
  • Repeat matched trials and inspect collector cost.

2. An expected event is absent while the collector reports loss. What follows?

Show hint

Relate absence to selection and loss limits.

Show worked solution

The data cannot prove the event was absent. Inspect collection scope and loss, then gather suitable evidence with explicit limits.

With reported loss, absence does not prove the event never occurred. Inspect filter, interval, and loss indicators, then collect suitable bounded evidence if the question remains open.

Check your solution

  • Do not infer nonoccurrence from incomplete data.
  • Check scope and loss before recollection.

3. One traced run completes 90 requests/s versus 100/s untraced. Has observer causation been proven?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

No. The difference suggests possible overhead, but one pair can also reflect workload or background variation. Repeat matched observer-off and observer-on trials and record collector resources. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Record the 10 requests/s difference.
  • Repeat matched trials before assigning cause.

4. Observer-off p99 is 20 ms and observer-on p99 is 35 ms under matched synthetic load. Calculate the difference.

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The observed increase is 35 − 20 = 15 ms. Repeat and inspect collector CPU and loss before treating this single difference as a stable overhead estimate. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Calculate a 15 ms increase.
  • Repeat and inspect collector cost and loss.

5. A collector runs only during the candidate while background traffic also rises. What confounds attribution?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Observer state and background workload changed together, so either could affect timing. Match or alternate conditions and record both factors before assigning the latency change. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Identify both changing factors.
  • Repeat with matched or alternated conditions.

6. A trace filters cgroup A, but the expected event belongs to cgroup B. What does its absence show?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The event was outside the selected population, so its absence cannot establish that it did not occur. Narrow the claim to A or obtain separately authorized B evidence. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Identify B as excluded by the filter.
  • Do not claim B’s event never occurred.

7. A capture ends at 10:01 and the expected event occurs at 10:02. Can the trace disprove it?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

No. The event lies outside the observation window. Preserve the window and seek an authorized aligned capture rather than treating absence as proof. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Identify the event outside the capture.
  • Require an aligned observation window.

8. An event is unsupported and no counter is reported. Why is zero an incorrect replacement?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The event was not measured, so its value is unknown rather than observed zero. Preserve the support failure and use an approved documented alternative for the question. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Mark the event unavailable.
  • Do not report zero events.

9. Collection is denied by permission policy. What is the appropriate next step?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Preserve the error and request scoped authorized collection or an approved alternative. Do not lower host security merely to make the tool run, and report the missing evidence. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Record permission denial and missing data.
  • Use an authorized least-privilege process.

10. A trace samples 1% of eligible events and a rare event is absent. Is nonoccurrence proven?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

No. The event could have occurred without being selected. Report the sampling rule and coverage, and design a suitable bounded observation if a stronger claim is needed. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Identify the 1% sampling selection.
  • Do not infer nonoccurrence from absence.

11. A collector generated 1000 records and lost 100 in the same interval. Calculate the loss fraction.

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Divide 100 by 1000 to get 0.10 or 10%. This says how many were lost under the stated counts, not whether those missing events were slow or fast. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Calculate 10% loss.
  • State that missing-event latency is unknown.

12. A retained histogram has a fast p99 but reports 100 lost records. What can be concluded?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Only the retained population’s p99 is described; loss may hide slow events. Report the loss and repeat a bounded observation with lower volume if it still answers the question. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Limit the claim to retained records.
  • Report loss and assess collection bias.

13. A reader can process 10,000 events/s while the producer emits 100,000/s. What should the plan address?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The producer exceeds reader capacity tenfold, risking buffer loss and perturbation. Define rate and loss budgets, filter or aggregate, and verify the remaining signal in a lab. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Compare producer and reader capacity.
  • Define loss limits and a lower-volume plan.

14. Eight of 100 start events fail map insertion. Why are the 92 matched durations incomplete?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The failed starts cannot be correlated into the retained duration population. Report insertion failures and investigate map capacity or key design before generalizing. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Record eight insertion failures.
  • Do not generalize 92 durations to all 100.

15. A PID-only key is reused by a new process while an old map entry remains. What risk follows?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

A new completion can pair with an unrelated old start and produce a false duration. Include supported lifetime and operation identity and define bounded cleanup. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Identify the two process lifetimes.
  • Prevent stale-entry pairing with identity and cleanup.

16. A latency histogram plan proposes storing full request bodies. Is that necessary for the stated question?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Not for the stated timing distribution. Collect the minimum authorized timing and correlation fields, and define access, retention, and deletion with the data owner. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Exclude unnecessary request bodies.
  • Define authorized access and retention.

17. A reader exits while its probe remains attached. What lifecycle plan is missing?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Define a stop and detach procedure for reader failure, plus ownership and cleanup of maps and output. Test teardown in a disposable authorized environment before collection. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Specify detach on reader failure.
  • Specify owned-state cleanup and its lab test.

18. A kernel span and slow client request occur nearby but lack a shared correlation ID. What can be claimed?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The timing suggests a hypothesis but does not establish that the span belongs to that request. Correlate authorized identity, event semantics, and timestamps before assigning causation. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Record the absence of a request link.
  • Require matched identity and timing.

19. The allowed observer p99 increase is 5 ms, but measured increase is 15 ms. What next?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

The budget is exceeded by 10 ms. Stop the disposable collection and follow its detach and rollback plan; then consider a lower-volume observation that still answers the question. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Calculate the 10 ms budget excess.
  • Stop and follow detach and rollback.

20. After an authorized fix, how should a follow-up observation compare with the baseline?

Show hint

Identify the scope, selection, loss, and observer cost described by the evidence.

Show worked solution

Use equivalent workload, timing boundary, collector settings, and outcome definitions where feasible. Verify the user operation, error rate, suspected resource signal, overhead, and loss together. Record the observation context and identity before testing the result in an authorized lab.

Check your solution

  • Match workload and collection boundaries.
  • Verify user outcome, signal, overhead, and loss.

Key takeaways

  • Compare observer impact and record missing data.
  • Define scope, privacy, and stop conditions before collection.
  • An event absent from incomplete data is not proof of nonoccurrence.
  • Measure observer cost under matched work and retain loss.
  • Define scope, privacy, stop, and detach before collection.

Official references