<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using TDC to analyse Disk Queue Length in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6882900#M103913</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are experiencing some puctual performance problems and suspect it is related with disk.&lt;/P&gt;&lt;P&gt;I would like to get info from MONITOR DISK /ITEM=QUEUE /INT=1 in a CSV format.&lt;/P&gt;&lt;P&gt;I tried TDC tool and TDC API, but I cannot find any field showing disk queue length.&lt;/P&gt;&lt;P&gt;I thought it should be TDC_DSK_QLEN as shown in&amp;nbsp;SYS$COMMON:[TDC.SDK.HEADERS]TDC_DSK.H but it is always 0 in all captures, while MONITOR shows values different from 0.&lt;/P&gt;&lt;P&gt;Any idea how to get disk queue length?&lt;/P&gt;&lt;P&gt;More info:&lt;/P&gt;&lt;PRE&gt;    /*
    ** TDC_DSK_QLEN [C]: the value returned by SYS$GETSPI for item
    ** SPI$_DISKS.
    ** This is the accumulated count of queued I/O operations to the volume
    ** (those which could not be immediately performed).
    ** Average response time can be derived from this value and TDC_DSK_OPCNT.
    */
    TDC_DSK_QLEN,&lt;/PRE&gt;&lt;PRE&gt;TDC&amp;gt; show version


TDC$CP: TDC$CP, V2.3-30020 for HP OpenVMS (I64) V8.3, 24-Jun-2009:06:46:39
TDC$APISHR: TDC$APISHR, V2.3-30020 for HP OpenVMS (I64) V8.3, 24-Jun-2009:06:46:39
TDC$LIBSHR: TDC$LIBSHR, V2.3-30020 for HP OpenVMS (I64) V8.3, 24-Jun-2009:06:46:39
TDC_EXEC_C: TDC_EXEC_C$I_V830-0203-0020.EXE&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Jul 2016 08:09:11 GMT</pubDate>
    <dc:creator>Francisco Hermida</dc:creator>
    <dc:date>2016-07-28T08:09:11Z</dc:date>
    <item>
      <title>Using TDC to analyse Disk Queue Length</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6882900#M103913</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are experiencing some puctual performance problems and suspect it is related with disk.&lt;/P&gt;&lt;P&gt;I would like to get info from MONITOR DISK /ITEM=QUEUE /INT=1 in a CSV format.&lt;/P&gt;&lt;P&gt;I tried TDC tool and TDC API, but I cannot find any field showing disk queue length.&lt;/P&gt;&lt;P&gt;I thought it should be TDC_DSK_QLEN as shown in&amp;nbsp;SYS$COMMON:[TDC.SDK.HEADERS]TDC_DSK.H but it is always 0 in all captures, while MONITOR shows values different from 0.&lt;/P&gt;&lt;P&gt;Any idea how to get disk queue length?&lt;/P&gt;&lt;P&gt;More info:&lt;/P&gt;&lt;PRE&gt;    /*
    ** TDC_DSK_QLEN [C]: the value returned by SYS$GETSPI for item
    ** SPI$_DISKS.
    ** This is the accumulated count of queued I/O operations to the volume
    ** (those which could not be immediately performed).
    ** Average response time can be derived from this value and TDC_DSK_OPCNT.
    */
    TDC_DSK_QLEN,&lt;/PRE&gt;&lt;PRE&gt;TDC&amp;gt; show version


