I've been profiling my linux app and in my single threaded build I noticed real/user/sys being 1900/1250/140. If I add up user and sys its 1390 which is far from 1900. 1900-is 510 which is a LARGE percentage.
What's considered as part of sys
? I thought it was all system calls. After measuring some more it appears calling write
takes up 500ms which is much larger than what sys is reporting and seems to be almost the entire missing time.