Files
doc-exports/docs/dws/dev/dws_04_1066.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

185 lines
16 KiB
HTML

<a name="EN-US_TOPIC_0000001528942760"></a><a name="EN-US_TOPIC_0000001528942760"></a>
<h1 class="topictitle1">GS_USER_MONITOR</h1>
<div id="body0000001528942760"><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__r82f1e9e6ba8a432fa0505ca1baae5bf4"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001528942760__ad0171ec93e304971b233fbb24c8c9ca2">Column</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_0000001528942760__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_0000001528942760__a66dd18c864c54a9ea594b9565b475aec">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001528942760__row19211712143015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p3189614113013">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row15292164124013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p1929344134012">Name of the resource pool associated with the user</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__rc5c6e84192e340e8a4ec24977eb442c0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p694684511718">Name of the logical cluster the resource pool belongs to. The default value is <strong id="EN-US_TOPIC_0000001528942760__b994715711325">installation</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row193010614334"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p79312612339">Number of sessions initiated by the user, including idle and active sessions</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__r3832b3d187c84b9dbdc3d7fcaaddaf1f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__row1442519260353"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__b270915108426">max_active_statements</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row10974113305611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__row457673919562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__row115231626115613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__r780ecffa22eb41b19e125c368a2f51c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__row1341816452395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p10418114553919">Average memory used by a user on all DNs, in MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row3773164983916"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p1877344983912">Total estimated memory used by running jobs, in MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row940316598395"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__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_0000001528942760__row1467820417418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p376773155913">Average logical I/O read rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row534314102419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p168757329161">Average logical I/O write rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row1620895984712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p152941740191619">Average data sending rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row2218353164816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p3752125241614">Average data receiving rate of a user on all DNs, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row42351222215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p923510221526">Used space of user permanent tables, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row11420105213212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p1142018527213">Maximum space that can be used by user permanent tables, in KB. The value <strong id="EN-US_TOPIC_0000001528942760__b146365102211">-1</strong> indicates that the space size is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row19417249427"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p114187491824">Used space of user temporary tables, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row19796445228"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p10796134518213">Maximum space that can be used by user temporary tables, in KB. The value <strong id="EN-US_TOPIC_0000001528942760__b155971139231">-1</strong> indicates that the space size is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row829423212219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p5294203212212">Used space for flushing intermediate result sets, in KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001528942760__row055632818211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001528942760__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_0000001528942760__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_0000001528942760__p1255615288215">Maximum space that can be used for flushing intermediate result sets, in KB. The value <strong id="EN-US_TOPIC_0000001528942760__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>