doc-exports/docs/dws/dev/dws_04_0790.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 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-05-16 07:24:04 +00:00

152 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001188642184"></a><a name="EN-US_TOPIC_0000001188642184"></a>
<h1 class="topictitle1">PG_TOTAL_USER_RESOURCE_INFO</h1>
<div id="body1545358353028"><p id="EN-US_TOPIC_0000001188642184__p8060118"><strong id="EN-US_TOPIC_0000001188642184__b1762906132617">PG_TOTAL_USER_RESOURCE_INFO</strong> displays the resource usage of all users. Only administrators can query this view. This view is valid only if <strong id="EN-US_TOPIC_0000001188642184__b18904526121217">use_workload_manager</strong> is set to <strong id="EN-US_TOPIC_0000001188642184__b921311366572">on</strong>. </p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188642184__t95ae1da4e5134a57beb511cde32be320" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001188642184__b423793114559">PG_TOTAL_USER_RESOURCE_INFO</strong> columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188642184__rc9087219835147ea942ebfe0cd821a77"><th align="left" class="cellrowborder" valign="top" width="20.64%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188642184__ad43c1679bbef459dbfa097f861b361e0">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.810000000000002%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001188642184__ad8315d8f20fb4f8cb857c2ea92bc00ab">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="58.550000000000004%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188642184__a32785708bd7c49a0b6569a74edcfab95">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188642184__r39c3fec6d15c4222829027569830ebea"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p10103102071217">username</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p04241417123">name</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p639181441214">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__rc16f19daf1c949f2ba6aefc584cfd3aa"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1110652110121">used_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p193412140122">integer</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p201911746142310">Memory size used by a user, in MB.</p>
<ul id="EN-US_TOPIC_0000001188642184__ul1219164617239"><li id="EN-US_TOPIC_0000001188642184__li1519134672314">DN: The memory used by users on the current DN is displayed.</li><li id="EN-US_TOPIC_0000001188642184__li1819184632318">CN: The total memory usage of users on all DNs is displayed.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__rc19fd6cc7c634ecfb63a20bf96d2ee16"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1275719218122">total_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p226191461218">integer</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p10418114553919">Memory used by the resource pool, in MB. <strong id="EN-US_TOPIC_0000001188642184__b1327914331216">0</strong> indicates that the available memory is not limited and depends on the maximum memory available in the database (<strong id="EN-US_TOPIC_0000001188642184__b8279113161215">max_dynamic_memory</strong>). A calculation formula is as follows:</p>
<p id="EN-US_TOPIC_0000001188642184__p1497516386356">total_memory = max_dynamic_memory * parent_percent * user_percent</p>
<p id="EN-US_TOPIC_0000001188642184__p1010411298271">CN: The sum of maximum available memory on all DNs is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row0970538191711"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p9971538191717">used_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p797217389175">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p397263812176">Number of CPU cores in use. Only the CPU usage of complex jobs in the non-default resource pool is collected, and the value is the CPU usage of the related cgroup.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row64614276180"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p12894125171811">total_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p10894225181817">integer</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p188951125151817">Total number of CPU cores of the Cgroup associated with a user on the node</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row10451327201810"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1689592518180">used_space</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p12895425161810">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p489502517187">Used permanent table storage space (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row134412731818"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1089592520188">total_space</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p14895192581819">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p13895112513181">Available storage space (unit: KB). <strong id="EN-US_TOPIC_0000001188642184__b190586163019">-1</strong> indicates that the storage space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row1221153651019"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1122123661011">used_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p7222183681018">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p3222103616102">Used temporary table storage space (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row36971246151013"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p76971146151017">total_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p8698194610108">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p1269824641011">Available temporary table storage space (unit: KB). <strong id="EN-US_TOPIC_0000001188642184__b476693254">-1</strong> indicates that the storage space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row17917552151015"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p199181152111020">used_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p8918185210105">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p13918185217106">Size of the used operator flushing space, in KB</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row1265235801014"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1653115816103">total_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p1065305881013">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p465325817104">Size of the available operator flushing space, in KB. The value <strong id="EN-US_TOPIC_0000001188642184__b482018157454">-1</strong> indicates that the operator flushing space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row738820015471"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p8388308478">read_kbytes</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p638811016471">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p8277857114811">CN: total number of bytes read by a user's complex jobs on all DNs in the last 5 seconds. The unit is KB.</p>
<p id="EN-US_TOPIC_0000001188642184__p1427717571481">DN: total number of bytes read by a user's complex jobs from the instance startup time to the current time. The unit is KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row116144300479"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p156151330184710">write_kbytes</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p1161513074715">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p19381315114918">CN: total number of bytes written by a user's complex jobs on all DNs in the last 5 seconds. The unit is KB.</p>
<p id="EN-US_TOPIC_0000001188642184__p13811215134915">DN: total number of bytes written by a user's complex jobs from the instance startup time to the current time. The unit is KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row148861925174720"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1188642564712">read_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p08861525174711">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p19829123518498">CN: total number of read times of a user's complex jobs on all DNs in the last 5 seconds. Unit: count.</p>
<p id="EN-US_TOPIC_0000001188642184__p082910356494">DN: total number of read times of a user's complex jobs from the instance startup time to the current time. Unit: count.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row111804224475"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p111801422114718">write_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p11180322104720">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p17947104213491">CN: total number of write times of a user's complex jobs on all DNs in the last 5 seconds. Unit: count.</p>
<p id="EN-US_TOPIC_0000001188642184__p394714214917">DN: total number of write times of a user's complex jobs from the instance startup time to the current time. Unit: count.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row132164476460"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p1216147144613">read_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p021614714615">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p8976164744917">CN: average read rate of a user's complex jobs on a single DN in the last 5 seconds. (Unit: KB/s)</p>
<p id="EN-US_TOPIC_0000001188642184__p1697611471499">DN: indicates the average read rate of a user's complex jobs on a single DN in the last 5 seconds. (Unit: KB/s)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642184__row208103358460"><td class="cellrowborder" valign="top" width="20.64%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188642184__p12810113554613">write_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20.810000000000002%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188642184__p158106353462">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="58.550000000000004%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188642184__p17249157134919">CN: average write rate of a user's complex jobs on a single DN in the last 5 seconds. (Unit: KB/s)</p>
<p id="EN-US_TOPIC_0000001188642184__p82491257104910">DN: average write rate of a user's complex jobs on a single DN in the last 5 seconds. (Unit: KB/s)</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>