xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/loads_example.txt (revision 8450a7c42673d65e3b1f6560d3b6ecd317a6cbe8)
1The following is a demonstration of the loads.d script.
2
3
4Here we run both loads.d and the uptime command for comparison,
5
6   # uptime
7     1:30am  up 14 day(s),  2:27,  3 users,  load average: 3.52, 3.45, 3.05
8
9   # ./loads.d
10   2005 Jun 11 01:30:49,  load average: 3.52, 3.45, 3.05
11
12Both have returned the same load average, confirming that loads.d is
13behaving as expected.
14
15
16The point of loads.d is to demonstrate fetching the same data as uptime
17does, in the DTrace language. It is not intended as a replacement
18or substitute to the uptime(1) command.
19
20