Files
doc-exports/docs/dws/dev/dws_04_1409.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

166 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001916378988"></a><a name="EN-US_TOPIC_0000001916378988"></a>
<h1 class="topictitle1">GS_QUERY_RESOURCE_INFO</h1>
<div id="body0000001916378988"><p id="EN-US_TOPIC_0000001916378988__p8060118">The <strong id="EN-US_TOPIC_0000001916378988__b8528164734119">GS_QUERY_RESOURCE_INFO</strong> view displays the resource information about all running jobs on the current DN. This parameter is supported only by clusters of version 9.1.0 or later.</p>
<div class="note" id="EN-US_TOPIC_0000001916378988__note5311019431"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001916378988__p1779516144319">This view can be queried only on DNs. It is used only for O&amp;M operations to locate faults. You are advised not to use this function.</p>
</div></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001916378988__t040035450d4b45e184c38e8adde2f196" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_QUERY_RESOURCE_INFO</caption><thead align="left"><tr id="EN-US_TOPIC_0000001916378988__r82f1e9e6ba8a432fa0505ca1baae5bf4"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001916378988__ad0171ec93e304971b233fbb24c8c9ca2"><strong id="EN-US_TOPIC_0000001916378988__b8777898284363">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.91%" id="mcps1.3.3.2.4.1.2"><p id="EN-US_TOPIC_0000001916378988__ac3db39da9f5e4d2b9ac752c962df9bab">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.089999999999996%" id="mcps1.3.3.2.4.1.3"><p id="EN-US_TOPIC_0000001916378988__a66dd18c864c54a9ea594b9565b475aec">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001916378988__row10171044132012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p17171124442014">node_name</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p3171344202013">Text</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p01711044152011">Instance name, which contains only DNs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__rc5c6e84192e340e8a4ec24977eb442c0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p894516457173">user_id</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p14137153775218">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p8441981369">User ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__rf45f33f15d924ef58db549cb570c3e44"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p206291548195010">queryid</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p7946174513175">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p194694520174">Internal query ID used for statement execution.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__r3832b3d187c84b9dbdc3d7fcaaddaf1f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p7946174510171">used_mem</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p99461245101714">Int</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p16764918135116">Memory used by the statement on the current DN. The unit is MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row10974113305611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p9846122920511">cpu_time</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p58465294511">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p460043317015">CPU time of a statement on the current DN. The unit is ms.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row457673919562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p20846112975120">used_cpu</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p2846142915113">Double</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1676315183512">Number of CPUs used by the statement on the current DN.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row115231626115613"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p3845102913518">spill_size</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p1884512913516">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p176321820518">Amount of data spilled to disks on the current DN. The default value is <strong id="EN-US_TOPIC_0000001916378988__b9231813154410">0</strong>. The unit is MB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__r780ecffa22eb41b19e125c368a2f51c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p1084515295516">read_bytes</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p1683232925112">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1749171895111">Number of logical read bytes used by the statement on the current DN. The unit is KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row45841812134013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p45841212104014">write_bytes</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p2584171214014">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1782753742711">Number of logical write bytes used by the statement on the current DN. The unit is KB.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row10196123917527"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p11196203925211">read_count</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p181960393522">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p4306115112817">Number of logical reads used by the statement on the current DN.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row1985334318524"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p18853143135210">write_count</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p1785344318526">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p16853114312525">Number of logical writes used by the statement on the current DN.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row32401211535"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p10240151205313">read_speed</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p62408155314">Int</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p52401116536">Logical read rate used by the statement on the current DN. The unit is KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row66974545521"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p17697105435218">write_speed</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p76971454185213">Int</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1293513536281">Logical write rate used by the statement on the current DN. The unit is KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row1393865713521"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p199382572522">curr_iops</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p3938125755215">Int</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p2938115765219">I/O operations per second of the statement on the current DN. It is recorded as a count in a column-store table and as a count of 10,000 in a row-store table.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row21961048195214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p18197134817523">send_pkg</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p111970488525">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p97771740113311">Total number of communication packages sent by a statement across all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row982128195419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p1982162835418">recv_pkg</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p48262820541">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1982192845414">Total number of communication packages received by a statement across all DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row12598165125213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p559935115215">send_bytes</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p582023035517">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p5599951155217">Total sent data of the statement stream, in byte.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row176461424175412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p8646142495418">recv_bytes</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p144151631145517">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p4299142163415">Total received data of the statement stream, in byte.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row5364182113548"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p153641421165413">send_speed</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p8364132114540">Int</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1936482111541">Network sending rate of the statement on the current DN. The unit is KB/s.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001916378988__row14481217145410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001916378988__p248017135419">recv_speed</p>
</td>
<td class="cellrowborder" valign="top" width="19.91%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001916378988__p124818175544">Int</p>
</td>
<td class="cellrowborder" valign="top" width="60.089999999999996%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001916378988__p1386710482298">Network receiving rate of the statement on the current DN. The unit is 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>