Queue Delay and Actual Processing Time
A job's elapsed time can include waiting for a worker and the worker's own processing interval.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a loaded run
A task waits 300 milliseconds and then runs for 100. Its combined time is 400 before other overhead. Improving only the computation has a limited effect under this workload. See long elapsed waits and CPU.
Record separate timestamps
Track enqueue, start, and finish events so queues and processing can be compared independently. Event timing and units define what each stamp describes.[1]
Compute waits from native timestamps at the boundary
A job is accepted at time ten, starts at fourteen and completes at seventeen. Queue delay is four and processing duration is three, under the same time basis. Total observed time from acceptance is seven. See latency with queueing.
Accepted 10
Started 14
Completed 17
Wait=4, service=3, response from acceptance=7
Inspect both before increasing worker speed
If waits dominate, admission or capacity policy can matter more than one operation's computation. Across hosts a comparable clock or structured trace is needed. Track jobs that are still waiting at the measurement cutoff.