wfjm / w11

PDP-11/70 CPU core and SoC
https://wfjm.github.io/home/w11/
GNU General Public License v3.0
119 stars 18 forks source link

time tbrun does not report correct CPU time #31

Open wfjm opened 2 years ago

wfjm commented 2 years ago

A time tbrun command does not report the correct CPU time, example

time nice tbrun -j 4 -nomake -all
  tbrun-I: all tests passed, 102 tests selected from 102 found
  real 6m46.345s   user 2m14.553s   sys 0m11.417s

The tbrun command ran for more than 6 minutes in 4 parallel threads, usually with 100% CPU time.
One expects a total CPU of about 4*6=24 minutes, time reports only 2 minutes.
Likely some wait harvesting issue.