<?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: File locking exhausts PGFLQUOTA in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458433#M16990</link>
    <description>This needs more investigation before calling it a bug. Memory depletion can be a leak, or it can be due to usage pattern pathology, like checkerboarding. &lt;BR /&gt;&lt;BR /&gt;  I'm not familiar with the C++ locking interface, so I don't know the expected lifecycle of the structures involved - perhaps there's some kind of "Free" operation? What happens if you remove the F_UNLCK? Can you keep bouncing between F_RDLCK and F_WRLCK forever? Is there a null lock mode? (ie the lock still exists, but it doesn't block any other lock mode).&lt;BR /&gt;&lt;BR /&gt;  Try adding calls to LIB$STAT_VM to see if there's a pattern of depletion. Try sampling all statistics at the bottom of each loop. Output a timestamp, and a comma separated list of statistics, including loop counters for both loops (i and j).  Give it a T4 header, and you can examine the timeline of VM usage.&lt;BR /&gt;&lt;BR /&gt; If you want finer detail, use FAKE_RTL to trace all calls into VM routines. This will tell you if there's a genuine leak, or some VM usage pathology.</description>
    <pubDate>Mon, 13 Jul 2009 21:27:15 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2009-07-13T21:27:15Z</dc:date>
    <item>
      <title>File locking exhausts PGFLQUOTA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458431#M16988</link>
      <description>&lt;!--!*#--&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Attached test program  just locks 1 byte in file for read then escalate this lock for read-write than again lower it from exclusive to shared access and finally unlock it. If it runs in loop it allocate memory pretty fast increasing  VIRTUALPAGECNT until exhaust PGFLQUOTA.&lt;BR /&gt;&lt;BR /&gt;Documentation for fcntl  says:&lt;BR /&gt;â  All locks associated with a file for a given process are removed when a file descriptor for that file is closed by that processâ  &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.openvms.compaq.com/doc/83final/5763/5763pro_033.html#index_x_888" target="_blank"&gt;http://www.openvms.compaq.com/doc/83final/5763/5763pro_033.html#index_x_888&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It happens on IA64 OpenVMS with last patches.&lt;BR /&gt;Is problem in this test or system?&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 09:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458431#M16988</guid>
      <dc:creator>Stehlik Tomas</dc:creator>
      <dc:date>2009-07-13T09:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: File locking exhausts PGFLQUOTA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458432#M16989</link>
      <description>Your test looks fine to me. The documentation only talks about the locks being removed. It doesn't say anything about memory being used.. In that sense the documenation seems OK. But it looks like a sub-optimal behavior, which is either a bug or seems worth to be documented as a (current/temporary/???) limitiation.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2009 12:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458432#M16989</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-13T12:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: File locking exhausts PGFLQUOTA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458433#M16990</link>
      <description>This needs more investigation before calling it a bug. Memory depletion can be a leak, or it can be due to usage pattern pathology, like checkerboarding. &lt;BR /&gt;&lt;BR /&gt;  I'm not familiar with the C++ locking interface, so I don't know the expected lifecycle of the structures involved - perhaps there's some kind of "Free" operation? What happens if you remove the F_UNLCK? Can you keep bouncing between F_RDLCK and F_WRLCK forever? Is there a null lock mode? (ie the lock still exists, but it doesn't block any other lock mode).&lt;BR /&gt;&lt;BR /&gt;  Try adding calls to LIB$STAT_VM to see if there's a pattern of depletion. Try sampling all statistics at the bottom of each loop. Output a timestamp, and a comma separated list of statistics, including loop counters for both loops (i and j).  Give it a T4 header, and you can examine the timeline of VM usage.&lt;BR /&gt;&lt;BR /&gt; If you want finer detail, use FAKE_RTL to trace all calls into VM routines. This will tell you if there's a genuine leak, or some VM usage pathology.</description>
      <pubDate>Mon, 13 Jul 2009 21:27:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458433#M16990</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-07-13T21:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: File locking exhausts PGFLQUOTA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458434#M16991</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;This needs more investigation before calling it a bug.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;True. Given the simple source and the fact that it does work as expected on other systems, for example Linux, the investigation should be done by HP.&lt;BR /&gt;&lt;BR /&gt;The byte range locking (aka file locking) is defined in the X/Open standard. It is (more or less) new to the VMS CRTL. The source code (although it has the type cpp) is plain C. There are no user-allocated/-controlled data structures on the heap involved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jul 2009 08:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458434#M16991</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-14T08:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: File locking exhausts PGFLQUOTA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458435#M16992</link>
      <description>&lt;!--!*#--&gt;Heap Analyzer shows that changing lock level on the same offset and range allocates another memory SYS$EXPREG. Why it is not just reused?&lt;BR /&gt;&lt;BR /&gt;In the mean time I found workaround to use in pairs for each lock also unlock not just to change lock level.&lt;BR /&gt;&lt;BR /&gt;I start to investigate this while using Sqlite ported to OpenVMS where they for UNIX code branch that is used also for VMS just escalate and again lover locking level. &lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jul 2009 09:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458435#M16992</guid>
      <dc:creator>Stehlik Tomas</dc:creator>
      <dc:date>2009-07-14T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: File locking exhausts PGFLQUOTA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458436#M16993</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;This looks like an OpenVMS CRTL issue, and requires future investigation.&lt;BR /&gt;&lt;BR /&gt;Please open a QUIX case with HP, with decc$shr.exe image information.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Jagadish M.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jul 2009 11:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-locking-exhausts-pgflquota/m-p/4458436#M16993</guid>
      <dc:creator>JagadishM</dc:creator>
      <dc:date>2009-07-14T11:14:53Z</dc:date>
    </item>
  </channel>
</rss>

