<?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: BYTLM / BUFIO byte count/limit strange behaviour in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993935#M77980</link>
    <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;Thank you for the quick reply.  I don't understand why the Quota value would be decreased.  Shouldn't it stay static?  I understand that the "Used" value will fluctuate as sub-processes are created / deleted.  It seems that the other quota values (PGFLQUOTA, TQLM, ENQLM, BIOLM, etc.) are static with fluctuating Used values.  Why is BYTLM any different?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Fri, 28 Jul 2006 14:42:30 GMT</pubDate>
    <dc:creator>VMSRox</dc:creator>
    <dc:date>2006-07-28T14:42:30Z</dc:date>
    <item>
      <title>BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993933#M77978</link>
      <description>Hello OpenVMS friends,&lt;BR /&gt;&lt;BR /&gt;I am seeing some behaviour that seems strange to me when monitoring process quotas for a detached process started using the following quota values:&lt;BR /&gt;&lt;BR /&gt;     /extent=14336-&lt;BR /&gt;     /maximum_work_set=8192-&lt;BR /&gt;     /ast_limit=256-&lt;BR /&gt;     /buffer=450000-&lt;BR /&gt;     /io_buffered=128-&lt;BR /&gt;     /io_direct=128-&lt;BR /&gt;     /subprocess=20-&lt;BR /&gt;     /priority=4-&lt;BR /&gt;     /enqueue_limit=10000-&lt;BR /&gt;     /file_limit=512-&lt;BR /&gt;     /page_file=350000&lt;BR /&gt;&lt;BR /&gt;This process is a parent process that launches sub-processes when it receives requests.  If I examine the process in SDA, or monitor it using the very handy "SHOW_QUOTA.COM" command procedure immediately after starting the process, it properly shows the BYTLM quota as 450,000 as I would expect.&lt;BR /&gt;&lt;BR /&gt;If I check again later in the day, after many subprocesses creations / deletions, the BYTLM quota does not display 450,000, but rather shows some seemingly arbitrary number that is lower than 450,000.  For example, I just checked, and the value shown is 128592 (see attachment).  The process does seem to be running properly still, and all other quota values display properly.  If I examine bytlm using the F$GETJPI lexical function, it also returns the same 128592.&lt;BR /&gt;&lt;BR /&gt;Any ideas why the quota value is not being displayed properly?  This doesn't seem to be impacting functionality, but it is a bit unnerving.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for any help!  Best wishes!</description>
      <pubDate>Fri, 28 Jul 2006 14:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993933#M77978</guid>
      <dc:creator>VMSRox</dc:creator>
      <dc:date>2006-07-28T14:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993934#M77979</link>
      <description>There are certain operations which will decrement the quota e.g creation of a temporary mailbox. In this case when the mailbox is deleted the quota will be returned.</description>
      <pubDate>Fri, 28 Jul 2006 14:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993934#M77979</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-07-28T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993935#M77980</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;Thank you for the quick reply.  I don't understand why the Quota value would be decreased.  Shouldn't it stay static?  I understand that the "Used" value will fluctuate as sub-processes are created / deleted.  It seems that the other quota values (PGFLQUOTA, TQLM, ENQLM, BIOLM, etc.) are static with fluctuating Used values.  Why is BYTLM any different?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 28 Jul 2006 14:42:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993935#M77980</guid>
      <dc:creator>VMSRox</dc:creator>
      <dc:date>2006-07-28T14:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993936#M77981</link>
      <description>VMSRox,&lt;BR /&gt;&lt;BR /&gt;I can not check to make 100% sure at this moment, but ISTR that BYTLM is one of the "pooled" quota.&lt;BR /&gt;9volker and/or John will step in for sure if I am wrong!)&lt;BR /&gt;Every time a subprocess gets created, half of the CURRENT value goes into the child, half stays with the parent.&lt;BR /&gt;So, each child gets progressively less.&lt;BR /&gt;Some child dies (any reason), its quota gets returned (but the amount depends upon how much it got when created).&lt;BR /&gt;Many (at least, if random!) subprocess creations and deletions, that slowly progresses to a value of (more or less) initial-quota / number-of-processes per process.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 28 Jul 2006 15:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993936#M77981</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-28T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993937#M77982</link>
      <description>VMSrox,&lt;BR /&gt;&lt;BR /&gt;BYTLM is a 'pooled' quota. This means that it covers the whole job tree (master process and all of it's subprocesses). The pooled quotas are kept in the JIB (Job Information Block) in memory (in nonpaged pool). All processes in the job tree share the SAME JIB.&lt;BR /&gt;&lt;BR /&gt;$ ANAL/SYS&lt;BR /&gt;SDA&amp;gt; SET PROC/IND=&lt;PID-OF-PROCESS&gt;&lt;BR /&gt;SDA&amp;gt; SHOW PROC&lt;BR /&gt;SDA&amp;gt; READ SYSDEF&lt;BR /&gt;SDA&amp;gt; FORMAT JIB&lt;BR /&gt;...&lt;BR /&gt;83397BA0  JIB$L_BYTCNT 0003B350&lt;BR /&gt;83397BA4  JIB$L_BYTLM  0003C3D0&lt;BR /&gt;...&lt;BR /&gt;83397C00  JIB$L_ORG_BYTLM 0003D090&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;For the field definitions of the JIB see:&lt;BR /&gt;&lt;BR /&gt;$ SEARCH sys$library:lib.req jib$l_&lt;BR /&gt;&lt;BR /&gt;Certain operations seem to also deduct from JIB$L_BYTLM (quota), not only from JIB$L_BYTCNT (remaining count).&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/PID-OF-PROCESS&gt;</description>
      <pubDate>Sat, 29 Jul 2006 02:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993937#M77982</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-07-29T02:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993938#M77983</link>
      <description>I can confirm that BYTLM quota is decreased by e.g. Sybase server.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Sun, 30 Jul 2006 11:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993938#M77983</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-07-30T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993939#M77984</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for the replies.  It still isn't clear to me when or why the BYTLM quota is decreased.  If it is decreased, how can I predict what to set it to so that I don't run out of BYTLM - just set it to an arbitrarily high number?&lt;BR /&gt;&lt;BR /&gt;It seems to be inconsistent in this particular application.  I have seen 20 subprocesses start with no decrease in the BYTLM quota, and I have seen as few as 12 subprocesses start with a signficant (over 50%) decrease in BYTLM quota - please see attachment.&lt;BR /&gt;&lt;BR /&gt;Is anyone aware of where this behavior is documented?  I have examined the system managers manual as well as some of the system services documentation and cannot find mention of the BYTLM quota decreasing.&lt;BR /&gt;&lt;BR /&gt;Thank you again for your help.  As always it is greatly appreciated.  Best wishes always!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Jul 2006 18:17:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993939#M77984</guid>
      <dc:creator>VMSRox</dc:creator>
      <dc:date>2006-07-30T18:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993940#M77985</link>
      <description>VMSRox,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Thank you for the replies. It still isn't&lt;BR /&gt;&amp;gt;clear to me when or why the BYTLM quota is &lt;BR /&gt;&amp;gt;decreased. &lt;BR /&gt;&lt;BR /&gt;  BYTLM is "special" and, yes, it's inconsistent with other quotas, and confusing to the uninitiated. But, that's just the way it was implemented, so the best you can do is learn how it works and how to live with it.&lt;BR /&gt;&lt;BR /&gt;  For ALL other quotas the *LM value is static and the *CNT value decreases as the quota is consumed and increases as it's released.&lt;BR /&gt;&lt;BR /&gt;  BYTLM is "special" in that BYTLM value is NOT static. As Volker has pointed out, the original BYTLM is stored in JIB$L_ORG_BYTLM, which IS static (but there aren't any standard interfaces to read the value - the easiest is in SDA) &lt;BR /&gt;&lt;BR /&gt;  BYTLM controls how a process may allocate non-paged pool memory (NPAGEDYN). There are two kinds of usage of non-paged pool. The "normal" type, for example, a buffer for an I/O operation. They behave much like other quotas. They are decremented from BYTCNT on allocation, and returned when the buffer is released. Typically the lifetime of the allocation is short.&lt;BR /&gt;&lt;BR /&gt;  Other usage is for "long term" objects, like mailboxes, network connections and other pseudo devices. When one of these objects is created, the allocation is decremented from *BOTH* BYTCNT and BYTLM. (and both are incrememted on deallocation).&lt;BR /&gt;&lt;BR /&gt;  So, the difference between JIB$L_ORG_BYTLM and BYTLM can be thought of as "permanent" or "long term" allocations from NPAGEDYN. The difference between BYTLM and BYTCNT are "short term" allocations, expected to be returned soon.&lt;BR /&gt;&lt;BR /&gt;  This can be useful in predicting resource availability across all the processes in the job tree sharing the pooled resource. BYTCNT is what's free right now. You can "expect" up to BYTLM bytes to be available for allocation in the near term.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If it is decreased, how can I predict &lt;BR /&gt;&amp;gt;what to set it to so that I don't run out &lt;BR /&gt;&amp;gt;of BYTLM - just set it to an arbitrarily &lt;BR /&gt;&amp;gt;high number?&lt;BR /&gt;&lt;BR /&gt;  When allocating initial BYTLM you need to take into account long term and short term usages, across all processes in the job tree. In your case, it looks like the process is creating a few hundred K of mailboxes or network devices. The remainder is available for I/O buffers and other ephemeral allocations.&lt;BR /&gt;&lt;BR /&gt;  This behaviour is documented in the Internals and Data Structures Manual.</description>
      <pubDate>Sun, 30 Jul 2006 21:50:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993940#M77985</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-07-30T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993941#M77986</link>
      <description>Re Jan,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Every time a subprocess gets created, half &lt;BR /&gt;&amp;gt;of the CURRENT value goes into the child, &lt;BR /&gt;&amp;gt;half stays with the parent.&lt;BR /&gt;&lt;BR /&gt;  Correction, (as requested... ;-)&lt;BR /&gt;&lt;BR /&gt;Yes, BYTLM is a POOLED quota. As explained by Volker, that means the values are stored in the JIB, which is physically shared between all processes in the job tree. BYTLM is NOT subdivided between processes. ORG_BYTLM, BYTLM and BYTCNT are the same storage cell.&lt;BR /&gt;&lt;BR /&gt;What Jan describes is called a DEDUCTIBLE quota. It's a silly concept, and there's (thankfully!) only one quota that uses that model - CPU Limit. Whoever dreamed up the concept clearly doesn't understand exponential growth or decay. Hopefully most people have infinite CPU limits, so they're not affected by the fragmentation of CPU as they go down levels in the process tree.</description>
      <pubDate>Sun, 30 Jul 2006 21:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993941#M77986</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-07-30T21:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993942#M77987</link>
      <description>Steve,&lt;BR /&gt;&lt;BR /&gt;John wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;This behaviour is documented in the Internals and Data Structures Manual&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Chapter 25.4 talks about Mailbox creation and deletion. It mentions the IOC$CHKMBXQUOTA routine, which invokes the special EXE$DEBIT_BYTCNT_BYTLM_NW routine, which deducts both JIB$L_BYTCNT and JIB$L_BYTLM.&lt;BR /&gt;&lt;BR /&gt;If you have access to the source listings, you could look for callers of routines, whose names start with EXE$DEBIT_BYTCNT_BYTLM, to definitely find out, which functions inside OpenVMS deduct both BYTCNT and BYTLM.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 31 Jul 2006 01:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993942#M77987</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-07-31T01:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993943#M77988</link>
      <description>And what uses BYTLM : mainly mailboxes.&lt;BR /&gt;So, if you have programs using lots of mailboxes (or network connections), do a stress test to see if the maximum quota is reached before the maximum number of mailboxes (process will go in RW).&lt;BR /&gt;&lt;BR /&gt;I wonder how many tried this test with their Sybase server (the documentation is far from correct).&lt;BR /&gt;&lt;BR /&gt;Also : window control blocks (mount/window=).&lt;BR /&gt;But I never tried that.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 31 Jul 2006 01:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993943#M77988</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-07-31T01:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993944#M77989</link>
      <description>I also see&lt;BR /&gt;JIB$L_PBYTCNT and JIB$L_PBYTLIM which appears to be 0 so I guess they are historical.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jul 2006 03:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993944#M77989</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-07-31T03:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993945#M77990</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;JIB$L_PBYTCNT and JIB$L_PBYTLIM are described as Paged pool byte count / limit and apparently 'not implemented'.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 31 Jul 2006 03:57:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993945#M77990</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-07-31T03:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993946#M77991</link>
      <description>Thank you all for the educational replies - especially John.  That really cleared it up for me.  I guess I will remove myself from the "unitiated" group for this one issue.&lt;BR /&gt;&lt;BR /&gt;Best wishes!</description>
      <pubDate>Mon, 31 Jul 2006 13:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993946#M77991</guid>
      <dc:creator>VMSRox</dc:creator>
      <dc:date>2006-07-31T13:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: BYTLM / BUFIO byte count/limit strange behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993947#M77992</link>
      <description>Uninitiated - maybe I'll put myself back in the group after than mis-spelling!  Jeesh.</description>
      <pubDate>Mon, 31 Jul 2006 13:12:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bytlm-bufio-byte-count-limit-strange-behaviour/m-p/4993947#M77992</guid>
      <dc:creator>VMSRox</dc:creator>
      <dc:date>2006-07-31T13:12:50Z</dc:date>
    </item>
  </channel>
</rss>

