summaryrefslogtreecommitdiffstats
path: root/Examples/pidpersec_example.txt
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committergnn <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit4297c1b2d07fec7f50b70e26e3adb4d062b19e15 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Examples/pidpersec_example.txt
parent111c75a23278cd9317f0a13867c22ee0f6c95b26 (diff)
downloadFreeBSD-src-4297c1b2d07fec7f50b70e26e3adb4d062b19e15.zip
FreeBSD-src-4297c1b2d07fec7f50b70e26e3adb4d062b19e15.tar.gz
Add the remaining scripts from the DTraceToolkit, version 0.99, to the
vendor tree. http://www.brendangregg.com/dtrace.html#DTraceToolkit
Diffstat (limited to 'Examples/pidpersec_example.txt')
-rw-r--r--Examples/pidpersec_example.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/Examples/pidpersec_example.txt b/Examples/pidpersec_example.txt
new file mode 100644
index 0000000..11f6bd7
--- /dev/null
+++ b/Examples/pidpersec_example.txt
@@ -0,0 +1,33 @@
+The following is a demonstration of the pidpersec.d script.
+
+
+Here the program is run on an idle system,
+
+ # ./pidpersec.d
+ TIME LASTPID PID/s
+ 2005 Jun 9 22:15:09 3010 0
+ 2005 Jun 9 22:15:10 3010 0
+ 2005 Jun 9 22:15:11 3010 0
+ 2005 Jun 9 22:15:12 3010 0
+ 2005 Jun 9 22:15:13 3010 0
+ ^C
+
+This shows that there are now new processes being created.
+
+
+
+Now the script is run on a busy system, that is creating many processes
+(which happen to be short-lived),
+
+ # ./pidpersec.d
+ TIME LASTPID PID/s
+ 2005 Jun 9 22:16:30 3051 13
+ 2005 Jun 9 22:16:31 3063 12
+ 2005 Jun 9 22:16:32 3073 10
+ 2005 Jun 9 22:16:33 3084 11
+ 2005 Jun 9 22:16:34 3096 12
+ ^C
+
+Now we can see that there are over 10 new processes created each second.
+The value for lastpid confirms the rates printed.
+
OpenPOWER on IntegriCloud