IBM infocenter 有很好的例子:
Example 15: Displaying the top EDUsby processor time consumption and displaying EDU stack information
Ifyou issue the db2pd command with the -edus parameteroption, the output lists all engine dispatchable units (EDUs). Outputfor EDUs can be returned at the level of granularity you specify,such as at the instance level or at the member. On Linux and UNIX operatingsystems only, you can also specify the interval parametersuboption so that two snapshots of all EDUs are taken, separated byan interval you specify. When the interval parameteris specified, two additional columns in the output indicate the deltaof processor user time (USR DELTA column)and the delta of processor system time (SYS DELTA column)across the interval.
In the following example, the deltas forprocessor user time and processor system time are given across a five-secondinterval:
$ db2pd -edus interval=5 Database Partition 0 -- Active -- Up 0 days 00:53:29 -- Date 06/04/2010 03:34:59 List of all EDUs for database partition 0 db2sysc PID: 1249522 db2wdog PID: 2068678 EDU ID TID Kernel TID EDU Name USR SYS USR DELTA SYS DELTA ============================================================================================================================= 6957 6957 13889683 db2agntdp (SAMPLE ) 0 58.238506 0.820466 1.160726 0.014721 6700 6700 11542589 db2agent (SAMPLE) 0 52.856696 0.754420 1.114821 0.015007 5675 5675 4559055 db2agntdp (SAMPLE ) 0 60.386779 0.854234 0.609233 0.014304 3088 3088 13951225 db2agntdp (SAMPLE ) 0 80.073489 2.249843 0.499766 0.006247 3615 3615 2887875 db2loggw (SAMPLE) 0 0.939891 0.410493 0.011694 0.004204收起