1N/A * loads.d - print load averages. Written using DTrace (Solaris 10 3/05). 1N/A * These are the same load averages that the "uptime" command prints. 1N/A * The purpose of this script is to demonstrate fetching these values 1N/A * from the DTrace language. 1N/A * $Id: loads.d 3 2007-08-01 10:50:08Z brendan $ 1N/A * SEE ALSO: uptime(1) 1N/A * The first field is the 1 minute average, the second is the 5 minute, 1N/A * and the third is the 15 minute average. The value represents the average 1N/A * number of runnable threads in the system, a value higher than your 1N/A * COPYRIGHT: Copyright (c) 2005 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * 10-Jun-2005 Brendan Gregg Created this. 1N/A * 10-Jun-2005 " " Last update. 1N/A /* fetch load averages */ 1N/A /* print load average */ 1N/A printf(
"%Y, load average: %d.%02d, %d.%02d, %d.%02d\n",