Files
doc-exports/docs/dws/dev/dws_04_1066.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

185 lines
16 KiB
HTML

<a name="EN-US_TOPIC_0000001811610361"></a><a name="EN-US_TOPIC_0000001811610361"></a>
<h1 class="topictitle1">GS_USER_MONITOR</h1>
<div id="body0000001528942760"><p id="EN-US_TOPIC_0000001811610361__p779631671713">GS_USER_MONITOR displays all users' job running and resource usage information. This view can be queried only on CNs. This view is supported only by clusters of 8.2.1.100 and later versions.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001811610361__t040035450d4b45e184c38e8adde2f196" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_USER_MONITOR columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001811610361__r82f1e9e6ba8a432fa0505ca1baae5bf4"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001811610361__ad0171ec93e304971b233fbb24c8c9ca2"><strong id="EN-US_TOPIC_0000001811610361__b189295319643618">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.18%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001811610361__ac3db39da9f5e4d2b9ac752c962df9bab">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="68.82000000000001%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001811610361__a66dd18c864c54a9ea594b9565b475aec">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001811610361__row19211712143015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p191881114163011">usename</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p818911493014">Name</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p3189614113013">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row15292164124013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p1529316410409">rpname</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p82932434013">Name</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p1929344134012">Name of the resource pool associated with the user</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__rc5c6e84192e340e8a4ec24977eb442c0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p894516457173">nodegroup</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p14137153775218">Name</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p694684511718">Name of the logical cluster the resource pool belongs to. The default value is <strong id="EN-US_TOPIC_0000001811610361__b994715711325">installation</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row193010614334"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p1093013619334">session_count</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p293117610337">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p79312612339">Number of sessions initiated by the user, including idle and active sessions</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__r3832b3d187c84b9dbdc3d7fcaaddaf1f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p7946174510171">active_count</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p99461245101714">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p18262151601">Number of active sessions initiated by the user, that is, the number of sessions that are performing queries.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row1442519260353"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p1042542673519">global_wait</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p11425132673518">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p16426826153513">Number of jobs that are queued because the number of concurrent jobs on a single CN exceeds the value of <strong id="EN-US_TOPIC_0000001811610361__b270915108426">max_active_statements</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row10974113305611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p09741833175613">fast_run</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p1497414333566">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p19974183310564">Number of jobs that are running on the fast lane of the resource pool among all jobs executed by the user.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row457673919562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p35765399565">fast_wait</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p057615399569">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p14576133945617">Number of jobs queued in the fast lane of the resource pool among all jobs executed by the user.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row115231626115613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p10523526135617">slow_run</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p175231267567">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p8523426145613">Number of jobs that are running on the slow lane of the resource pool among all jobs executed by the user.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__r780ecffa22eb41b19e125c368a2f51c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p12946194561713">slow_wait</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p794614456177">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p1192335945914">Number of jobs queued in the slow lane of the resource pool among all jobs executed by the user.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row1341816452395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p4418104533910">used_mem</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p8418124518397">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p10418114553919">Average memory used by a user on all DNs, in MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row3773164983916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p1577304973910">estimate_mem</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p677384916393">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p1877344983912">Total estimated memory used by running jobs, in MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row940316598395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p893273911443">used_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p793213944419">Double precision</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p5932039114412">Average number of CPU cores used by a user on all DNs. If a single node contains multiple DNs, the number of CPU cores used by a user on the node must be multiplied by the number of DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row1467820417418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p167874164113">read_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p13678124104119">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p376773155913">Average logical I/O read rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row534314102419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p7343510104111">write_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p13343141013417">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p168757329161">Average logical I/O write rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row1620895984712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p1420819597476">send_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p3208259184712">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p152941740191619">Average data sending rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row2218353164816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p521865324820">recv_speed</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p1821805310487">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p3752125241614">Average data receiving rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row42351222215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p22358220213">used_space</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p723532213210">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p923510221526">Used space of user permanent tables, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row11420105213212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p842035211217">space_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p2420115218212">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p1142018527213">Maximum space that can be used by user permanent tables, in KB. The value <strong id="EN-US_TOPIC_0000001811610361__b146365102211">-1</strong> indicates that the space size is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row19417249427"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p12417204918214">used_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p19417154917212">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p114187491824">Used space of user temporary tables, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row19796445228"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p9796184519214">temp_space_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p4796445329">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p10796134518213">Maximum space that can be used by user temporary tables, in KB. The value <strong id="EN-US_TOPIC_0000001811610361__b155971139231">-1</strong> indicates that the space size is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row829423212219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p172942321029">used_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p13294193218215">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p5294203212212">Used space for flushing intermediate result sets, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001811610361__row055632818211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610361__p6556152817215">spill_space_limit</p>
</td>
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001811610361__p15567282213">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="68.82000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001811610361__p1255615288215">Maximum space that can be used for flushing intermediate result sets, in KB. The value <strong id="EN-US_TOPIC_0000001811610361__b132717144246">-1</strong> indicates that the space size is not limited.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>