diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-03-08 10:16:54 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-03-08 10:16:54 +0100 |
commit | 5ca9e5b8b990f7539a3e312fa33e09bd21c228c0 (patch) | |
tree | 6e0e939e252886bc79bbbafc5d79b2e021de616f /erts/doc/src/erlang.xml | |
parent | e19f2fb347fb29ce37be6acf1d4e6b5d64f4b84a (diff) | |
download | otp-5ca9e5b8b990f7539a3e312fa33e09bd21c228c0.tar.gz otp-5ca9e5b8b990f7539a3e312fa33e09bd21c228c0.tar.bz2 otp-5ca9e5b8b990f7539a3e312fa33e09bd21c228c0.zip |
doc: Rewording of scheduler_wall_time
Diffstat (limited to 'erts/doc/src/erlang.xml')
-rw-r--r-- | erts/doc/src/erlang.xml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 922d20bb82..cd95a6a312 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -4939,7 +4939,8 @@ true</pre> <c>{SchedulerId, ActiveTime, TotalTime}]</c>, where <c>SchedulerId</c> is an integer id of the scheduler, <c>ActiveTime</c> is the duration the scheduler has been busy, <c>TotalTime</c> is the total time duration since <seealso marker="#system_flag_scheduler_wall_time">scheduler_wall_time</seealso> - activation. The time unit is not defined and may be subject to change. + activation. The time unit is not defined and may be subject to change + between releases, operating systems and system restarts. <c>scheduler_wall_time</c> should only be used to calculate relative values for scheduler-utilization. <c>ActiveTime</c> can never exceed <c>TotalTime</c>. </p> @@ -4947,7 +4948,8 @@ true</pre> <p>The definition of a busy scheduler is when it is not idle or not scheduling (selecting) a process or port, meaning; executing process code, executing linked-in-driver or NIF code, executing - built-in-functions or any other runtime handling, garbage collecting or handling any other memory management. + built-in-functions or any other runtime handling, garbage collecting + or handling any other memory management. </p> <p> @@ -4980,7 +4982,7 @@ ok {7,0.973237033077876}, {8,0.9741297293248656}] </pre> - <p>Using the same snapshot to calculate a total scheduler-utilization.</p> + <p>Using the same snapshots to calculate a total scheduler-utilization.</p> <pre> > <input>{A, T} = lists:foldl(fun({{_, A0, T0}, {_, A1, T1}}, {Ai,Ti}) -> {Ai + (A1 - A0), Ti + (T1 - T0)} end, {0, 0}, lists:zip(Ts0,Ts1)), A/T.</input> |