forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
151 lines
12 KiB
HTML
151 lines
12 KiB
HTML
<a name="EN-US_TOPIC_0000001145894437"></a><a name="EN-US_TOPIC_0000001145894437"></a>
|
|
|
|
<h1 class="topictitle1">GS_WLM_USER_RESOURCE_HISTORY</h1>
|
|
<div id="body1579000286216"><p id="EN-US_TOPIC_0000001145894437__p8060118">The <strong id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p191510331860">Data in the <strong id="EN-US_TOPIC_0000001145894437__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_0000001145894437__table13383122510536" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001145894437__b153581424183016">GS_WLM_USER_RESOURCE_HISTORY</strong> column</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145894437__row17384132525310"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__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_0000001145894437__p53841925165311">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145894437__row3384102585315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__p19384122513537">username</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894437__p2038432565314">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p476117264572">Username</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row33844257530"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__p11384162515537">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p1338416250537">Timestamp</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row5384142513533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p1238415255539">int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p18324104815572">Specifies the used memory (unit: MB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row138472565315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p5384172555311">int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p117021753155717">Available memory (unit: MB). <strong id="EN-US_TOPIC_0000001145894437__b79824436283">0</strong> indicates that the available memory is not limited and depends on the maximum memory available in the database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row19384125185319"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p1238462519538">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p78541979580">Number of CPU cores in use</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row338517256531"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p18385142565320">int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p9637161455810">Total number of CPU cores of the Cgroup associated with a user on the node</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row173856255538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p123852025105316">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p19997191819582">Used storage space (unit: KB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row938519253538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p1338542545317">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p15873233581">Available storage space (unit: KB). <strong id="EN-US_TOPIC_0000001145894437__b190586163019">-1</strong> indicates that the storage space is not limited.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row93851825195316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p038616258535">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p33864252536">Used temporary storage space (unit: KB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row6386142517538"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p173861025165317">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p560783335811">Available temporary storage space (unit: KB). <strong id="EN-US_TOPIC_0000001145894437__b1888310325317">-1</strong> indicates that the maximum temporary storage space is not limited.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row23861225175314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p93863252531">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p3176184515820">Used space of operator flushing (unit: KB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row1238672520533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p538642518532">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p10386152525313">Available storage space for operator flushing (unit: KB). The value <strong id="EN-US_TOPIC_0000001145894437__b63461044345">-1</strong> indicates that the maximum operator flushing space is not limited.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row11386725135312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p138720255539">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p143871325165317">Byte traffic of read operations in a monitoring period (unit: KB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row1738702516533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p19387925165319">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p1638719258530">Byte traffic of write operations in a monitoring period (unit: KB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row7217163810533"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p1621811383538">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p19431194106">Number of read operations in a monitoring period.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row6387112575313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p23871625165316">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p15387225155319">Number of write operations in a monitoring period.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row5387525175314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p93877258538">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__p9387725115315">Byte rate of read operations in a monitoring period (unit: KB)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145894437__row23871125125316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894437__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_0000001145894437__p638792535313">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894437__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>
|
|
|