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

154 lines
13 KiB
HTML

<a name="EN-US_TOPIC_0000001188482104"></a><a name="EN-US_TOPIC_0000001188482104"></a>
<h1 class="topictitle1">GS_WLM_USER_RESOURCE_HISTORY</h1>
<div id="body1579000286216"><p id="EN-US_TOPIC_0000001188482104__p8060118">The <strong id="EN-US_TOPIC_0000001188482104__b1479214292464">GS_WLM_USER_RESOURCE_HISTORY</strong> system table stores information about resources used by users and is valid only on CNs. 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 flushing 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_0000001188482104__p191510331860">Data in the <strong id="EN-US_TOPIC_0000001188482104__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_0000001188482104__table13383122510536" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001188482104__b153581424183016">GS_WLM_USER_RESOURCE_HISTORY</strong> column</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188482104__row17384132525310"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__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_0000001188482104__p53841925165311">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188482104__row3384102585315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__p19384122513537">username</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482104__p2038432565314">text</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p476117264572">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row33844257530"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__p11384162515537">timestamp</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p1338416250537">Timestamp</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row5384142513533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p1238415255539">int</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p1230151411213">Memory size used by a user, in MB.</p>
<ul id="EN-US_TOPIC_0000001188482104__ul1219164617239"><li id="EN-US_TOPIC_0000001188482104__li1519134672314">DN: The memory used by users on the current DN is displayed.</li><li id="EN-US_TOPIC_0000001188482104__li1819184632318">CN: The total memory usage of users on all DNs is displayed.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row138472565315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p5384172555311">int</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p9535163719342">Memory used by the resource pool, in MB. <strong id="EN-US_TOPIC_0000001188482104__b1172874511512">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_0000001188482104__b13728414614">max_dynamic_memory</strong>). A calculation formula is as follows:</p>
<p id="EN-US_TOPIC_0000001188482104__p10418114553919">total_memory = max_dynamic_memory * parent_percent * user_percent</p>
<p id="EN-US_TOPIC_0000001188482104__p142879368281">CN: The sum of maximum available memory on all DNs is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row19384125185319"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p1238462519538">real</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p78541979580">Number of CPU cores in use</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row338517256531"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p18385142565320">int</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p9637161455810">Total number of CPU cores of the Cgroup associated with a user on the node</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row173856255538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p123852025105316">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p19997191819582">Used storage space (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row938519253538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p1338542545317">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p15873233581">Available storage space (unit: KB). <strong id="EN-US_TOPIC_0000001188482104__b190586163019">-1</strong> indicates that the storage space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row93851825195316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p038616258535">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p33864252536">Used temporary storage space (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row6386142517538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p173861025165317">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p560783335811">Available temporary storage space (unit: KB). <strong id="EN-US_TOPIC_0000001188482104__b1888310325317">-1</strong> indicates that the maximum temporary storage space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row23861225175314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p93863252531">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p3176184515820">Used space of operator flushing (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row1238672520533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p538642518532">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p10386152525313">Available storage space for operator flushing (unit: KB). The value <strong id="EN-US_TOPIC_0000001188482104__b63461044345">-1</strong> indicates that the maximum operator flushing space is not limited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row11386725135312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p138720255539">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p143871325165317">Byte traffic of read operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row1738702516533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p19387925165319">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p1638719258530">Byte traffic of write operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row7217163810533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p1621811383538">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p19431194106">Number of read operations in a monitoring period.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row6387112575313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p23871625165316">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p15387225155319">Number of write operations in a monitoring period.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row5387525175314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p93877258538">real</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p9387725115315">Byte rate of read operations in a monitoring period (unit: KB)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188482104__row23871125125316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482104__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_0000001188482104__p638792535313">real</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482104__p23871425175318">Byte rate of write operations in a monitoring period (unit: KB)</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>