Quantcast
Channel: What do 'real', 'user' and 'sys' mean in the output of time(1)? - Stack Overflow
Browsing latest articles
Browse All 9 View Live

Image may be NSFW.
Clik here to view.

Answer by Ciro Santilli 新疆改造中心法轮功六四事件 for What do 'real', 'user' and 'sys'...

Minimal runnable POSIX C examples To make things more concrete, I want to exemplify a few extreme cases of time with some minimal C test programs. All programs can be compiled and run with: gcc -ggdb3...

View Article



Answer by varun for What do 'real', 'user' and 'sys' mean in the output of...

• real: The actual time spent in running the process from start to finish, as if it was measured by a human with a stopwatch • user: The cumulative time spent by all the CPUs during the computation •...

View Article

Answer by susenj for What do 'real', 'user' and 'sys' mean in the output of...

Real shows total turn-around time for a process; while User shows the execution time for user-defined instructions and Sys is for time for executing system calls! Real time includes the waiting time...

View Article

Answer by lensovet for What do 'real', 'user' and 'sys' mean in the output of...

To expand on the accepted answer, I just wanted to provide another reason why real ≠ user + sys. Keep in mind that real represents actual elapsed time, while user and sys values represent CPU execution...

View Article

Answer by ConcernedOfTunbridgeWells for What do 'real', 'user' and 'sys' mean...

Real, User and Sys process time statistics One of these things is not like the other. Real refers to actual elapsed time; User and Sys refer to CPU time used only by the process. Real is wall clock...

View Article


What do 'real', 'user' and 'sys' mean in the output of time(1)?

$ time foo real 0m0.003s user 0m0.000s sys 0m0.004s $ What do 'real', 'user' and 'sys' mean in the output of time? Which one is meaningful when benchmarking my app?

View Article

Answer by hakobpogh for What do 'real', 'user' and 'sys' mean in the output...

I want to mention some other scenario when the real-time is much much bigger than user + sys. I've created a simple server which respondes after a long timereal 4.784user 0.01ssys 0.01sthe issue is...

View Article

Answer by Cole for What do 'real', 'user' and 'sys' mean in the output of...

In very simple terms, I like to think about it like this:real is the actual amount of time it took to run the command (as if you had timed it with a stopwatch)user and sys are how much 'work' the CPU...

View Article


Answer by neoedmund for What do 'real', 'user' and 'sys' mean in the output...

Must mention that at least on my AMD Ryzen CPU, the user is always large than real in multi-threaded program(or single threaded program compiled with -O3).eg.real 0m5.815suser 0m8.213ssys 0m0.473s

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images