<?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 Re: questions about TUSC ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063931#M437360</link>
    <description>A. Clay,&lt;BR /&gt;&lt;BR /&gt;Few open-read-write-close exists here. I'll put the tusc to an output file and awk the result in good shape. Thanks so much for your guidance.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jeff</description>
    <pubDate>Mon, 20 Aug 2007 15:17:59 GMT</pubDate>
    <dc:creator>Jeff.Z</dc:creator>
    <dc:date>2007-08-20T15:17:59Z</dc:date>
    <item>
      <title>questions about TUSC ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063927#M437356</link>
      <description>(1) want to trace a certain pid and see the "Number of READs" to a file(sqlus.msb)&lt;BR /&gt;&lt;BR /&gt;(2) need the command duration of the pid that being traced&lt;BR /&gt;&lt;BR /&gt;How can I use tusc to achieve this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jeff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Aug 2007 13:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063927#M437356</guid>
      <dc:creator>Jeff.Z</dc:creator>
      <dc:date>2007-08-20T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: questions about TUSC ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063928#M437357</link>
      <description>In almost all cases, duplicate runs of the same executable/script will reuse the same file descriptors. Unless you have a compelling reason to attach to a running process then I would let tusc run the process. e.g. tusc -o myoutfile my.exe one two three and then examine the outputfile for the open("sqlplus.msb") call. That will give you the file descriptor. You can then do another tusc and specify -dfdes to only show system calls with that file descriptor.</description>
      <pubDate>Mon, 20 Aug 2007 13:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063928#M437357</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-20T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: questions about TUSC ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063929#M437358</link>
      <description>A. Clay,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;from what I understand, first direct the pid's call to a output file and look for the FD of open(sqlus.msb), e.g. 12&lt;BR /&gt;tusc -ccc -r all  -b 512  -f -n -o /bl/sort/tusc.out.Mps -p -T " " -v   27011&lt;BR /&gt;&lt;BR /&gt;then do a tusc again, upon the FD (12)&lt;BR /&gt;&lt;BR /&gt;the summary number of Syscall read is what I want, correct?&lt;BR /&gt;&lt;BR /&gt;Syscall                     Seconds       Calls      Errors&lt;BR /&gt;read                           0.48        4580&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Jeff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Aug 2007 14:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063929#M437358</guid>
      <dc:creator>Jeff.Z</dc:creator>
      <dc:date>2007-08-20T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: questions about TUSC ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063930#M437359</link>
      <description>Yes, that should work but there is a possible gotcha. I am making the assumption that this process opens this file and keeps it open. If that's the case, then fdes 12 (for example) will always refer to this file but the process could open the file, read and/or write to it, and close the file and then lather, rinse, repeat so that the same file might use different file descriptoes. It is also possible that the same file is open()'ed more than once concurrently by the process. You have to example the tusc output carefully to see how the file descriptors are used. The open() system call will return a small integer on success; these small integers are the file descriptors.&lt;BR /&gt;&lt;BR /&gt;You may find it simpler to launch the process under tusc, specify an output file using -o, and let the process run to completion. You then process the tusc output file using awk or Perl or even vi plus your eyeball to gather the statistics you are looking for.</description>
      <pubDate>Mon, 20 Aug 2007 15:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063930#M437359</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-20T15:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: questions about TUSC ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063931#M437360</link>
      <description>A. Clay,&lt;BR /&gt;&lt;BR /&gt;Few open-read-write-close exists here. I'll put the tusc to an output file and awk the result in good shape. Thanks so much for your guidance.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 20 Aug 2007 15:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063931#M437360</guid>
      <dc:creator>Jeff.Z</dc:creator>
      <dc:date>2007-08-20T15:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: questions about TUSC ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063932#M437361</link>
      <description>found the solution from A. Clay. Thanks.</description>
      <pubDate>Mon, 20 Aug 2007 18:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/questions-about-tusc/m-p/5063932#M437361</guid>
      <dc:creator>Jeff.Z</dc:creator>
      <dc:date>2007-08-20T18:04:47Z</dc:date>
    </item>
  </channel>
</rss>