TDC$CP: TDC$CP, V2.3-30020 for HP OpenVMS (I64) V8.3, 24-Jun-2009:06:46:39
TDC$APISHR: TDC$APISHR, V2.3-30020 for HP OpenVMS (I64) V8.3, 24-Jun-2009:06:46:39
TDC$LIBSHR: TDC$LIBSHR, V2.3-30020 for HP OpenVMS (I64) V8.3, 24-Jun-2009:06:46:39
TDC_EXEC_C: TDC_EXEC_C$I_V830-0203-0020.EXE&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:09:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6882900#M103913</guid>
      <dc:creator>Francisco Hermida</dc:creator>
      <dc:date>2016-07-28T08:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using TDC to analyse Disk Queue Length</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6883148#M103914</link>
      <description>&lt;P&gt;There is little information here for us to coment much, but...&lt;/P&gt;&lt;P&gt;Other than Monitor showing a queue length of &amp;gt;0 on occasion, what is the performance problem you are seeing?&lt;/P&gt;&lt;P&gt;It is normal to see non-zero queue lengths for short periods when applications get "synch'd" and there is an overwhelming amount of I/O at a time. &amp;nbsp;If the queues persist, than there is likely a problem. &amp;nbsp;Are the queues always non-zero or just once in a while? &amp;nbsp;It is possible that the TDC collection period is such that it is not seeing the non-zero queues.&lt;/P&gt;&lt;P&gt;Gather monitor data (or TDC) for a longer period at perhaps a shorter collection interval and analyze the data. &amp;nbsp;Look for periodic instances of non-zero queues.&lt;/P&gt;&lt;P&gt;Any additional information you can provide about the environment will help too. &amp;nbsp;For example: machine type, memory size, OpenVMS version, network software and version etc.&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6883148#M103914</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2016-07-28T16:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using TDC to analyse Disk Queue Length</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6883623#M103915</link>
      <description>&lt;P&gt;Ignoring that the CSV format is more arcane and problematic and incompatible than some&amp;nbsp;folks&amp;nbsp;might realize, the free &lt;A href="http://h71000.www7.hp.com/openvms/products/t4/download.html" target="_blank"&gt;HPE T4 tool&lt;/A&gt; can extract this and other data from data recorded by MONITOR. &amp;nbsp; &amp;nbsp;Or MONITOR can record data and &lt;A href="http://h71000.www7.hp.com/doc/84final/6048/6048pro_contents_006.html#toc_appendix_h" target="_blank"&gt;the format of the MONITOR data is documented in the manuals&lt;/A&gt;, if you want to put together&amp;nbsp;some code to open the data file and use &lt;A href="http://labs.hoffmanlabs.com/node/644" target="_blank"&gt;libcsv&lt;/A&gt; or such.&lt;/P&gt;&lt;P&gt;exe$getspi is undocumented, unsupported and is somewhat sketchy as interfaces go, and is used underneath MONITOR. &amp;nbsp; &amp;nbsp;You'll usually need the source listings or a fair amount of rummaging to get that to work. &amp;nbsp; With some coding errors in the calling code, an occasional system crash in exe$getspi wouldn't surprise me, either. &amp;nbsp; Not an approach I'd particularly recommend as easy or maintainable or compatible, and I'd suggest avoiding debugging related application&amp;nbsp;code on a production server.&lt;/P&gt;&lt;P&gt;The documented and supported version of that exe$getspi API is sys$getrmi. &amp;nbsp;Unfortunately AFAIK that does not report device I/O statistics. &amp;nbsp;That's an omission that VSI might consider reso&lt;/P&gt;&lt;P&gt;Another alternative that's sometimes useful for these is SNMP (unfortunately SNMPv2, insecure), but I don't see the disk queue length information available from that, either.&lt;/P&gt;&lt;P&gt;TL;DR: use MONITOR to record the data, and open and process the MONITOR data, and generate CSV yourself. &amp;nbsp; Reading the data file is a slog, but everything necessary for that code&amp;nbsp;is available and documented, and there may be (are?) examples posted around the 'net. &amp;nbsp; Or use T4, which does most of this slog for you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 22:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6883623#M103915</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2016-07-29T22:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using TDC to analyse Disk Queue Length</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6883730#M103916</link>
      <description>&lt;P&gt;Thank you, I will probably give an opportunity to T4 and friends. However, TDC is documented and is installed as a layered product in new versions of OpenVMS by default. I thought it would be the official way of getting system performance information.&lt;/P&gt;&lt;P&gt;Moreover, getting performance information into a text file (CSV or whatever) is just the first step. By using TDC API, I was able to send live process performance data via the network to a sort of central performance monitoring system where it can be stored.&lt;/P&gt;&lt;P&gt;I have only one mirrored disk in my system, so writing MONITOR data into a disk which I suspect is slowing down the system is not my desirable option. The problem is puntual so I need to log continuosly each process Direct I/O and disk queue length and operation rate, and afterwards perform an offine analysis.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 22:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-tdc-to-analyse-disk-queue-length/m-p/6883730#M103916</guid>
      <dc:creator>Francisco Hermida</dc:creator>
      <dc:date>2016-07-30T22:21:45Z</dc:date>
    </item>
  </channel>
</rss>

