doc-exports/docs/dws/dev/dws_04_0567.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

168 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001510283713"></a><a name="EN-US_TOPIC_0000001510283713"></a>
<h1 class="topictitle1">GS_WLM_USER_RESOURCE_HISTORY</h1>
<div id="body1579000286216"><p id="EN-US_TOPIC_0000001510283713__p8060118">The <strong id="EN-US_TOPIC_0000001510283713__b1479214292464">GS_WLM_USER_RESOURCE_HISTORY</strong> system catalog stores information about resources used by users. The data of this table is stored on both CNs and DNs. Each record in the system table indicates the resource usage of a user at a time point, including the memory, number of CPU cores, storage space, temporary space, operator spill space, logical I/O traffic, number of logical I/O times, and logical I/O rate. The memory, CPU, and I/O monitoring items record only the resource usage of complex jobs. </p>
<p id="EN-US_TOPIC_0000001510283713__p191510331860">Data in the <strong id="EN-US_TOPIC_0000001510283713__b369933312486">GS_WLM_USER_RESOURCE_HISTORY</strong> system table comes from the <a href="dws_04_0790.html">PG_TOTAL_USER_RESOURCE_INFO</a> view.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510283713__table13383122510536" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001510283713__b153581424183016">GS_WLM_USER_RESOURCE_HISTORY</strong> column</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510283713__row17384132525310"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001510283713__p143841925115317">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.4.1.2"><p id="EN-US_TOPIC_0000001510283713__p18384102535319">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="65%" id="mcps1.3.3.2.4.1.3"><p id="EN-US_TOPIC_0000001510283713__p53841925165311">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510283713__row3384102585315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p19384122513537">username</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p2038432565314">text</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p476117264572">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row33844257530"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p11384162515537">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p238412514537">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p1338416250537">Timestamp</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row5384142513533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p173841425195312">used_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p1238415255539">int</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p1230151411213">Memory size used by a user, in MB.</p>
<ul id="EN-US_TOPIC_0000001510283713__ul1219164617239"><li id="EN-US_TOPIC_0000001510283713__li1519134672314">DN: The memory used by users on the current DN is displayed.</li><li id="EN-US_TOPIC_0000001510283713__li1819184632318">CN: The total memory usage of users on all DNs is displayed.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row138472565315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p1538462565315">total_memory</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p5384172555311">int</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p9535163719342">Memory used by the resource pool, in MB. <strong id="EN-US_TOPIC_0000001510283713__b1366189943104110">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_0000001510283713__b1643539524104110">max_dynamic_memory</strong>). A calculation formula is as follows:</p>
<p id="EN-US_TOPIC_0000001510283713__p10418114553919">total_memory = max_dynamic_memory * parent_percent * user_percent</p>
<p id="EN-US_TOPIC_0000001510283713__p142879368281">CN: The sum of maximum available memory on all DNs is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row19384125185319"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p83841225155312">used_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p1238462519538">real</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p78541979580">Number of CPU cores in use</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row338517256531"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p203857256534">total_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p18385142565320">int</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p9637161455810">Total number of CPU cores of the Cgroup associated with a user on the node</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row173856255538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p0385202585314">used_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p123852025105316">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p19997191819582">Used storage space (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row938519253538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p638542511535">total_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p1338542545317">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p15873233581">Available storage space (unit: KB). <strong id="EN-US_TOPIC_0000001510283713__b190586163019">-1</strong> indicates that the storage space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row93851825195316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p18385132513536">used_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p038616258535">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p33864252536">Used temporary storage space (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row6386142517538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p15386192555312">total_temp_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p173861025165317">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p560783335811">Available temporary storage space (unit: KB). <strong id="EN-US_TOPIC_0000001510283713__b1888310325317">-1</strong> indicates that the maximum temporary storage space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row23861225175314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p18386925105319">used_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p93863252531">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p3176184515820">Space occupied by operators spilled to disk (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row1238672520533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p1838620257531">total_spill_space</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p538642518532">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p10386152525313">Available storage space for operator spill to disk (unit: KB). The value <strong id="EN-US_TOPIC_0000001510283713__b63461044345">-1</strong> indicates that the space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row11386725135312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p183878251532">read_kbytes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p138720255539">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p143871325165317">Byte traffic of read operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row1738702516533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p1638716250533">write_kbytes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p19387925165319">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p1638719258530">Byte traffic of write operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row7217163810533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p122187382530">read_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p1621811383538">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p19431194106">Number of read operations in a monitoring period.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row6387112575313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p13387325125314">write_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p23871625165316">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p15387225155319">Number of write operations in a monitoring period.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row5387525175314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p5387325185312">read_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p93877258538">real</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p9387725115315">Byte rate of read operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row23871125125316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p1387725145316">write_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p638792535313">real</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p23871425175318">Byte rate of write operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row760264513334"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p2060214533319">send_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p10602154513315">double</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p1660274583310">Network sending rate in a monitoring period, in KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283713__row10209173523410"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283713__p18209143523418">recv_speed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001510283713__p42098352348">double</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001510283713__p1820923518340">Network receiving rate in a monitoring period, in KB/s.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
</div>
</div>